Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
voxelaccumulator.h
1 #pragma once
2 
3 #include <set>
4 #include <list>
5 #include <map>
6 
7 class Voxel;
8 
9 template<typename Accumulatable>
11 {
12 public:
13  void clear();
14  void parse(const Accumulatable& accumulatable);
15  void parse(const std::list<Accumulatable>& accumulatables);
16  void dontAffect(const std::list<Voxel*>& voxels);
17 
18  std::list<Accumulatable>& accumulatables();
19 
20 
21 protected:
22  std::map<const Voxel*, Accumulatable> m_voxelAccumulatableMap;
23  std::list<Accumulatable> m_accumulatables;
24 };
25 
26 #include "voxelaccumulator.inl"
Definition: voxelaccumulator.h:10
Definition: voxel.h:15