A base manager.
Definition: Manager.h:24
void SetWorldModule()
Sets the current module to the world map mode.
Definition: Manager.cpp:55
Module prev_module_
The previous module.
Definition: Manager.h:253
bool paused_
Indicates if the game is paused.
Definition: Manager.h:258
bool IsBattleModule() const
Checks if the currently selected module is the battle module.
Definition: Manager.cpp:32
void Update()
Called every frame, performs an update on the things controlled by the manager.
Definition: Manager.cpp:72
Manager()
Constructor.
Definition: Manager.cpp:22
void ScriptSetPaused(const bool paused)
Handles game pausing.
Definition: Manager.cpp:115
void Clear()
Clears the manager.
Definition: Manager.cpp:93
virtual void OnResize()=0
Handles resizing events.
virtual ~Manager()
Destructor.
Definition: Manager.cpp:24
void ClearAll()
Clears the manager.
Definition: Manager.cpp:109
Module GetModule() const
Retrieves the currently selected module.
Definition: Manager.cpp:26
virtual void UpdateWorld()=0
Updates the world map entities in the manager.
virtual void ClearBattle()=0
Clear all battle information in the manager.
virtual void ClearField()=0
Clear all field information in the manager.
virtual void Input(const VGears::Event &event)=0
Handles an input event.
Module module_
The currently selected module.
Definition: Manager.h:248
virtual void UpdateBattle()=0
Updates the battle entities in the manager.
@ BATTLE
Battle module.
Definition: Manager.h:45
@ WORLD
World map module.
Definition: Manager.h:52
@ FIELD
Field module.
Definition: Manager.h:38
void SetModule(const Module module)
Sets the current module for the entity manager.
Definition: Manager.cpp:36
bool IsFieldModule() const
Checks if the currently selected module is the field module.
Definition: Manager.cpp:30
virtual void UpdateDebug()=0
Called every frame, performs an update on the things controlled by the manager.
virtual void UpdateField()=0
Updates the field entities in the manager.
void SetFieldModule()
Sets the current module to the field mode.
Definition: Manager.cpp:51
void SetBattleModule()
Sets the current module to the battle mode.
Definition: Manager.cpp:53
bool IsWorldModule() const
Checks if the currently selected module is the world module.
Definition: Manager.cpp:34
bool IsModule(const Module module) const
Checks the currently selected module.
Definition: Manager.cpp:28
virtual void ClearWorld()=0
Clear all world map information in the manager.
void SetPreviousModule()
Sets the module that was loaded before a battle.
Definition: Manager.cpp:57
A game module.
Definition: Module.h:55
An input event.
Definition: Event.h:84