2014-12-20 04:31:34 -05:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "PassiveMonster.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-16 19:09:06 -04:00
|
|
|
enum class eRabbitType : UInt8
|
|
|
|
{
|
|
|
|
Brown = 0,
|
|
|
|
White = 1,
|
|
|
|
Black = 2,
|
|
|
|
BlackAndWhite = 3,
|
|
|
|
Gold = 4,
|
|
|
|
SaltAndPepper = 5,
|
|
|
|
TheKillerBunny = 99
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-13 12:38:06 -04:00
|
|
|
class cRabbit:
|
2014-12-20 04:31:34 -05:00
|
|
|
public cPassiveMonster
|
|
|
|
{
|
2020-04-13 12:38:06 -04:00
|
|
|
using Super = cPassiveMonster;
|
2016-02-05 16:45:45 -05:00
|
|
|
|
2014-12-20 04:31:34 -05:00
|
|
|
public:
|
2020-04-13 12:38:06 -04:00
|
|
|
|
2014-12-20 04:31:34 -05:00
|
|
|
cRabbit();
|
2015-07-16 19:09:06 -04:00
|
|
|
cRabbit(eRabbitType Type, int MoreCarrotTicks = 0);
|
2014-12-20 04:31:34 -05:00
|
|
|
|
|
|
|
CLASS_PROTODEF(cRabbit)
|
|
|
|
|
|
|
|
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
|
2015-11-14 10:42:26 -05:00
|
|
|
virtual void GetFollowedItems(cItems & a_Items) override
|
|
|
|
{
|
|
|
|
a_Items.Add(E_ITEM_CARROT);
|
|
|
|
a_Items.Add(E_ITEM_GOLDEN_CARROT);
|
|
|
|
a_Items.Add(E_BLOCK_DANDELION);
|
|
|
|
}
|
2014-12-20 04:31:34 -05:00
|
|
|
|
2015-07-16 19:09:06 -04:00
|
|
|
eRabbitType GetRabbitType() const { return m_Type; }
|
|
|
|
int GetMoreCarrotTicks() const { return m_MoreCarrotTicks; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
eRabbitType m_Type;
|
|
|
|
int m_MoreCarrotTicks; // Ticks until the Rabbit eat planted Carrots
|
2014-12-20 07:04:42 -05:00
|
|
|
} ;
|