9#include "GameEntity.hpp"
10#include "ResourceManager.hpp"
93 std::vector<std::shared_ptr<GameEntity>>
GetEntities() {
return entities;}
101 void SetBackgroundTexture(std::string filepath);
102 void ClearBackgroundTexture();
118 SDL_Renderer* GetRenderer()
const {
return mRenderer; }
123 std::vector<std::shared_ptr<GameEntity>> entities;
124 bool mIsSceneActive{
false};
125 SDL_Renderer* mRenderer;
126 std::shared_ptr<SDL_Texture> mBackgroundTexture;
127 SDL_Color mBackgroundColor{0, 0, 0, SDL_ALPHA_OPAQUE};
Scene class that represents a scene in the game.
Definition Scene.hpp:16
void SetSceneActive(bool active)
Set the scene to be active or inactive.
void AddGameEntity(std::shared_ptr< GameEntity > entity)
Add a game entity to the scene.
void SetBackgroundColor(std::string color)
Set the background color of the scene.
std::vector< std::shared_ptr< GameEntity > > GetEntities()
Get the entities in the scene.
Definition Scene.hpp:93
Scene(int width, int height)
Construct a new Scene object with the given width and height.
void Update(float deltaTime)
Update the game state.
int GetWidth() const
Get the width of the scene.
Definition Scene.hpp:109
void Render()
Render the game.
bool IsSceneActive() const
Check if the scene is active.
Scene(const Scene &scene)
Construct a new Scene object from an existing scene.
void Input(float deltaTime)
Handle input.
void StartUp(SDL_Renderer *renderer)
Start up the scene. OnStart is called here.
void Shutdown()
Shutdown the scene.
int GetHeight() const
Get the height of the scene.
Definition Scene.hpp:116