Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
SpecialVoxel Class Reference
Inheritance diagram for SpecialVoxel:
[legend]
Collaboration diagram for SpecialVoxel:
[legend]

Public Member Functions

 SpecialVoxel (const glm::ivec3 &gridCell, int index, uint32_t color, float mass, float hp)
 
int index () const
 
- Public Member Functions inherited from Voxel
 Voxel (const glm::ivec3 &gridCell, uint32_t color=0xFFFFFF, float mass=defaultMass(), float hp=defaultHp(), float emissiveness=0)
 
 Voxel (const Voxel &other)
 
const glm::ivec3 & gridCell () const
 
glm::vec3 position () const
 
VoxelTreeNodevoxelTreeNode ()
 
void setVoxelTreeNode (VoxelTreeNode *voxelTreeNode)
 
virtual void addToCluster (VoxelCluster *cluster)
 
virtual void addToObject (WorldObject *object)
 
virtual Visuals visuals () const
 
float hp () const
 
void applyDamage (float deltaHp)
 
virtual float damageForwardingDestructionDamage ()
 
float normalizedMass () const
 
virtual void onRemoval ()
 
virtual void onDestruction ()
 

Protected Attributes

int m_index
 
- Protected Attributes inherited from Voxel
glm::ivec3 m_gridCell
 
VoxelTreeNodem_voxelTreeNode
 
Visuals m_visuals
 
float m_hp
 
float m_normalizedMass
 

Additional Inherited Members

- Static Protected Member Functions inherited from Voxel
static float defaultMass ()
 
static float defaultHp ()
 
- Static Protected Attributes inherited from Voxel
static Property< float > * s_defaultMass
 
static Property< float > * s_defaultHp
 

The documentation for this class was generated from the following files: