capitalized all enums
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user