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
5class World;
6
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 };
Definition npc.h:25
Definition vob.h:11
Flags
Definition vob.h:13
World & world
Definition vob.h:45
Definition world.h:31