5 #ifndef __RD_DEAD_STATE_HPP__
6 #define __RD_DEAD_STATE_HPP__
9 #include "ManagerHub.hpp"
10 #include "InputEventListener.hpp"
11 #include "NetworkManager.hpp"
12 #include "ImageManager.hpp"
13 #include "InputManager.hpp"
14 #include "MentalMap.hpp"
15 #include "IRobotManager.hpp"
16 #include "AudioManager.hpp"
17 #include "ScreenManager.hpp"
18 #include "DeadScreen.hpp"
20 #include "WindowEvent.hpp"
40 asrob::IRobotManager * robotManager,
AudioManager * audioManager,
49 static const int RESPAWN_SELECTED;
50 static const int EXIT_SELECTED;
57 static const int DEFAULT_RATE_MS;
58 static const int MAX_HEALTH;
62 bool received_respawn;
68 #endif // __RD_DEAD_STATE_HPP__
Mental map is a repository for information about the players, targets and weapons.
Definition: MentalMap.hpp:38
Music and sound effects manager.
Definition: AudioManager.hpp:28
A User Interface.
Definition: DeadScreen.hpp:23
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
virtual bool onWindowEvent(const WindowEvent &event)
This function will be called whenever a window event is raised.
Definition: DeadState.cpp:173
virtual bool cleanup()
Function excuted when this state is going to be stopped (due to an error or a transition)
Definition: DeadState.cpp:101
virtual int evaluateConditions()
This function is called after each call to loop() in order to know the transition to make.
Definition: DeadState.cpp:135
virtual bool setup()
Function executed just before the loop function, when the state is enabled.
Definition: DeadState.cpp:35
Class that represents a keyboard key.
Definition: Key.hpp:23
Base class for each of the states of a FiniteStateMachine.
Definition: State.hpp:18
virtual bool onKeyDown(const Key &k)
This function will be called whenever a key is pressed on the keyboard.
Definition: DeadState.cpp:146
A classs to interface all the robotDevastation managers. As some classes, such as the game states,...
Definition: ManagerHub.hpp:28
Manage game screens.
Definition: ScreenManager.hpp:35
Class that represents a window event.
Definition: WindowEvent.hpp:19
virtual bool onKeyUp(const Key &k)
This function will be called whenever a key is released on the keyboard.
Definition: DeadState.cpp:151
Manages the communications between the user and the RobotDevastation network.
Definition: NetworkManager.hpp:37
Generic image input manager.
Definition: ImageManager.hpp:39
Game Dead State.
Definition: DeadState.hpp:35
virtual bool loop()
Function executed periodically when the state is active.
Definition: DeadState.cpp:68