|
Potato Engine
|
Local level managing gameplay interactions. More...
#include <World.hpp>
Public Member Functions | |
| template<typename ActorClass> | |
| ActorClass * | SpawnActor () |
| Spawns Actor into world. | |
| template<typename ActorClass> | |
| ActorClass * | SpawnActor (const Vector2 &SpawnPosition) |
| Spawns Actor into world. | |
| void | DestroyActor (Actor *actor) |
| Destroys actor from world. | |
| Actor * | AddtoPool (Actor *actor) |
| Attempts to add external actor object to world managing system. | |
| size_t | ActorCount () const |
| Gets count of actors in world. | |
| const ActorPool & | GetAllActors () const |
| Gets ActorPool. | |
Static Public Attributes | |
| static constexpr int | EXTENT_X = 1'000 |
| x-width of game world | |
| static constexpr int | EXTENT_Y = 24 |
| y-height of game world | |
| ActorClass * World::SpawnActor | ( | ) |
| ActorClass * World::SpawnActor | ( | const Vector2 & | SpawnPosition | ) |
| void World::DestroyActor | ( | Actor * | actor | ) |
Attempts to add external actor object to world managing system.
|
inline |
| const ActorPool & World::GetAllActors | ( | ) | const |
|
staticconstexpr |