2012-12-21 11:04:08 +00:00
|
|
|
|
2011-12-25 22:47:12 +00:00
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 20:53:08 +00:00
|
|
|
#include "Monster.h"
|
2011-12-25 22:47:12 +00:00
|
|
|
|
2012-12-21 11:04:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cPassiveMonster :
|
|
|
|
public cMonster
|
2011-12-25 22:47:12 +00:00
|
|
|
{
|
2012-12-21 11:04:08 +00:00
|
|
|
typedef cMonster super;
|
|
|
|
|
2011-12-25 22:47:12 +00:00
|
|
|
public:
|
2013-10-20 08:23:30 +00:00
|
|
|
cPassiveMonster(const AString & a_ConfigName, eType a_MobType, const AString & a_SoundHurt, const AString & a_SoundDeath, double a_Width, double a_Height);
|
2012-12-21 11:04:08 +00:00
|
|
|
|
2013-04-13 21:02:10 +00:00
|
|
|
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
2012-12-21 11:04:08 +00:00
|
|
|
|
|
|
|
/// When hit by someone, run away
|
|
|
|
virtual void DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
2014-01-29 19:02:41 +00:00
|
|
|
/** Returns the item that the animal of this class follows when a player holds it in hand
|
|
|
|
Return an empty item not to follow (default). */
|
2014-01-29 18:15:26 +00:00
|
|
|
virtual const cItem GetFollowedItem(void) const { return cItem(); }
|
|
|
|
|
2012-12-21 11:04:08 +00:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2011-12-25 22:47:12 +00:00
|
|
|
|
|
|
|
|