6 #include "GameObject.hpp" 30 std::shared_ptr<GameObject> obj);
34 std::vector<std::shared_ptr<GameObject>>
objects;
std::vector< std::shared_ptr< GameObject > > objects
The list of all objects in the world.
Definition: GameWorld.hpp:34
void Update()
Updates this world.
Definition: GameWorld.cpp:5
std::vector< std::shared_ptr< GameObject > > GetActiveObjects() const
Gets the list of all active objects in our world.
Definition: GameWorld.cpp:13
GameWorld()
Constructs a GameWorld.
Definition: GameWorld.cpp:3
This class represents the game world.
Definition: GameWorld.hpp:12
void RegisterObject(std::shared_ptr< GameObject > obj)
Registers an object in the world.
Definition: GameWorld.cpp:23