Peoplemon  0.1.0
Peoplemon 3 game source documentation
RemoteController.hpp
Go to the documentation of this file.
1 #ifndef GAME_BATTLES_BATTLECONTROLLERS_REMOTECONTROLLER_HPP
2 #define GAME_BATTLES_BATTLECONTROLLERS_REMOTECONTROLLER_HPP
3 
5 
6 namespace core
7 {
8 namespace battle
9 {
17 public:
18  // TODO - how to interface with menus in the view?
19 
24  virtual ~RemoteController() = default;
25 
30  virtual const std::string& name() const override;
31 
36  virtual void refresh() override;
37 
44  virtual bool removeItem(item::Id item) override;
45 
50  virtual bool isHost() const override;
51 
52 private:
53  virtual void startChooseAction() override;
54  virtual void startChoosePeoplemon(bool fromFaint, bool reviveOnly) override;
55  virtual void startChooseToContinue() override;
56 };
57 
58 } // namespace battle
59 } // namespace core
60 
61 #endif
Id
Represents an item in its simplist form.
Definition: Id.hpp:24
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 receives player commands from over the network.
virtual bool isHost() const override
Returns false.
virtual bool removeItem(item::Id item) override
Removes the item from the battler's inventory.
virtual void refresh() override
Does nothing.
virtual const std::string & name() const override
Returns the name of the battler.
virtual ~RemoteController()=default
Destroy the Remote Controller object.