Files
jminos/src/Core/Gamemode.h
2025-03-28 21:00:46 +01:00

47 lines
800 B
C++

#pragma once
#include <string>
/**
* Every gamemode supported by the game
*/
enum Gamemode {
SPRINT,
MARATHON,
ULTRA,
MASTER,
ZEN
};
/**
* @return A string containing the name of the gamemode
*/
inline std::string getGamemodeName(Gamemode gamemode) {
static const std::string GAMEMODE_NAMES[] = {
"SPRINT",
"MARATHON",
"ULTRA",
"MASTER",
"ZEN"
};
return GAMEMODE_NAMES[gamemode];
}
/**
* @return A tiny string containing the goal of the gamemode
*/
inline std::string getGamemodeGoal(Gamemode gamemode) {
static const std::string GAMEMODE_DESCRIPTIONS[] = {
"40 lines",
"200 lines",
"2 minutes",
"200 lines",
"Chill"
};
return GAMEMODE_DESCRIPTIONS[gamemode];
}