-
Notifications
You must be signed in to change notification settings - Fork 0
/
Manager.h
48 lines (34 loc) · 906 Bytes
/
Manager.h
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
38
39
40
41
42
43
44
45
46
47
48
#ifndef __MANAGER_H__
#define __MANAGER_H__
// system includes
#include <string>
// game engine includes
#include "Event.h"
namespace df {
class Manager {
private:
std::string type; // Manager type identifier .
bool is_started; // True when started successfully.
protected:
// Set type identifier of Manager.
void setType(std::string type);
public:
// constructor
Manager();
// destructor
virtual ~Manager();
// Get type identifier of Manager.
std::string getType() const;
// Startup Manager.
// Return 0 if ok, else negative number.
virtual int startUp();
// Shutdown Manager.
virtual void shutDown();
// Return true when startUp() was executed ok, else false.
bool isStarted() const;
// Send event to all Objects.
// Return count of number of events sent.
int onEvent(const Event *p_event);
};
} // end of namespace df
#endif // __MANAGER_H__