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

Public Member Functions

 CrucialVoxel (const glm::ivec3 &gridCell, int index)
 
virtual void addToObject (WorldObject *worldObject)
 
virtual void onRemoval ()
 
virtual void onDestruction ()
 
- Public Member Functions inherited from SpecialVoxel
 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 Visuals visuals () const
 
float hp () const
 
void applyDamage (float deltaHp)
 
virtual float damageForwardingDestructionDamage ()
 
float normalizedMass () const
 

Additional Inherited Members

- Static Protected Member Functions inherited from Voxel
static float defaultMass ()
 
static float defaultHp ()
 
- Protected Attributes inherited from SpecialVoxel
int m_index
 
- Protected Attributes inherited from Voxel
glm::ivec3 m_gridCell
 
VoxelTreeNodem_voxelTreeNode
 
Visuals m_visuals
 
float m_hp
 
float m_normalizedMass
 
- 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: