-
Notifications
You must be signed in to change notification settings - Fork 0
/
Scene.h
24 lines (23 loc) · 888 Bytes
/
Scene.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
#pragma once
#include <vector>
#include <memory>
#include "VisualGameObject.h"
#include "Player.h"
#include "Gun.h"
#include "Utils.h"
// Scene contains all visible and invisible game objects. Then all relevant data is pulled to canvas in engine to draw.
class Scene {
private:
Player* ply;
std::vector<VisualGameObject*> m_VisualGameObjects;
// std::vector<InvisibleGameObject*> m_InvisibleGameObjects;
public:
Scene();
std::vector<VisualGameObject*>* get_PtrVisibleGameObjects() { return &m_VisualGameObjects; }
// std::vector<InvisibleGameObject*>* get_PtrInvisibleGameObjects() { return &m_InvisibleGameObjects; }
void set_GameObjects(std::vector<VisualGameObject*> in_VisualGameObjects) { m_VisualGameObjects = in_VisualGameObjects; }
void createPlayer();
void createEnemy();
void forwardPlayerActions(short& in_controls);
void purge();
};