diff options
author | madmaxoft <github@xoft.cz> | 2013-08-30 14:32:07 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-30 14:32:07 +0200 |
commit | c28ccdc9d56497d42c2a97554a96de76e0d2ee68 (patch) | |
tree | f1a1f5629ae7e2565330580ab4e6fe76466acf6e /source/World.h | |
parent | Added the login sequence of a vanilla client to the docs. (diff) | |
parent | Shooting a bow kinda works. (diff) | |
download | cuberite-c28ccdc9d56497d42c2a97554a96de76e0d2ee68.tar cuberite-c28ccdc9d56497d42c2a97554a96de76e0d2ee68.tar.gz cuberite-c28ccdc9d56497d42c2a97554a96de76e0d2ee68.tar.bz2 cuberite-c28ccdc9d56497d42c2a97554a96de76e0d2ee68.tar.lz cuberite-c28ccdc9d56497d42c2a97554a96de76e0d2ee68.tar.xz cuberite-c28ccdc9d56497d42c2a97554a96de76e0d2ee68.tar.zst cuberite-c28ccdc9d56497d42c2a97554a96de76e0d2ee68.zip |
Diffstat (limited to 'source/World.h')
-rw-r--r-- | source/World.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/World.h b/source/World.h index bcda169bd..9e2bf4e8f 100644 --- a/source/World.h +++ b/source/World.h @@ -21,6 +21,7 @@ #include "LightingThread.h" #include "Item.h" #include "Mobs/Monster.h" +#include "Entities/ProjectileEntity.h" @@ -573,6 +574,9 @@ public: /// Spawns a mob of the specified type. Returns the mob's EntityID if recognized and spawned, <0 otherwise int SpawnMob(double a_PosX, double a_PosY, double a_PosZ, cMonster::eType a_MonsterType); // tolua_export + /// Creates a projectile of the specified type. Returns the projectile's EntityID if successful, <0 otherwise + int CreateProjectile(double a_PosX, double a_PosY, double a_PosZ, cProjectileEntity::eKind a_Kind, cEntity * a_Creator, const Vector3d * a_Speed = NULL); // tolua_export + /// Returns a random number from the m_TickRand in range [0 .. a_Range]. To be used only in the tick thread! int GetTickRandomNumber(unsigned a_Range) { return (int)(m_TickRand.randInt(a_Range)); } |