1 #ifndef GAME_BATTLES_BATTLECONTROLLERS_AICONTROLLER_HPP
2 #define GAME_BATTLES_BATTLECONTROLLERS_AICONTROLLER_HPP
34 AIController(
const std::string& trainerName,
const std::vector<item::Id>& items);
40 virtual void refresh()
override;
46 virtual const std::string&
name()
const override;
66 virtual bool isHost()
const override;
69 const std::string _name;
70 std::vector<item::Id> items;
72 virtual void startChooseAction()
override;
73 virtual void startChoosePeoplemon(
bool fromFaint,
bool reviveOnly)
override;
74 virtual void startChooseToContinue()
override;
Id
Represents an item in its simplist form.
Core classes and functionality for both the editor and game.
This controller allows an AI to battle.
virtual ~AIController()=default
Destroy the AIController object.
AIController(pplmn::Id wildId)
Construct a new AIController for a wild peoplemon.
virtual void refresh() override
Does nothing.
virtual const std::string & name() const override
Returns the name of the battler.
virtual bool removeItem(item::Id item) override
Removes the item from the battler's inventory.
virtual bool isHost() const override
Returns false.
Base class for battlers in the game. This provides storage for peoplemon and turn choices.