Battle controller for local battles against peoplemon or trainers.
More...
#include <LocalBattleController.hpp>
|
void | updateBattleState (bool viewSynced, bool queueEmpty) |
| Updates the battle state based on the previous state, view state, and queue state. More...
|
|
Battle controller for local battles against peoplemon or trainers.
Definition at line 18 of file LocalBattleController.hpp.
◆ LocalBattleController()
core::battle::LocalBattleController::LocalBattleController |
( |
| ) |
|
◆ ~LocalBattleController()
virtual core::battle::LocalBattleController::~LocalBattleController |
( |
| ) |
|
|
virtualdefault |
Destroy the Local Battle Controller.
◆ init()
Sets internal references to the view and state of the battle.
- Parameters
-
battle | The battle itself |
view | The view of the battle |
state | The state of the battle |
Definition at line 16 of file BattleController.cpp.
◆ queueCommand()
void core::battle::BattleController::queueCommand |
( |
Command && |
command, |
|
|
bool |
addWait = false |
|
) |
| |
|
inherited |
Enqueues a command to manipulate battle state or the view.
- Parameters
-
command | The command to enqueue |
addWait | True to add a waitView command after the given command |
Definition at line 49 of file BattleController.cpp.
◆ update()
void core::battle::BattleController::update |
( |
| ) |
|
|
inherited |
◆ updateBattleState()
void core::battle::LocalBattleController::updateBattleState |
( |
bool |
viewSynced, |
|
|
bool |
queueEmpty |
|
) |
| |
|
protected |
Updates the battle state based on the previous state, view state, and queue state.
- Parameters
-
viewSynced | Whether or not the view is up-to-date and static |
queueEmpty | Whether or not the command queue has been emptied fully |
Definition at line 121 of file LocalBattleController.cpp.
◆ battle
Battle* core::battle::BattleController::battle |
|
protectedinherited |
◆ state
◆ view
The documentation for this class was generated from the following files: