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

Public Member Functions

 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 ()
 

Static Protected Member Functions

static float defaultMass ()
 
static float defaultHp ()
 

Protected Attributes

glm::ivec3 m_gridCell
 
VoxelTreeNodem_voxelTreeNode
 
Visuals m_visuals
 
float m_hp
 
float m_normalizedMass
 

Static Protected Attributes

static Property< float > * s_defaultMass
 
static Property< float > * s_defaultHp
 

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