4 * Created on: Aug 3, 2012
8 #ifndef BATTLE_MONSTER_H_
9 #define BATTLE_MONSTER_H_
22 const char *Name() const { return name; }
23 Uint8 Level() const { return level; }
24 const /* Sprite */ void *Sprite() const { return sprite; }
26 Uint16 MaxHealth() const { return maxHealth; }
27 Uint16 Health() const { return health; }
28 int RelativeHealth(int max) { return health * max / maxHealth; }
30 Uint16 MaxMana() const { return maxMana; }
31 Uint16 Mana() const { return mana; }
32 int RelativeMana(int max) { return mana * max / maxMana; }
34 Uint16 Attack() const { return attack; }
35 Uint16 Defense() const { return defense; }
36 Uint16 Agility() const { return agility; }
37 Uint16 Intelligence() const { return intelligence; }
38 Uint16 Gut() const { return gut; }
39 Uint16 MagicResistance() const { return magicResistance; }
41 Uint16 ExpReward() const { return expReward; }
42 Uint16 GoldReward() const { return goldReward; }
44 const /* Item */ void *DropItem() const { return dropItem; }
45 Uint8 DropChance() const { return dropChance; }
47 const /* Script */ void *AttackScript() { return attackScript; }
48 const /* Script */ void *DefenseScript() { return defenseScript; }
52 /* Sprite */ void *sprite;
53 /* Item */ void *dropItem;
54 /* Script */ void *attackScript;
55 /* Script */ void *defenseScript;
57 Uint16 maxHealth, health;
65 Uint16 magicResistance;
67 Uint16 expReward, goldReward;
76 #endif /* BATTLE_MONSTER_H_ */