capitalized all enums

This commit is contained in:
a25liang
2024-07-20 15:11:13 -04:00
parent af1522ba2f
commit 525226b763
53 changed files with 393 additions and 395 deletions

View File

@ -104,8 +104,8 @@ const int MAX_MSG_LEN = 71;
const std::string DOTS = "...";
void game_result::run(input *in) {
if (in->get_command() == game_restart)
status = restart;
if (in->get_command() == GAME_RESTART)
status = RESTART;
}
void game_result::print(output *out) {
@ -115,17 +115,17 @@ void game_result::print(output *out) {
}
switch (status) {
case won:
case WON:
out->print_str({0, 0}, WIN_SCREEN);
out->print_str(MSG_START, msg, COLOR_PAIR(COLOR_YELLOW));
break;
case escaped:
case ESCAPED:
out->print_str({0, 0}, ESC_SCREEN);
out->print_str(MSG_START, msg, COLOR_PAIR(COLOR_GREEN));
break;
case dead:
case DEAD:
out->print_str({0, 0}, LOSE_SCREEN);
out->print_str(MSG_START, msg, COLOR_PAIR(COLOR_RED));
break;