21 virtual void Tick(std::chrono::milliseconds a_Dt,
cChunk & a_Chunk)
override;
24 virtual bool Attack(std::chrono::milliseconds a_Dt)
override;
27 virtual bool IsUndead(
void)
override {
return true; }
#define CLASS_PROTODEF(classname)
This class bridges a vector of cItem for safe access via Lua.
cAggressiveMonster(const AString &a_ConfigName, eMonsterType a_MobType, const AString &a_SoundHurt, const AString &a_SoundDeath, const AString &a_SoundAmbient, float a_Width, float a_Height)
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
bool IsChargingBow() const
virtual bool Attack(std::chrono::milliseconds a_Dt) override
Try to perform attack returns true if attack was deemed successful (hit player, fired projectile,...
virtual void SpawnOn(cClientHandle &a_ClientHandle) override
Descendants override this function to send a command to the specified client to spawn the entity on t...
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
virtual bool IsUndead(void) override
Returns whether this mob is undead (skeleton, zombie, etc.)