Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
impulseaccumulator.h
1 #pragma once
2 
3 #include <set>
4 #include <list>
5 #include <map>
6 
7 #include "collision/voxelcollision.h"
8 
9 #include "physics/impulse.h"
10 
11 
12 class Voxel;
13 class VoxelCollision;
14 
16 {
17 public:
18  void clear();
19 
20  void parse(const std::list<Impulse> &impulses);
21 
22  void dontImpulse(const std::list<Voxel*>& voxels);
23 
24  std::list<Impulse>& impulses();
25 
26 
27 protected:
28  std::map<const Voxel*, Impulse> m_voxelImpulseMap;
29  std::list<Impulse> m_impulses;
30 
31  void parseCollision(WorldObject *worldObject, const VoxelCollision& collision);
32 };
33 
Definition: worldobject.h:43
Definition: voxel.h:15
Definition: voxelcollision.h:22
Definition: impulseaccumulator.h:15