Voxellancer
0.3
A game about voxels in space
|
#include <god.h>
Public Member Functions | |
God (World &world) | |
void | scheduleSpawn (SpawnRequest spawnRequest) |
void | scheduleRemoval (WorldObject *worldObject) |
void | scheduleRemovals (const std::list< WorldObject * > &removals) |
void | spawn () |
void | remove () |
Protected Attributes | |
World & | m_world |
std::list< SpawnRequest > | m_spawnRequests |
std::list< WorldObject * > | m_scheduledRemovals |
Responsible for safely inserting object into the World, preventing overlappings
The World will be given full ownership of spawned object, rejected objects however will have to be managed by the caller.