-
Notifications
You must be signed in to change notification settings - Fork 0
/
Engine.h
44 lines (38 loc) · 899 Bytes
/
Engine.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
///
/// @brief The class declaration for the Engine.
/// @author James Rhodes
///
#ifndef __MIR_ENGINE_H
#define __MIR_ENGINE_H
class Engine;
#include <GL/glfw3.h>
#include <boost/noncopyable.hpp>
#include "Network/Controller.h"
#include "ClientObjectTranslation.h"
#include "BaseState.h"
///
/// @brief The main game engine.
///
class Engine : private boost::noncopyable
{
private:
Network::Controller* m_Controller;
ClientObjectTranslation* m_Translation;
BaseState* m_CurrentState;
GLFWwindow m_GLFWWindow;
bool m_Running;
bool m_WindowOpen;
public:
Engine();
~Engine();
bool IsRunning();
void Run();
void Cleanup();
void Connect(std::string address, int port);
void Disconnect();
void Switch(BaseState* state);
GLFWwindow& GetWindow();
bool HasNetworkController();
Network::Controller& GetNetworkController();
};
#endif