1 #ifndef GAME_BATTLES_BATTLECONTROLLERS_PLAYERCONTROLLER_HPP
2 #define GAME_BATTLES_BATTLECONTROLLERS_PLAYERCONTROLLER_HPP
42 virtual const std::string&
name()
const override;
48 virtual void refresh()
override;
62 virtual bool isHost()
const override;
65 enum struct State { Waiting, PickingTurn, PickingFaintReplacement };
71 virtual void startChooseAction()
override;
72 virtual void startChoosePeoplemon(
bool fromFaint,
bool reviveOnly)
override;
73 virtual void startChooseToContinue()
override;
Id
Represents an item in its simplist form.
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.
This controller allows the player to control a battler.
virtual void refresh() override
Checks the menu state.
virtual const std::string & name() const override
Returns the name of the battler.
virtual bool isHost() const override
Returns true.
PlayerController(system::Player &player, view::PlayerMenu &menu)
Construct a new Player Controller.
virtual ~PlayerController()=default
Destroy the Player Controller object.
virtual bool removeItem(item::Id item) override
Removes the item from the battler's inventory.
The player menu for battles.
Primary system for managing the player and their data.