Platformer
Platformer
|
This class represents the game world. More...
#include <GameWorld.hpp>
Public Member Functions | |
GameWorld () | |
Constructs a GameWorld. | |
void | Update () |
Updates this world. | |
std::vector< std::shared_ptr< GameObject > > | GetActiveObjects () const |
Gets the list of all active objects in our world. More... | |
void | RegisterObject (std::shared_ptr< GameObject > obj) |
Registers an object in the world. More... | |
Private Attributes | |
std::vector< std::shared_ptr< GameObject > > | objects |
The list of all objects in the world. | |
This class represents the game world.
It has a list of all the objects the world contains.
std::vector< std::shared_ptr< GameObject > > GameWorld::GetActiveObjects | ( | ) | const |
Gets the list of all active objects in our world.
void GameWorld::RegisterObject | ( | std::shared_ptr< GameObject > | obj | ) |
Registers an object in the world.
obj | The object to be registered |