summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-22 08:55:58 +0200
committermadmaxoft <github@xoft.cz>2013-08-22 08:55:58 +0200
commit73afb1507d2a0defda8a03f60030dc49bb53f94f (patch)
treeb5a14bb289756f734a8cc7e949e660298167627c /source/World.h
parentAnother fix for #31. (diff)
downloadcuberite-73afb1507d2a0defda8a03f60030dc49bb53f94f.tar
cuberite-73afb1507d2a0defda8a03f60030dc49bb53f94f.tar.gz
cuberite-73afb1507d2a0defda8a03f60030dc49bb53f94f.tar.bz2
cuberite-73afb1507d2a0defda8a03f60030dc49bb53f94f.tar.lz
cuberite-73afb1507d2a0defda8a03f60030dc49bb53f94f.tar.xz
cuberite-73afb1507d2a0defda8a03f60030dc49bb53f94f.tar.zst
cuberite-73afb1507d2a0defda8a03f60030dc49bb53f94f.zip
Diffstat (limited to '')
-rw-r--r--source/World.h4
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)); }