Skip to content

Commit

Permalink
feat: je pense que mon plat préféré est la pizza
Browse files Browse the repository at this point in the history
Co-authored-by: AIsamet <[email protected]>
Co-authored-by: Julien Von Der Marck <[email protected]>
  • Loading branch information
3 people committed Jun 2, 2024
1 parent e893e4b commit 19c7a58
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions UML/Strategy/enemy.strategy.plantuml
Original file line number Diff line number Diff line change
Expand Up @@ -20,44 +20,34 @@ class PatrolBehavior implements EnemyBehavior {
Vampire o--> EnemyBehavior
Werewolf o--> EnemyBehavior
Zombie o--> EnemyBehavior

interface IEnemy {
+attack(): void
+clone(): IEnemy
}


class Zombie {
-x: int
-y: int
-type: EnemyType
-behavior: EnemyBehavior
+setBehavior(behavior: EnemyBehavior): void
+performAction(): void
+abstract attack(): void
+clone(): IEnemy
}

class Vampire {
-x: int
-y: int
-type: EnemyType
-behavior: EnemyBehavior
+setBehavior(behavior: EnemyBehavior): void
+performAction(): void
+abstract attack(): void
+clone(): IEnemy
}

class Werewolf {
-x: int
-y: int
-type: EnemyType
-behavior: EnemyBehavior
+setBehavior(behavior: EnemyBehavior): void
+performAction(): void
+abstract attack(): void
+clone(): IEnemy
}


@enduml
@enduml

0 comments on commit 19c7a58

Please sign in to comment.