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 {
|
||||
STARTED,
|
||||
TICK,
|
||||
MOVE_FORWARD,
|
||||
MOVE_BACK,
|
||||
MOVE_LEFT,
|
||||
MOVE_RIGHT,
|
||||
MAP_OPEN,
|
||||
CLOSE,
|
||||
ROTATE_LEFT,
|
||||
ROTATE_RIGHT,
|
||||
ATTACK,
|
||||
START_COMBAT,
|
||||
STOP_COMBAT,
|
||||
STAIRS_DOWN,
|
||||
QUIT
|
||||
STARTED=0,
|
||||
TICK=1,
|
||||
MOVE_FORWARD = 2,
|
||||
MOVE_BACK = 3,
|
||||
MOVE_LEFT = 4,
|
||||
MOVE_RIGHT = 5,
|
||||
MAP_OPEN = 6,
|
||||
CLOSE = 7,
|
||||
ROTATE_LEFT = 8,
|
||||
ROTATE_RIGHT = 9,
|
||||
ATTACK = 10,
|
||||
START_COMBAT = 11,
|
||||
STOP_COMBAT = 12,
|
||||
STAIRS_DOWN = 13,
|
||||
QUIT = 14
|
||||
};
|
||||
|
||||
class FSM : public DeadSimpleFSM<State, Event> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue