* try to resolve merge conflict
* feat: TU19 (Dec 2014) Features & Content (#32)
* December 2014 files
* Working release build
* Fix compilation issues
* Add sound to Windows64Media
* Add DLC content and force Tutorial DLC
* Revert "Add DLC content and force Tutorial DLC"
This reverts commit 97a4399472.
* Disable broken light packing
* Disable breakpoint during DLC texture map load
Allows DLC loading but the DLC textures are still broken
* Fix post build not working
* ...
* fix vs2022 build
* fix cmake build
---------
Co-authored-by: Loki <lokirautio@gmail.com>
66 lines
1.5 KiB
C++
66 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include "Monster.h"
|
|
|
|
class EnderMan : public Monster
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_ENDERMAN; }
|
|
static Entity *create(Level *level) { return new EnderMan(level); }
|
|
public:
|
|
static void staticCtor();
|
|
private:
|
|
static AttributeModifier *SPEED_MODIFIER_ATTACKING;
|
|
|
|
static bool MAY_TAKE[256];
|
|
|
|
static const int DATA_CARRY_ITEM_ID = 16;
|
|
static const int DATA_CARRY_ITEM_DATA = 17;
|
|
static const int DATA_CREEPY = 18;
|
|
|
|
private:
|
|
int teleportTime;
|
|
int aggroTime;
|
|
shared_ptr<Entity> lastAttackTarget;
|
|
bool aggroedByPlayer;
|
|
|
|
public:
|
|
EnderMan(Level *level);
|
|
|
|
protected:
|
|
virtual void registerAttributes();
|
|
virtual void defineSynchedData();
|
|
|
|
public:
|
|
virtual void addAdditonalSaveData(CompoundTag *tag);
|
|
virtual void readAdditionalSaveData(CompoundTag *tag);
|
|
|
|
protected:
|
|
virtual shared_ptr<Entity> findAttackTarget();
|
|
|
|
private:
|
|
bool isLookingAtMe(shared_ptr<Player> player);
|
|
|
|
public:
|
|
virtual void aiStep();
|
|
|
|
protected:
|
|
bool teleport();
|
|
bool teleportTowards(shared_ptr<Entity> e);
|
|
bool teleport(double xx, double yy, double zz);
|
|
|
|
virtual int getAmbientSound();
|
|
virtual int getHurtSound();
|
|
virtual int getDeathSound();
|
|
virtual int getDeathLoot();
|
|
virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);
|
|
|
|
public:
|
|
void setCarryingTile(int carryingTile);
|
|
int getCarryingTile();
|
|
void setCarryingData(int carryingData);
|
|
int getCarryingData();
|
|
virtual bool hurt(DamageSource *source, float damage);
|
|
bool isCreepy();
|
|
void setCreepy(bool creepy);
|
|
}; |