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









                                                                              
                                                                             

                                                         


                                                                                       
 


                                                                   
  
#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:
	bool StrikeTarget(int a_StrikeTickCnt) override;
	void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
	void OnRightClicked(cPlayer & a_Player) override;

	bool IsBlowing(void) const {return m_bIsBlowing; }
	bool IsCharged(void) const {return m_bIsCharged; }
	bool IsBurnedWithFlintAndSteel(void) const {return m_BurnedWithFlintAndSteel; }

private:
	bool m_bIsBlowing, m_bIsCharged, m_BurnedWithFlintAndSteel;
	int m_ExplodingTimer;
};