Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
splitter.h
1 #pragma once
2 
3 #include <list>
4 #include <vector>
5 #include <memory>
6 
7 class SplitData;
8 class WorldObject;
9 
10 class Splitter
11 {
12 public:
13  void split(std::vector<std::shared_ptr<SplitData>> &splits);
14  std::list<WorldObject*> &splitOffWorldObjects();
15 
16 
17 protected:
18  std::list<WorldObject*> m_splitOffWorldObjects;
19 
20  WorldObject *createWorldObjectFromSplitOff(std::shared_ptr<SplitData> split);
21  void removeExtractedVoxelsFromEx(std::shared_ptr<SplitData> split);
22 };
23 
Definition: splitdata.h:11
Definition: worldobject.h:43
Definition: splitter.h:10