This controller allows the player to control a battler.
More...
#include <PlayerController.hpp>
This controller allows the player to control a battler.
Definition at line 22 of file PlayerController.hpp.
◆ PlayerController()
Construct a new Player Controller.
- Parameters
-
player | The player system |
menu | The menu to get player choices from |
Definition at line 11 of file PlayerController.cpp.
◆ ~PlayerController()
virtual core::battle::PlayerController::~PlayerController |
( |
| ) |
|
|
virtualdefault |
Destroy the Player Controller object.
◆ actionSelected()
bool core::battle::BattlerController::actionSelected |
( |
| ) |
const |
|
inherited |
Returns whether or not the battler has chosen what to do on this turn.
Definition at line 14 of file BattlerController.cpp.
◆ chooseGiveUp()
void core::battle::BattlerController::chooseGiveUp |
( |
bool |
yes | ) |
|
|
protectedinherited |
Choose whether to give up or not.
- Parameters
-
yes | True to give up, false to continue |
Definition at line 41 of file BattlerController.cpp.
◆ chooseItem()
void core::battle::BattlerController::chooseItem |
( |
std::uint8_t |
pplIndex, |
|
|
core::item::Id |
item |
|
) |
| |
|
protectedinherited |
Selects the item to use.
- Parameters
-
pplIndex | Index of the peoplemon to use the item on |
item | The item to use |
Definition at line 58 of file BattlerController.cpp.
◆ chooseMove()
void core::battle::BattlerController::chooseMove |
( |
int |
move | ) |
|
|
protectedinherited |
Selects the move to use this turn when fighting.
- Parameters
-
move | The index of the move to use |
Definition at line 46 of file BattlerController.cpp.
◆ choosePeoplemon()
void core::battle::BattlerController::choosePeoplemon |
( |
std::uint8_t |
i | ) |
|
|
protectedinherited |
Selects the peoplemon to switch to.
- Parameters
-
i | Index of the peoplemon to switch to |
Definition at line 52 of file BattlerController.cpp.
◆ chooseRun()
void core::battle::BattlerController::chooseRun |
( |
| ) |
|
|
protectedinherited |
◆ chooseToContinue()
void core::battle::BattlerController::chooseToContinue |
( |
| ) |
|
|
inherited |
◆ chosenAction()
TurnAction core::battle::BattlerController::chosenAction |
( |
| ) |
const |
|
inherited |
◆ chosenItem()
◆ chosenMove()
int core::battle::BattlerController::chosenMove |
( |
| ) |
const |
|
inherited |
◆ chosenPeoplemon()
std::uint8_t core::battle::BattlerController::chosenPeoplemon |
( |
| ) |
const |
|
inherited |
◆ isHost()
bool core::battle::PlayerController::isHost |
( |
| ) |
const |
|
overridevirtual |
◆ name()
const std::string & core::battle::PlayerController::name |
( |
| ) |
const |
|
overridevirtual |
◆ pickAction()
void core::battle::BattlerController::pickAction |
( |
| ) |
|
|
inherited |
◆ pickPeoplemon()
void core::battle::BattlerController::pickPeoplemon |
( |
bool |
fromFaint, |
|
|
bool |
reviveOnly |
|
) |
| |
|
inherited |
Initiates the process of selecting a replacement peoplemon if the current one faints.
- Parameters
-
fromFaint | True if the current has fainted, false if the switch is for another reason |
reviveOnly | True if fainted peoplemon must be selected |
Definition at line 21 of file BattlerController.cpp.
◆ refresh()
void core::battle::PlayerController::refresh |
( |
| ) |
|
|
overridevirtual |
◆ removeItem()
bool core::battle::PlayerController::removeItem |
( |
item::Id |
item | ) |
|
|
overridevirtual |
◆ setOwner()
void core::battle::BattlerController::setOwner |
( |
Battler & |
owner | ) |
|
|
inherited |
Sets the owner of this controller.
- Parameters
-
owner | The battler using this controller |
Definition at line 12 of file BattlerController.cpp.
◆ shouldContinue()
bool core::battle::BattlerController::shouldContinue |
( |
| ) |
const |
|
inherited |
◆ dontGiveUp
bool core::battle::BattlerController::dontGiveUp |
|
inherited |
◆ move
int core::battle::BattlerController::move |
|
inherited |
◆ owner
Battler* core::battle::BattlerController::owner |
|
protectedinherited |
◆ useItem
The documentation for this class was generated from the following files: