Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
damageimpact.h
1
#pragma once
2
3
#include <glm/glm.hpp>
4
5
6
class
Voxel
;
7
class
WorldObject
;
8
9
class
DamageImpact
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
WorldObject
Definition:
worldobject.h:43
DamageImpact
Definition:
damageimpact.h:9
Voxel
Definition:
voxel.h:15
src
world
helper
damageimpact.h
Generated on Sun Mar 30 2014 13:32:32 for Voxellancer by
1.8.6