You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
694 B
55 lines
694 B
# Diagramme de classes
|
|
|
|
---
|
|
|
|
```mermaid
|
|
classDiagram
|
|
|
|
class MainActivity{
|
|
+onCreate()
|
|
+onPause()
|
|
+onResume()
|
|
+onDestroy()
|
|
+startGame()
|
|
+showGameOver()
|
|
+showInstruction()
|
|
}
|
|
|
|
class Game{
|
|
+onTap()
|
|
+onShake()
|
|
+start()
|
|
+stop()
|
|
+quit()
|
|
}
|
|
|
|
class Marmotheque{
|
|
+generateMole()
|
|
}
|
|
|
|
class Marmotte{
|
|
-bool State
|
|
+takeHit()
|
|
+move()
|
|
+isDead()
|
|
}
|
|
|
|
class Level{
|
|
+int number
|
|
+String description
|
|
+float time
|
|
+int nbEnemyLeft
|
|
+getMarmottes()
|
|
}
|
|
|
|
class Player{
|
|
-String Name
|
|
-int score
|
|
}
|
|
|
|
Level -- Player
|
|
Marmotheque -- Marmotte
|
|
|
|
```
|
|
|
|
>note for Marmotheque "Gestionnaire des marmottes (*utile si il s'agit d'une liste ?*)" |