15 currentMover = pf ? 0 : 1;
16 firstMover = currentMover;
22 currentMover = (currentMover + 1) % 2;
Core classes and functionality for both the editor and game.
Base class for battlers in the game. This provides storage for peoplemon and turn choices.
bool isHost() const
Returns whether or not this battler is the host.
void notifyTurnBegin()
Notifies the battler that a turn has began.
Battler & inactiveBattler()
Returns the battler who is currently not resolving their turn.
Stage currentStage() const
Returns the current stage the battle is in.
Battler & hostBattler()
Returns the battler that is the host.
Battler & enemy()
Returns the opponent Battler.
void setStage(Stage stage)
Sets the current stage of the battle.
void beginRound(bool playerIsFirst)
Begins the next round of turns and sets the battler order.
bool isFirstMover() const
Returns whether the current mover is the first peoplemon to go this round.
Battler & activeBattler()
Returns the battler that is current resolving their turn.
BattleState(Stage initialState)
Creates a new BattleState.
Battler & localPlayer()
Returns the local player Battler.
Stage nextTurn()
Moves on to the next battler's turn. Returns the stage to transition to.
Stage
Represents all possible states in a battle.
@ RoundFinalEffectsPlayer
Battler & nonHostBattler()
Returns the battler who is not the host.