diff options
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h b/src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h new file mode 100644 index 000000000..b9cb155e8 --- /dev/null +++ b/src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h @@ -0,0 +1,24 @@ +#pragma once + +#include "BehaviorAttacker.h" + +/** Grants the mob that ability to approach a target and then melee attack it. +Use BehaviorAttackerMelee::SetTarget to attack. */ +class cBehaviorAttackerSuicideBomber : public cBehaviorAttacker +{ +public: + cBehaviorAttackerSuicideBomber(); + void AttachToMonster(cMonster & a_Parent) override; + // cBehaviorAttacker also implements those and we need to call super on them + void DoTakeDamage(TakeDamageInfo & a_TDI) override; + + bool DoStrike(int a_StrikeTickCnt) override; + void OnRightClicked(cPlayer & a_Player) override; + + bool IsBlowing(void) const; + bool IsCharged(void) const; + bool IsBurnedWithFlintAndSteel(void) const; + +private: + bool m_bIsBlowing, m_bIsCharged, m_BurnedWithFlintAndSteel; +}; |