-
Notifications
You must be signed in to change notification settings - Fork 1
/
Game.h
46 lines (37 loc) · 885 Bytes
/
Game.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
#ifndef GAME_H
#define GAME_H
#include <Windows.h>
#include "common\d3dUtil.h"
#include "common\Runnable.h"
#include "common\Camera.h"
#include "common\GfxStats.h"
#include "common\Animation.h"
#include "Enums.h"
using namespace std;
class Board;
class Piece;
class Player;
class GameState;
class Input;
/*
Allways add _WINSOCKAPI_ to the preproccessor when using RakNet!
*/
//! Heart of the program. Contains all the game states.
class Game : public Runnable
{
public:
Game(HINSTANCE hInstance, std::string caption, int width, int height, D3DDEVTYPE devType, DWORD requestedVP);
~Game();
void init();
void update(float t, float dt);
void draw();
void changeState(GameState* state);
LRESULT msgProc(UINT msg, WPARAM wParam, LPARAM lParam);
void onLostDevice();
void onResetDevice();
private:
Camera* mCamera;
GfxStats* mGfxStats;
GameState* mGameState;
};
#endif