summaryrefslogtreecommitdiffstats
path: root/source/Entities/Entity.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-08 19:49:33 +0200
committermadmaxoft <github@xoft.cz>2013-10-08 19:49:33 +0200
commita4cbe9fbb138405d0ec87712c5e5c65a97c2bb75 (patch)
tree36d527ed9db5b8553a40849d147e85868ce2f9b0 /source/Entities/Entity.h
parentMerge pull request #208 from mc-server/NewWebServer (diff)
downloadcuberite-a4cbe9fbb138405d0ec87712c5e5c65a97c2bb75.tar
cuberite-a4cbe9fbb138405d0ec87712c5e5c65a97c2bb75.tar.gz
cuberite-a4cbe9fbb138405d0ec87712c5e5c65a97c2bb75.tar.bz2
cuberite-a4cbe9fbb138405d0ec87712c5e5c65a97c2bb75.tar.lz
cuberite-a4cbe9fbb138405d0ec87712c5e5c65a97c2bb75.tar.xz
cuberite-a4cbe9fbb138405d0ec87712c5e5c65a97c2bb75.tar.zst
cuberite-a4cbe9fbb138405d0ec87712c5e5c65a97c2bb75.zip
Diffstat (limited to 'source/Entities/Entity.h')
-rw-r--r--source/Entities/Entity.h43
1 files changed, 20 insertions, 23 deletions
diff --git a/source/Entities/Entity.h b/source/Entities/Entity.h
index c7c362b40..d6c449b92 100644
--- a/source/Entities/Entity.h
+++ b/source/Entities/Entity.h
@@ -61,7 +61,26 @@ struct TakeDamageInfo
// tolua_begin
class cEntity
{
-public:
+public:
+
+ enum eEntityType
+ {
+ etEntity, // For all other types
+ etPlayer,
+ etPickup,
+ etMonster,
+ etFallingBlock,
+ etMinecart,
+ etBoat,
+ etTNT,
+ etProjectile,
+
+ // Common variations
+ etMob = etMonster, // DEPRECATED, use etMonster instead!
+ } ;
+
+ // tolua_end
+
enum
{
ENTITY_STATUS_HURT = 2,
@@ -84,28 +103,6 @@ public:
BURN_TICKS = 200, ///< How long to keep an entity burning after it has stood in lava / fire
} ;
- enum eEntityType
- {
- etEntity, // For all other types
- etPlayer,
- etPickup,
- etMonster,
- etFallingBlock,
- etMinecart,
- etBoat,
- etTNT,
- etProjectile,
-
- // DEPRECATED older constants, left over for compatibility reasons (plugins)
- etMob = etMonster, // DEPRECATED, use etMonster instead!
- eEntityType_Entity = etEntity,
- eEntityType_Player = etPlayer,
- eEntityType_Pickup = etPickup,
- eEntityType_Mob = etMob,
- } ;
-
- // tolua_end
-
cEntity(eEntityType a_EntityType, double a_X, double a_Y, double a_Z, double a_Width, double a_Height);
virtual ~cEntity();