aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Monster.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/Monster.h')
-rw-r--r--Minecraft.World/Monster.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/Minecraft.World/Monster.h b/Minecraft.World/Monster.h
index 2bad48da..33f72b0e 100644
--- a/Minecraft.World/Monster.h
+++ b/Minecraft.World/Monster.h
@@ -14,35 +14,31 @@ public:
eINSTANCEOF GetType() { return eTYPE_MONSTER; }
static Entity *create(Level *level) { return NULL; }
-protected:
- int attackDamage;
-
-private:
- void _init();
-
public:
Monster(Level *level);
- virtual void aiStep();
- virtual void tick();
+ virtual void aiStep();
+ virtual void tick();
protected:
virtual shared_ptr<Entity> findAttackTarget();
public:
- virtual bool hurt(DamageSource *source, int dmg);
+ virtual bool hurt(DamageSource *source, float dmg);
virtual bool doHurtTarget(shared_ptr<Entity> target);
protected:
virtual void checkHurtTarget(shared_ptr<Entity> target, float distance);
public:
- virtual float getWalkTargetValue(int x, int y, int z);
+ virtual float getWalkTargetValue(int x, int y, int z);
protected:
- virtual bool isDarkEnoughToSpawn();
+ virtual bool isDarkEnoughToSpawn();
public:
virtual bool canSpawn();
-};
+protected:
+ void registerAttributes();
+}; \ No newline at end of file