-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTwoPlayer.h
54 lines (43 loc) · 940 Bytes
/
TwoPlayer.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
#include "MYCLIENT.h"
#ifndef TWOPLAYER_H
#define TWOPLAYER_H
#include "GameState.h"
#include "Player.h"
#include "Skybox.h"
#include "Terrain.h"
#include "Barrack.h"
#include "StaticObject.h"
#include "Pickup.h"
#include <sstream>
class TwoPlayer : public GameState
{
public:
TwoPlayer();
~TwoPlayer();
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;
float skyboxAngle;
// p1 is environment camera
Player p1, p2;
// environment & objects
Skybox skybox;
Terrain terrain;
Barrack barrack;
StaticObject fence, barrel, pallet;
Pickup health, armor, ammo;
StaticObject tower;
// positions
D3DXVECTOR3 barrackPos[7][7];
// stuff to draw player location to the screen
ID3DXFont *font;
std::stringstream locationStr;
void DrawTextToScreen();
};
#endif