blob: b85d9afe6afee5c6d463c88535b8611fa88d3e3e (
plain)
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
38
39
|
#pragma once
using namespace std;
#include "Monster.h"
class Skeleton : public Monster
{
public:
eINSTANCEOF GetType() { return eTYPE_SKELETON; }
static Entity *create(Level *level) { return new Skeleton(level); }
Skeleton(Level *level);
virtual bool useNewAi();
virtual int getMaxHealth();
protected:
virtual int getAmbientSound();
virtual int getHurtSound();
virtual int getDeathSound();
public:
virtual shared_ptr<ItemInstance> getCarriedItem();
virtual MobType getMobType();
virtual void aiStep();
virtual void die(DamageSource *source);
protected:
virtual int getDeathLoot();
virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);
virtual void dropRareDeathLoot(int rareLootLevel);
private:
static shared_ptr<ItemInstance> bow;
public:
static void staticCtor();
};
|