forked from derandark/DungeonViewerAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DungeonMapScene.h
56 lines (38 loc) · 919 Bytes
/
DungeonMapScene.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
#pragma once
#include "Camera.h"
#include "Vertex.h"
class CLandBlock;
class CEnvCell;
class DungeonMapCamera : public OrthoCamera
{
// Insert goodies here.
};
class DungeonMapScene :
public RenderScene
{
public:
DungeonMapScene();
virtual ~DungeonMapScene();
public:
// For camera (move this to abtract later?)
virtual void Input_KeyDown(BYTE bKey);
virtual void Input_KeyUp(BYTE bKey);
void MoveCameraWithInput(float FrameTime, BOOL *Keys);
protected:
void UpdateCamera();
DungeonMapCamera m_Camera;
double m_LastCamUpdate;
BOOL m_Keys[ 256 ];
public:
// For dungeon:
void Destroy();
BOOL Init(DWORD LandBlock);
virtual int SceneType();
virtual void Render(double);
void CalcBBox();
protected:
CLandBlock* m_LandBlock;
CEnvCell** m_EnvCells;
DWORD m_EnvCellCount;
BBox m_BBox;
};