-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathControlManager.h
More file actions
60 lines (47 loc) · 1.13 KB
/
Copy pathControlManager.h
File metadata and controls
60 lines (47 loc) · 1.13 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef CONTROL_MANAGER_H
#define CONTROL_MANAGER_H
#include "Manager.h"
#include "Frustum.h"
#include "Camera.h"
#include "Input.h"
#include "ConsoleListener.h"
#include <string>
/*
Teakes control of camera system, keyboard controls, mouse input, ...
*/
namespace game_utils
{
namespace managers
{
class CControlManager: public CManager, public control::CConsoleListener
{
public:
CControlManager();
~CControlManager();
// from CManager
virtual bool init();
virtual bool update();
virtual bool shutdown();
// from CConsoleListener
virtual std::string onAction(std::string keyword, std::string params);
control::CCamera *getCamera();
geometry::CFrustum *getViewFrustum();
control::CInput *getInput();
bool isFPS();
private:
geometry::CFrustum viewFrustum;
control::CCamera camera;
control::CInput input;
/*
If we are in the FPS mode this is true.
*/
bool FPS;
GLfloat camRotYSpeed,
camZoomSpeed,
camMoveSpeed,
camMLookSpeed,
camInitXRot;
};
};
};
#endif // CONTROL_MANAGER_H