summaryrefslogblamecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h
blob: b9cb155e8103857ed21aab45c490022d44faa7f5 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                              
                                         
                                                           
                                                                                    

                                                           
                                                    

                                                         


                                                   
 

                                                                   
  
#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;
};