-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIntroScene.h
42 lines (34 loc) · 920 Bytes
/
IntroScene.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
#pragma once
#include "Game.h"
#include "Scene.h"
#include "GameObject.h"
#include <map>
#include <unordered_map>
#include "SelectionNode.h"
#include "IntroSceneObj.h"
class CIntroScene : public CScene
{
int selectedOption = 0;
protected:
LPGAMEOBJECT player; // Player controls the position of camera.
CIntroSceneObj* cursor;
vector<LPGAMEOBJECT> objs;
public:
CIntroScene(std::string, std::string, std::string);
void ChangeOption(int);
bool GetCursor(vector<LPGAMEOBJECT>*, CIntroSceneObj**);
virtual bool LoadDataFromFile();
virtual void Load();
virtual void Update(DWORD dt);
virtual void Render();
virtual void Unload();
bool isMoving = false;
};
class CIntroSceneKeyHandler : public CScenceKeyHandler
{
public:
virtual void KeyState(BYTE* states) {};
virtual void OnKeyDown(int KeyCode);
virtual void OnKeyUp(int KeyCode) {};
CIntroSceneKeyHandler(CScene* s) : CScenceKeyHandler(s) {};
};