Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
worldobjectslot.h
1
#pragma once
2
3
#include <map>
4
#include <list>
5
#include <string>
6
7
8
class
WorldObjectComponents
;
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
*/
14
class
WorldObjectSlot
{
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
WorldObjectSlot
Definition:
worldobjectslot.h:14
WorldObjectComponents
Definition:
worldobjectcomponents.h:22
src
equipment
worldobjectslot.h
Generated on Sun Mar 30 2014 13:32:31 for Voxellancer by
1.8.6