trop de trucs oscours
This commit is contained in:
@@ -4,10 +4,9 @@
|
||||
|
||||
|
||||
/**
|
||||
* The list of actions that can be taken by the player
|
||||
* The list of in-game actions that can be taken by the player
|
||||
*/
|
||||
enum Action {
|
||||
QUIT,
|
||||
PAUSE,
|
||||
RETRY,
|
||||
HOLD,
|
||||
@@ -22,8 +21,20 @@ enum Action {
|
||||
};
|
||||
|
||||
|
||||
static const std::string ACTION_NAMES[] = { // name for each action
|
||||
"Quit",
|
||||
static const Action ACTION_LIST_IN_ORDER[] = { // the list of possible actions in a sorted order
|
||||
MOVE_LEFT,
|
||||
MOVE_RIGHT,
|
||||
SOFT_DROP,
|
||||
HARD_DROP,
|
||||
ROTATE_CW,
|
||||
ROTATE_CCW,
|
||||
ROTATE_180,
|
||||
ROTATE_0,
|
||||
HOLD,
|
||||
PAUSE,
|
||||
RETRY
|
||||
};
|
||||
static const std::string ACTION_NAMES[] = { // name representation for each actions
|
||||
"Pause",
|
||||
"Retry",
|
||||
"Hold",
|
||||
|
||||
Reference in New Issue
Block a user