diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-23 21:31:45 +0200 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2017-08-23 21:31:45 +0200 |
commit | a54cbf40ffa40cd72f20f6491f34e4b2338687dd (patch) | |
tree | a0b656e9b890f8268239bea23a12feb8dcaa738b /src/Mobs/Behaviors/Behavior.h | |
parent | removed some attack code from Monster (diff) | |
download | cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.gz cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.bz2 cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.lz cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.xz cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.zst cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.zip |
Diffstat (limited to 'src/Mobs/Behaviors/Behavior.h')
-rw-r--r-- | src/Mobs/Behaviors/Behavior.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Mobs/Behaviors/Behavior.h b/src/Mobs/Behaviors/Behavior.h index ce719f7e4..81499eade 100644 --- a/src/Mobs/Behaviors/Behavior.h +++ b/src/Mobs/Behaviors/Behavior.h @@ -1,5 +1,6 @@ #pragma once +struct TakeDamageInfo; class cBehavior { public: @@ -9,7 +10,10 @@ public: virtual void Tick(); virtual void PostTick(); virtual void PreTick(); + + virtual void onRightClicked(); virtual void Destroyed(); - virtual ~cBehavior() = 0; + virtual void DoTakeDamage(TakeDamageInfo & a_TDI); + virtual ~cBehavior() {} }; |