mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-24 14:54:30 +01:00
TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
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);
|
|
}; |