blob: e3bab053983842fe9086c3a77b5a330eec601df6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#pragma once
#include "Monster.h"
#include "Behaviors/BehaviorAttackerMelee.h"
#include "Behaviors/BehaviorWanderer.h"
#include "Behaviors/BehaviorAggressive.h"
class cZombiePigman :
public cMonster
{
typedef cMonster super;
public:
cZombiePigman(void);
CLASS_PROTODEF(cZombiePigman)
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
virtual void KilledBy(TakeDamageInfo & a_TDI) override;
virtual void SpawnOn(cClientHandle & a_ClientHandle) override;
virtual bool IsUndead(void) override { return true; }
// tick behaviors
cBehaviorAttackerMelee m_BehaviorAttackerMelee;
cBehaviorWanderer m_BehaviorWanderer;
// other behaviors
cBehaviorAggressive m_BehaviorAggressive;
} ;
|