Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
worldlogic.h
1 #pragma once
2 
3 #include "handler/mover.h"
4 #include "handler/damageforwarder.h"
5 #include "handler/damager.h"
6 #include "handler/voxelcollisionaccumulator.h"
7 #include "handler/damageimpactgenerator.h"
8 #include "handler/elasticimpulsegenerator.h"
9 #include "handler/splitter.h"
10 #include "handler/garbagecollector.h"
11 #include "handler/wrecker.h"
12 #include "handler/elasticimpulsor.h"
13 #include "handler/voxelhangman.h"
14 #include "handler/splitdetector.h"
15 
16 
17 class World;
18 
20 {
21 public:
22  WorldLogic(World &world);
23 
24  void update(float deltaSecs);
25 
26  DamageForwarder &damageForwarder();
27 
28 
29 protected:
30  World &m_world;
31 
32  Mover m_mover;
33  VoxelCollisionAccumulator m_voxelCollisionAccumulator;
34  ElasticImpulseGenerator m_elasticImpulseGenerator;
35  ElasticImpulsor m_elasticImpulsor;
36  Damager m_damager;
37  DamageForwarder m_damageForwarder;
38  DamageImpactGenerator m_damageImpactGenerator;
39  SplitDetector m_splitDetector;
40  Splitter m_splitter;
41  Wrecker m_wrecker;
42  GarbageCollector m_garbageCollector;
43  VoxelHangman m_voxelHangman;
44 
45  void damageForwardLoop(std::list<DamageImpact> damageImpulses);
46 };
47 
Definition: voxelhangman.h:8
Definition: damageimpactgenerator.h:10
Definition: mover.h:7
Definition: world.h:20
Definition: wrecker.h:9
Definition: worldlogic.h:19
Definition: voxelcollisionaccumulator.h:10
Definition: splitdetector.h:17
Definition: garbagecollector.h:8
Definition: damageforwarder.h:10
Definition: elasticimpulsegenerator.h:10
Definition: splitter.h:10
Definition: elasticimpulsor.h:9
Definition: damager.h:14