Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
God Class Reference

#include <god.h>

Collaboration diagram for God:
[legend]

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

Worldm_world
 
std::list< SpawnRequestm_spawnRequests
 
std::list< WorldObject * > m_scheduledRemovals
 

Detailed Description

Responsible for safely inserting object into the World, preventing overlappings

  • to spawn an object, first call scheduleSpawn() and then spawn()
  • to remove an object, first call scheduleRemoval and then remove()

The World will be given full ownership of spawned object, rejected objects however will have to be managed by the caller.


The documentation for this class was generated from the following files: