mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-11-23 11:42:31 +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
74 lines
1.9 KiB
C++
74 lines
1.9 KiB
C++
#pragma once
|
|
using namespace std;
|
|
|
|
#include "Monster.h"
|
|
#include "RangedAttackMob.h"
|
|
|
|
class RangedBowAttackGoal;
|
|
class MeleeAttackGoal;
|
|
|
|
class Skeleton : public Monster, public RangedAttackMob
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_SKELETON; }
|
|
static Entity *create(Level *level) { return new Skeleton(level); }
|
|
|
|
private:
|
|
static const int DATA_TYPE_ID = 13;
|
|
static const int DATA_AGGRESSIVE_ID = 14;
|
|
|
|
public:
|
|
static const int TYPE_DEFAULT = 0;
|
|
static const int TYPE_WITHER = 1;
|
|
static const int TYPE_STRAY = 2;
|
|
|
|
private:
|
|
RangedBowAttackGoal *bowGoal;
|
|
MeleeAttackGoal *meleeGoal;
|
|
|
|
public:
|
|
Skeleton(Level *level);
|
|
virtual ~Skeleton();
|
|
bool isAggressive();
|
|
void setAggressive(bool aggressive);
|
|
|
|
protected:
|
|
virtual void registerAttributes();
|
|
virtual void defineSynchedData();
|
|
|
|
public:
|
|
virtual bool useNewAi();
|
|
|
|
protected:
|
|
virtual int getAmbientSound();
|
|
virtual int getHurtSound();
|
|
virtual int getDeathSound();
|
|
virtual void playStepSound(int xt, int yt, int zt, int t);
|
|
|
|
public:
|
|
virtual bool doHurtTarget(shared_ptr<Entity> target);
|
|
|
|
public:
|
|
virtual MobType getMobType();
|
|
virtual void aiStep();
|
|
virtual void rideTick();
|
|
virtual void die(DamageSource *source);
|
|
|
|
protected:
|
|
virtual int getDeathLoot();
|
|
virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);
|
|
virtual void dropRareDeathLoot(int rareLootLevel);
|
|
virtual void populateDefaultEquipmentSlots();
|
|
|
|
public:
|
|
virtual MobGroupData *finalizeMobSpawn(MobGroupData *groupData, int extraData = 0); // 4J Added extraData param
|
|
virtual void reassessWeaponGoal();
|
|
virtual void performRangedAttack(shared_ptr<LivingEntity> target, float power);
|
|
virtual int getSkeletonType();
|
|
virtual void setSkeletonType(int type);
|
|
virtual void readAdditionalSaveData(CompoundTag *tag);
|
|
virtual void addAdditonalSaveData(CompoundTag *entityTag);
|
|
virtual void setEquippedSlot(int slot, shared_ptr<ItemInstance> item);
|
|
virtual double getRidingHeight();
|
|
};
|