Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
worldobjectslot.h
1 #pragma once
2 
3 #include <map>
4 #include <list>
5 #include <string>
6 
7 
9 
10 /*
11  Base class for everything on a worldobject that behaves like a slot
12  that can be (or cannot) be equipped with equipment
13 */
15 public:
16  WorldObjectSlot(WorldObjectComponents* components, int index);
17 
18  std::list<std::string> mountables() const;
19 
20  bool mountable(const std::string& name) const;
21  void setMountable(const std::string& name, bool mountable);
22 
23  WorldObjectComponents* components();
24  const WorldObjectComponents* components() const;
25 
26  int index() const;
27 
28 
29 protected:
30  WorldObjectComponents* m_components;
31  std::map<std::string, bool> m_mountables;
32  int m_index;
33 };
34 
Definition: worldobjectslot.h:14
Definition: worldobjectcomponents.h:22