forked from Kolyah35/minecraft-pe-0.6.1
the whole game
This commit is contained in:
36
src/world/entity/HangingEntity.h
Executable file
36
src/world/entity/HangingEntity.h
Executable file
@@ -0,0 +1,36 @@
|
||||
#ifndef NET_MINECRAFT_WORLD_ENTITY__HangingEntity_H__
|
||||
#define NET_MINECRAFT_WORLD_ENTITY__HangingEntity_H__
|
||||
|
||||
#include "Entity.h"
|
||||
class HangingEntity : public Entity {
|
||||
typedef Entity super;
|
||||
public:
|
||||
HangingEntity(Level* level);
|
||||
HangingEntity(Level* level, int xTile, int yTile, int zTile, int dir);
|
||||
void init();
|
||||
void setDir(int dir);
|
||||
void setPosition(int x, int y, int z);
|
||||
virtual void tick();
|
||||
virtual bool survives();
|
||||
bool isPickable();
|
||||
bool interact(Player* player);
|
||||
void move(float xa, float ya, float za);
|
||||
void push(float xa, float ya, float za);
|
||||
virtual void addAdditonalSaveData(CompoundTag* tag);
|
||||
virtual void readAdditionalSaveData(CompoundTag* tag);
|
||||
virtual int getWidth() = 0;
|
||||
virtual int getHeight() = 0;
|
||||
virtual void dropItem() = 0;
|
||||
virtual bool isHangingEntity();
|
||||
virtual float getBrightness(float a);
|
||||
virtual bool hurt(Entity* source, int damage);
|
||||
private:
|
||||
float offs(int w);
|
||||
public:
|
||||
int dir;
|
||||
int xTile, yTile, zTile;
|
||||
private:
|
||||
int checkInterval;
|
||||
};
|
||||
|
||||
#endif /* NET_MINECRAFT_WORLD_ENTITY__HangingEntity_H__ */
|
||||
Reference in New Issue
Block a user