3 #include <BLIB/Util/Random.hpp>
11 , lastMoveUsed(pplmn::
MoveId::Unknown)
24 , noOneToGetBall(false)
26 , enduringThisTurn(false)
27 , enduredLastTurn(false)
35 , lastMoveHitWith(pplmn::
MoveId::Unknown)
40 , lastMoveSuperEffective(pplmn::
MoveId::Unknown)
41 , preserveLastSuper(true)
108 using T = std::underlying_type_t<pplmn::PassiveAilment>;
113 using T = std::underlying_type_t<pplmn::PassiveAilment>;
114 return (
static_cast<T
>(
ailments) &
static_cast<T
>(ail)) != 0;
118 using T = std::underlying_type_t<pplmn::PassiveAilment>;
119 const T neg = ~static_cast<T>(ail);
PassiveAilment
Represents a passive ailment a Peoplemon can have.
Core classes and functionality for both the editor and game.
TurnAction
Represents an action that a battler may take on their turn.
std::int8_t turnsConfused
std::int16_t substituteHp
bool hasAilment(pplmn::PassiveAilment ail) const
Returns true if the peoplemon has the specific ailment.
void notifyTurnBegin()
Resets and updates part of the state that depend on turns elapsing.
void notifyTurnEnd(TurnAction action, pplmn::BattlePeoplemon &outNow)
Resets and updates part of the state that depend on turns elapsing.
std::int8_t copyStatsFrom
void notifySwitch()
Updates state that is unique to the currently out Peoplemon.
std::uint8_t turnsGuarded
std::uint16_t lastDamageTaken
std::int8_t lastMoveIndex
pplmn::MoveId lastMoveUsed
void giveAilment(pplmn::PassiveAilment ail)
Gives the peoplemon a passive ailment.
std::int8_t totalMomIndex
std::uint8_t encoreTurnsLeft
pplmn::PassiveAilment ailments
pplmn::MoveId lastMoveHitWith
pplmn::MoveId lastMoveSuperEffective
BattlerSubstate()
Construct a new Battler State object with proper defaults.
void clearAilment(pplmn::PassiveAilment ail)
Clear the given passive ailment.
Represents a Peoplemon in battle. Stores some extra state that only exists in battle....
std::int8_t & turnsUntilAwake()
The number of turns until the peoplemon wakes up.
bool hasAilment(const battle::BattlerSubstate &state) const
Returns whether or not the peoplemon has an ailment of any kind.