Initial first steps in pulling the SFML event processing out of the gui::fsm so that I can handle more complex things like drag and drop.
This commit is contained in:
parent
0674908e49
commit
5aa54d875f
9 changed files with 194 additions and 146 deletions
23
events.hpp
23
events.hpp
|
@ -14,3 +14,26 @@ namespace Events {
|
|||
int enemy_did;
|
||||
};
|
||||
}
|
||||
|
||||
namespace gui {
|
||||
enum class Event {
|
||||
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,
|
||||
LOOT_OPEN=14,
|
||||
LOOT_SELECT=15,
|
||||
LOOT_PLACE=16,
|
||||
QUIT = 17
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue