summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorBrave.h
blob: 0a59f90b88c31f8a4ee2b88f62f2cca6d6db8632 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "Behavior.h"

/** Makes the mob fight back any other mob that damages it. Mob should have BehaviorAttacker to work.
This behavior does not make sense in combination with BehaviorCoward. */
class cBehaviorBrave : cBehavior
{
public:
	void AttachToMonster(cMonster & a_Parent);
	void DoTakeDamage(TakeDamageInfo & a_TDI) override;

private:
	cMonster * m_Parent;  // Our Parent
};