Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
god.h
1 #pragma once
2 
3 #include <list>
4 
5 #include "spawnrequest.h"
6 
7 
8 class WorldObject;
9 class World;
10 
19 class God {
20 public:
21  God(World& world);
22  virtual ~God();
23 
24  void scheduleSpawn(SpawnRequest spawnRequest);
25 
26  void scheduleRemoval(WorldObject *worldObject);
27  void scheduleRemovals(const std::list<WorldObject*> &removals);
28 
29  void spawn();
30  void remove();
31 
32 
33 protected:
34  World & m_world;
35  std::list<SpawnRequest> m_spawnRequests;
36  std::list<WorldObject*> m_scheduledRemovals;
37 };
Definition: worldobject.h:43
Definition: world.h:20
Definition: god.h:19
Definition: spawnrequest.h:14