-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOnePlayer.h
60 lines (45 loc) · 1000 Bytes
/
OnePlayer.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
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef ONEPLAYER_H
#define ONEPLAYER_H
#include "GameState.h"
#include "Player.h"
#include "Skybox.h"
#include "Terrain.h"
#include "Barrack.h"
#include "StaticObject.h"
#include "Enemy.h"
#include "Pickup.h"
#include <sstream>
class OnePlayer : public GameState
{
public:
OnePlayer();
~OnePlayer();
bool Init();
void Enter();
bool Render(float deltaTime);
void Update(float deltaTime);
void Exit(GameState *nextState);
// variables for lights
D3DXVECTOR3 lightDir;
D3DLIGHT9 light;
D3DXCOLOR *lightColor;
Player player; // also the camera
// enemy variables
std::vector<Enemy*> enemyList;
int bodyCount;
float skyboxAngle;
// environment & objects
Skybox skybox;
Terrain terrain;
Barrack barrack;
StaticObject fence, barrel, pallet;
StaticObject tower;
Pickup health, armor, ammo;
// positions
D3DXVECTOR3 barrackPos[7][7];
// stuff to draw player location to the screen
ID3DXFont *font;
std::stringstream locationStr;
void DrawTextToScreen();
};
#endif