Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F626146
Game.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
844 B
Referenced Files
None
Subscribers
None
Game.h
View Options
//
// Created by Ido Mozes on 18/06/2019.
//
#ifndef SDL2_GAME_GAME_H
#define SDL2_GAME_GAME_H
#include
<iostream>
#include
<fstream>
#include
<memory>
#include
<vector>
#include
"SDL.h"
#include
"SDL_image.h"
#include
"Entity.h"
#include
"System.h"
#include
"systems/RenderSystem.h"
#include
"systems/MovementSystem.h"
#include
"components/Visibility.h"
#include
"components/PathIndex.h"
#include
"components/Speed.h"
#include
"GameData.h"
class
Game
{
std
::
vector
<
std
::
unique_ptr
<
System
>>
systems
;
std
::
vector
<
std
::
shared_ptr
<
Entity
>>
entities
;
RenderSystem
renderSystem
;
GameData
gameData
;
public
:
explicit
Game
(
bool
fullscreen
,
float
mapScale
=
1.5
);
~
Game
();
void
handleEvents
();
void
update
();
bool
running
()
{
return
gameData
.
isRunning
;
}
void
loadLevel
();
};
#endif
//SDL2_GAME_GAME_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 12:22 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
138458
Default Alt Text
Game.h (844 B)
Attached To
Mode
R74 BloonsTD
Attached
Detach File
Event Timeline