Need to tag the events with their number for debugging.
This commit is contained in:
parent
2815375836
commit
00f76dfb34
1 changed files with 15 additions and 15 deletions
30
gui_fsm.hpp
30
gui_fsm.hpp
|
@ -25,21 +25,21 @@ namespace gui {
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class Event {
|
enum class Event {
|
||||||
STARTED,
|
STARTED=0,
|
||||||
TICK,
|
TICK=1,
|
||||||
MOVE_FORWARD,
|
MOVE_FORWARD = 2,
|
||||||
MOVE_BACK,
|
MOVE_BACK = 3,
|
||||||
MOVE_LEFT,
|
MOVE_LEFT = 4,
|
||||||
MOVE_RIGHT,
|
MOVE_RIGHT = 5,
|
||||||
MAP_OPEN,
|
MAP_OPEN = 6,
|
||||||
CLOSE,
|
CLOSE = 7,
|
||||||
ROTATE_LEFT,
|
ROTATE_LEFT = 8,
|
||||||
ROTATE_RIGHT,
|
ROTATE_RIGHT = 9,
|
||||||
ATTACK,
|
ATTACK = 10,
|
||||||
START_COMBAT,
|
START_COMBAT = 11,
|
||||||
STOP_COMBAT,
|
STOP_COMBAT = 12,
|
||||||
STAIRS_DOWN,
|
STAIRS_DOWN = 13,
|
||||||
QUIT
|
QUIT = 14
|
||||||
};
|
};
|
||||||
|
|
||||||
class FSM : public DeadSimpleFSM<State, Event> {
|
class FSM : public DeadSimpleFSM<State, Event> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue