From 00f76dfb34ed3de8e4638082d9f0d7ca0c968e46 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sat, 15 Mar 2025 10:45:07 -0400 Subject: [PATCH] Need to tag the events with their number for debugging. --- gui_fsm.hpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/gui_fsm.hpp b/gui_fsm.hpp index 046b020..387a968 100644 --- a/gui_fsm.hpp +++ b/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 {