mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-26 21:26:38 +01:00
Co-authored-by: DrPerkyLegit <116128211+DrPerkyLegit@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Anaël <60509176+Bakoubak@users.noreply.github.com> Reviewed-on: https://git.neolegacy.dev/neoStudiosLCE/neoLegacy/pulls/4205
42 lines
966 B
C++
42 lines
966 B
C++
#pragma once
|
|
|
|
#include "Golem.h"
|
|
#include "RangedAttackMob.h"
|
|
|
|
class SnowMan : public Golem, public RangedAttackMob
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_SNOWMAN; }
|
|
static Entity *create(Level *level) { return new SnowMan(level); }
|
|
|
|
static const int DATA_PUMPKIN_ID = 16;
|
|
|
|
public:
|
|
SnowMan(Level *level);
|
|
virtual bool useNewAi();
|
|
bool hasPumpkin();
|
|
void setPumpkin(bool pumpkin);
|
|
virtual bool mobInteract(shared_ptr<Player> player);
|
|
virtual void addAdditonalSaveData(CompoundTag *tag);
|
|
virtual void readAdditionalSaveData(CompoundTag *tag);
|
|
|
|
protected:
|
|
virtual void defineSynchedData();
|
|
|
|
public:
|
|
|
|
protected:
|
|
virtual void registerAttributes();
|
|
|
|
public:
|
|
virtual void aiStep();
|
|
|
|
protected:
|
|
virtual int getHurtSound();
|
|
virtual int getDeathSound();
|
|
virtual int getDeathLoot();
|
|
// virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);
|
|
|
|
public:
|
|
virtual void performRangedAttack(shared_ptr<LivingEntity> target, float power);
|
|
}; |