![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Struct containing state specific to each battler. These states facilitate logic that takes place over multiple turns, such as the volleyball moves. More...
#include <BattlerSubstate.hpp>
Public Member Functions | |
BattlerSubstate () | |
Construct a new Battler State object with proper defaults. More... | |
void | notifyTurnBegin () |
Resets and updates part of the state that depend on turns elapsing. More... | |
void | notifyTurnEnd (TurnAction action, pplmn::BattlePeoplemon &outNow) |
Resets and updates part of the state that depend on turns elapsing. More... | |
void | notifySwitch () |
Updates state that is unique to the currently out Peoplemon. More... | |
void | giveAilment (pplmn::PassiveAilment ail) |
Gives the peoplemon a passive ailment. More... | |
void | clearAilment (pplmn::PassiveAilment ail) |
Clear the given passive ailment. More... | |
bool | hasAilment (pplmn::PassiveAilment ail) const |
Returns true if the peoplemon has the specific ailment. More... | |
Public Attributes | |
std::int8_t | lastMoveIndex |
pplmn::MoveId | lastMoveUsed |
bool | isProtected |
std::int16_t | substituteHp |
std::uint8_t | turnsGuarded |
std::int8_t | chargingMove |
std::int8_t | encoreMove |
std::uint8_t | encoreTurnsLeft |
std::int8_t | deathCounter |
bool | ballBlocked |
bool | ballBumped |
bool | ballSet |
bool | ballSpiked |
bool | ballSwiped |
bool | noOneToGetBall |
std::int8_t | ballUpTurns |
bool | enduringThisTurn |
bool | enduredLastTurn |
std::uint8_t | spikesOut |
std::int8_t | healNext |
bool | move64Hit |
std::int8_t | copyStatsFrom |
pplmn::PassiveAilment | ailments |
std::int8_t | turnsConfused |
std::int16_t | koReviveHp |
pplmn::MoveId | lastMoveHitWith |
std::uint16_t | lastDamageTaken |
bool | faintHandled |
component::Trainer * | trainer |
std::uint8_t | turnsSticky |
pplmn::MoveId | lastMoveSuperEffective |
bool | preserveLastSuper |
std::int8_t | totalMomIndex |
bool | gotBaked |
Struct containing state specific to each battler. These states facilitate logic that takes place over multiple turns, such as the volleyball moves.
Definition at line 22 of file BattlerSubstate.hpp.
core::battle::BattlerSubstate::BattlerSubstate | ( | ) |
Construct a new Battler State object with proper defaults.
Definition at line 9 of file BattlerSubstate.cpp.
void core::battle::BattlerSubstate::clearAilment | ( | pplmn::PassiveAilment | ail | ) |
Clear the given passive ailment.
Definition at line 117 of file BattlerSubstate.cpp.
void core::battle::BattlerSubstate::giveAilment | ( | pplmn::PassiveAilment | ail | ) |
Gives the peoplemon a passive ailment.
ail | The ailment to give |
Definition at line 107 of file BattlerSubstate.cpp.
bool core::battle::BattlerSubstate::hasAilment | ( | pplmn::PassiveAilment | ail | ) | const |
Returns true if the peoplemon has the specific ailment.
ail | The ailment to check for |
Definition at line 112 of file BattlerSubstate.cpp.
void core::battle::BattlerSubstate::notifySwitch | ( | ) |
Updates state that is unique to the currently out Peoplemon.
Definition at line 84 of file BattlerSubstate.cpp.
void core::battle::BattlerSubstate::notifyTurnBegin | ( | ) |
Resets and updates part of the state that depend on turns elapsing.
action | The action the battler did on the last turn |
Definition at line 45 of file BattlerSubstate.cpp.
void core::battle::BattlerSubstate::notifyTurnEnd | ( | TurnAction | action, |
pplmn::BattlePeoplemon & | outNow | ||
) |
Resets and updates part of the state that depend on turns elapsing.
action | The action the battler did on the last turn |
outNow | The peoplemon that is currently out |
Definition at line 54 of file BattlerSubstate.cpp.
pplmn::PassiveAilment core::battle::BattlerSubstate::ailments |
Definition at line 45 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::ballBlocked |
Definition at line 32 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::ballBumped |
Definition at line 33 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::ballSet |
Definition at line 34 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::ballSpiked |
Definition at line 35 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::ballSwiped |
Definition at line 36 of file BattlerSubstate.hpp.
std::int8_t core::battle::BattlerSubstate::ballUpTurns |
Definition at line 38 of file BattlerSubstate.hpp.
std::int8_t core::battle::BattlerSubstate::chargingMove |
Definition at line 28 of file BattlerSubstate.hpp.
std::int8_t core::battle::BattlerSubstate::copyStatsFrom |
Definition at line 44 of file BattlerSubstate.hpp.
std::int8_t core::battle::BattlerSubstate::deathCounter |
Definition at line 31 of file BattlerSubstate.hpp.
std::int8_t core::battle::BattlerSubstate::encoreMove |
Definition at line 29 of file BattlerSubstate.hpp.
std::uint8_t core::battle::BattlerSubstate::encoreTurnsLeft |
Definition at line 30 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::enduredLastTurn |
Definition at line 40 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::enduringThisTurn |
Definition at line 39 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::faintHandled |
Definition at line 50 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::gotBaked |
Definition at line 56 of file BattlerSubstate.hpp.
std::int8_t core::battle::BattlerSubstate::healNext |
Definition at line 42 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::isProtected |
Definition at line 25 of file BattlerSubstate.hpp.
std::int16_t core::battle::BattlerSubstate::koReviveHp |
Definition at line 47 of file BattlerSubstate.hpp.
std::uint16_t core::battle::BattlerSubstate::lastDamageTaken |
Definition at line 49 of file BattlerSubstate.hpp.
pplmn::MoveId core::battle::BattlerSubstate::lastMoveHitWith |
Definition at line 48 of file BattlerSubstate.hpp.
std::int8_t core::battle::BattlerSubstate::lastMoveIndex |
Definition at line 23 of file BattlerSubstate.hpp.
pplmn::MoveId core::battle::BattlerSubstate::lastMoveSuperEffective |
Definition at line 53 of file BattlerSubstate.hpp.
pplmn::MoveId core::battle::BattlerSubstate::lastMoveUsed |
Definition at line 24 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::move64Hit |
Definition at line 43 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::noOneToGetBall |
Definition at line 37 of file BattlerSubstate.hpp.
bool core::battle::BattlerSubstate::preserveLastSuper |
Definition at line 54 of file BattlerSubstate.hpp.
std::uint8_t core::battle::BattlerSubstate::spikesOut |
Definition at line 41 of file BattlerSubstate.hpp.
std::int16_t core::battle::BattlerSubstate::substituteHp |
Definition at line 26 of file BattlerSubstate.hpp.
std::int8_t core::battle::BattlerSubstate::totalMomIndex |
Definition at line 55 of file BattlerSubstate.hpp.
component::Trainer* core::battle::BattlerSubstate::trainer |
Definition at line 51 of file BattlerSubstate.hpp.
std::int8_t core::battle::BattlerSubstate::turnsConfused |
Definition at line 46 of file BattlerSubstate.hpp.
std::uint8_t core::battle::BattlerSubstate::turnsGuarded |
Definition at line 27 of file BattlerSubstate.hpp.
std::uint8_t core::battle::BattlerSubstate::turnsSticky |
Definition at line 52 of file BattlerSubstate.hpp.