5 #include "property/property.h"
7 #include "display/rendering/visuals.h"
17 Voxel(
const glm::ivec3& gridCell, uint32_t color = 0xFFFFFF,
float mass = defaultMass(),
float hp = defaultHp(),
float emissiveness = 0);
21 const glm::ivec3 &gridCell()
const;
23 glm::vec3 position()
const;
31 virtual Visuals visuals()
const;
34 void applyDamage(
float deltaHp);
35 virtual float damageForwardingDestructionDamage();
37 float normalizedMass()
const;
40 virtual void onRemoval();
41 virtual void onDestruction();
46 glm::ivec3 m_gridCell;
50 float m_normalizedMass;
55 static float defaultMass();
56 static float defaultHp();
Definition: worldobject.h:43
Definition: voxelcluster.h:21
Definition: voxeltreenode.h:15