split GameMode into enum class

This commit is contained in:
Martin Michelsen
2023-03-04 15:55:59 -08:00
parent 2932488d00
commit b935760d64
8 changed files with 104 additions and 51 deletions
+10
View File
@@ -22,6 +22,16 @@ bool episode_has_arpg_semantics(Episode ep);
const char* name_for_episode(Episode ep);
const char* abbreviation_for_episode(Episode ep);
enum class GameMode {
NORMAL = 0,
BATTLE = 1,
CHALLENGE = 2,
SOLO = 3,
};
const char* name_for_mode(GameMode mode);
const char* abbreviation_for_mode(GameMode mode);
size_t stack_size_for_item(uint8_t data0, uint8_t data1);