2012-12-21 06:04:08 -05:00
|
|
|
|
2011-10-25 19:46:01 -04:00
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 16:53:08 -04:00
|
|
|
#include "AggressiveMonster.h"
|
2011-10-25 19:46:01 -04:00
|
|
|
|
2012-12-21 06:04:08 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cCreeper :
|
|
|
|
public cAggressiveMonster
|
2011-10-25 19:46:01 -04:00
|
|
|
{
|
2012-12-21 06:04:08 -05:00
|
|
|
typedef cAggressiveMonster super;
|
|
|
|
|
2011-10-25 19:46:01 -04:00
|
|
|
public:
|
2012-12-21 06:04:08 -05:00
|
|
|
cCreeper(void);
|
|
|
|
|
2012-12-21 07:21:20 -05:00
|
|
|
CLASS_PROTODEF(cCreeper);
|
2012-12-21 06:04:08 -05:00
|
|
|
|
2013-07-01 06:39:56 -04:00
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = NULL) override;
|
2014-04-25 18:32:30 -04:00
|
|
|
virtual bool DoTakeDamage(TakeDamageInfo & a_TDI) override;
|
2014-01-24 14:52:52 -05:00
|
|
|
virtual void Attack(float a_Dt) override;
|
|
|
|
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
|
2014-03-02 08:35:03 -05:00
|
|
|
virtual void OnRightClicked(cPlayer & a_Player) override;
|
2013-10-09 16:02:59 -04:00
|
|
|
|
|
|
|
bool IsBlowing(void) const {return m_bIsBlowing; }
|
|
|
|
bool IsCharged(void) const {return m_bIsCharged; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2014-03-02 08:35:03 -05:00
|
|
|
bool m_bIsBlowing, m_bIsCharged, m_BurnedWithFlintAndSteel;
|
2014-01-24 14:52:52 -05:00
|
|
|
int m_ExplodingTimer;
|
2013-10-09 16:02:59 -04:00
|
|
|
|
2012-12-21 06:04:08 -05:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
2011-10-25 19:46:01 -04:00
|
|
|
|
|
|
|
|