Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
damageimpact.h
1 #pragma once
2 
3 #include <glm/glm.hpp>
4 
5 
6 class Voxel;
7 class WorldObject;
8 
10 {
11 public:
12  DamageImpact(WorldObject* worldObject, Voxel* voxel, const glm::vec3& damageVec, float fieldOfDamage);
13 
14  WorldObject* worldObject();
15  const WorldObject* worldObject() const;
16 
17  Voxel* voxel();
18  const Voxel* voxel() const;
19 
20  const glm::vec3& damageVec() const;
21 
22  float damage() const;
23 
24  float fieldOfDamage() const;
25 
26  void add(const DamageImpact& damageImpact);
27 
28 
29 protected:
30  WorldObject* m_worldObject;
31  Voxel* m_voxel;
32  glm::vec3 m_damageVec;
33  float m_fieldOfDamage;
34 };
35 
Definition: worldobject.h:43
Definition: damageimpact.h:9
Definition: voxel.h:15