blob: 52b88230710aca513110b38f88dcf4c9264e3212 (
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
|
#include "stdafx.h"
#include "BossMobPart.h"
#include "BossMob.h"
BossMob::BossMob(Level *level) : Mob( level )
{
maxHealth = 100;
// 4J Stu - This function call had to be moved here from the Entity ctor to ensure that the derived version of the function is called
health = getMaxHealth();
}
int BossMob::getMaxHealth()
{
return maxHealth;
}
bool BossMob::hurt(shared_ptr<BossMobPart> bossMobPart, DamageSource *source, int damage)
{
return hurt(source, damage);
}
bool BossMob::hurt(DamageSource *source, int damage)
{
return false;
}
bool BossMob::reallyHurt(DamageSource *source, int damage)
{
return Mob::hurt(source, damage);
}
|