summaryrefslogblamecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorCoward.h
blob: 227715c003702b2f6c91f89c692617feb74c544f (plain) (tree)























                                                                    
#pragma once

// Makes the mob run away from any other mob that damages it

//fwds
class cMonster;
class cItems;
class cEntity;
struct TakeDamageInfo;

class cBehaviorCoward
{
public:
	cBehaviorCoward(cMonster * a_Parent);

	// Functions our host Monster should invoke:
	bool ActiveTick();
	void DoTakeDamage(TakeDamageInfo & a_TDI);


private:
	cMonster * m_Parent;  // Our Parent
	cEntity * m_Attacker;  // The entity we're running away from
};