-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScene.h
More file actions
30 lines (26 loc) · 782 Bytes
/
Scene.h
File metadata and controls
30 lines (26 loc) · 782 Bytes
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
#pragma once
#include "EntityManager.h"
#include "Action.h"
#include "GameEngine.h";
#include "Camera.h"
class Scene
{
//this is a abtract base class for all scenes
protected:
std::map<int, std::string> m_actionMap;//map of keycode and actionName
public :
GameEngine* gameEngine;
EntityManager m_entities; //each scene should assign a new entity manager at initialisation
int currentFrame;
bool pause;
bool hasEnded;
CameraType m_cameraType;
Scene(GameEngine* eng) : gameEngine(eng) {}
virtual void update();
virtual void sDoAction(const Action& action);
virtual void sRender();
virtual void sCamera();
virtual void simulate(int frame);
void registerAction(int keyCode,const std::string& actionName);
const std::map<int, std::string>& getActionMap() const;
};