OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
touchdamage.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
abstracttrigger.h
"
4
5
class
World
;
6
7
class
TouchDamage
:
public
AbstractTrigger
{
8
public
:
9
TouchDamage
(
Vob
* parent,
World
&
world
,
const
zenkit::VTouchDamage& data,
Flags
flags);
10
11
private
:
12
void
onTrigger(
const
TriggerEvent
&evt)
override
;
13
void
onIntersect(
Npc
& n)
override
;
14
void
tick(uint64_t dt)
override
;
15
void
takeDamage(
Npc
& npc, int32_t val, int32_t prot);
16
17
uint64_t repeatTimeout = 0;
18
bool
barrier =
false
;
19
bool
blunt =
false
;
20
bool
edge =
false
;
21
bool
fire =
false
;
22
bool
fly =
false
;
23
bool
magic =
false
;
24
bool
point =
false
;
25
bool
fall =
false
;
26
float
damage = 0;
27
float
repeatDelaySec = 0;
28
};
abstracttrigger.h
AbstractTrigger
Definition
abstracttrigger.h:46
Npc
Definition
npc.h:25
TouchDamage
Definition
touchdamage.h:7
TriggerEvent
Definition
abstracttrigger.h:14
Vob
Definition
vob.h:11
Vob::Flags
Flags
Definition
vob.h:13
Vob::world
World & world
Definition
vob.h:45
World
Definition
world.h:31
game
world
triggers
touchdamage.h
Generated by
1.9.8