-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameState.h
More file actions
37 lines (28 loc) · 751 Bytes
/
GameState.h
File metadata and controls
37 lines (28 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _GAME_STATE_
#define _GAME_STATE_
#include <Core/IListener.h>
#include <Core/EngineEvents.h>
#include <Utils/Timer.h>
using OpenEngine::Core::IListener;
using OpenEngine::Core::ProcessEventArg;
using OpenEngine::Utils::Timer;
class BoidsSystem;
struct BoidSystemEventArg;
class GameState : public IListener<ProcessEventArg>,
public IListener<BoidSystemEventArg> {
private:
unsigned int numberOfDeadBoids, duration;
Timer timer;
public:
GameState(unsigned int duration);
virtual ~GameState();
void Handle(ProcessEventArg);
void Handle(BoidSystemEventArg arg);
unsigned int GetTime();
unsigned int GetTimeLeft();
unsigned int GetScore();
void Reset();
void Pause();
void Unpause();
};
#endif // _GAME_STATE_