* 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>
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
|
|
#pragma once
|
|
|
|
#include "Entity.h"
|
|
|
|
class HangingEntity : public Entity
|
|
{
|
|
public:
|
|
eINSTANCEOF GetType() { return eTYPE_HANGING_ENTITY; }
|
|
private:
|
|
|
|
void _init(Level *level);
|
|
|
|
int checkInterval;
|
|
//eINSTANCEOF eType;
|
|
|
|
protected:
|
|
virtual void defineSynchedData() {};
|
|
|
|
public:
|
|
int dir;
|
|
int xTile, yTile, zTile;
|
|
|
|
HangingEntity(Level *level);
|
|
HangingEntity(Level *level, int xTile, int yTile, int zTile, int dir);
|
|
void setDir(int dir);
|
|
virtual bool survives();
|
|
|
|
private:
|
|
float offs(int w);
|
|
|
|
public:
|
|
virtual void tick();
|
|
virtual bool isPickable();
|
|
virtual bool skipAttackInteraction(shared_ptr<Entity> source);
|
|
virtual bool hurt(DamageSource *source, float damage);
|
|
virtual void move(double xa, double ya, double za, bool noEntityCubes=false); // 4J - added noEntityCubes parameter
|
|
virtual void push(double xa, double ya, double za);
|
|
virtual void addAdditonalSaveData(CompoundTag *tag);
|
|
virtual void readAdditionalSaveData(CompoundTag *tag);
|
|
|
|
virtual int getWidth()=0;
|
|
virtual int getHeight()=0;
|
|
virtual void dropItem(shared_ptr<Entity> causedBy)=0;
|
|
|
|
protected:
|
|
virtual bool repositionEntityAfterLoad();
|
|
};
|