diff options
author | madmaxoft <github@xoft.cz> | 2013-10-08 19:49:33 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-08 19:49:33 +0200 |
commit | a4cbe9fbb138405d0ec87712c5e5c65a97c2bb75 (patch) | |
tree | 36d527ed9db5b8553a40849d147e85868ce2f9b0 /source/Entities | |
parent | Merge pull request #208 from mc-server/NewWebServer (diff) | |
download | cuberite-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')
-rw-r--r-- | source/Entities/Entity.h | 43 |
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(); |