diff options
author | pacien | 2018-02-01 20:29:40 +0100 |
---|---|---|
committer | pacien | 2018-02-01 20:29:40 +0100 |
commit | 735be27e8802740cf0986bb6d14e720234889aae (patch) | |
tree | d3f479d4cf7b3f7082477ce18031b0c4b1f95c52 /src/docs | |
parent | 1a1d90fc6edc85fc3d6440db3a5d582a69a5441d (diff) | |
download | wallj-735be27e8802740cf0986bb6d14e720234889aae.tar.gz |
Rename events/orders ; Partial impl. of robot event handling
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'src/docs')
-rw-r--r-- | src/docs/class.puml | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/docs/class.puml b/src/docs/class.puml index cfc78b1..151e334 100644 --- a/src/docs/class.puml +++ b/src/docs/class.puml | |||
@@ -87,26 +87,24 @@ package context { | |||
87 | 87 | ||
88 | package event { | 88 | package event { |
89 | interface Event | 89 | interface Event |
90 | |||
91 | interface InputEvent implements Event | ||
92 | interface GameEvent implements Event | 90 | interface GameEvent implements Event |
91 | interface InputEvent implements Event | ||
93 | 92 | ||
94 | class DropBombEvent implements InputEvent | 93 | class ConfirmOrder implements InputEvent |
94 | class BombSetupOrder implements InputEvent | ||
95 | 95 | ||
96 | class AddBombEvent implements InputEvent { | 96 | class MoveRobotOrder implements InputEvent { |
97 | final TileVec2 | 97 | MoveRobotEvent(TileVec2) |
98 | AddBombEvent(TileVec2) | 98 | TileVec2 getTarget() |
99 | TileVec2 getTile() | ||
100 | } | 99 | } |
101 | 100 | ||
102 | class MoveRobotEvent implements InputEvent { | 101 | class BombSetupEvent implements GameEvent { |
103 | final TileVec2 | 102 | final TileVec2 |
104 | MoveRobotEvent(TileVec2) | 103 | AddBombEvent(TileVec2) |
105 | TileVec2 getTile() | 104 | TileVec2 getTile() |
106 | } | 105 | } |
107 | 106 | ||
108 | class ConfirmEvent implements InputEvent | 107 | class GameOverEvent implements GameEvent |
109 | class GameOverEvent implements Event | ||
110 | 108 | ||
111 | class ExplosionEvent implements GameEvent { | 109 | class ExplosionEvent implements GameEvent { |
112 | Block source | 110 | Block source |