summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-11-26 10:48:46 +0100
committerMattes D <github@xoft.cz>2013-11-26 10:48:46 +0100
commit6041fa1e62cc490c4595e6cd267eb96ac5b6e041 (patch)
tree00e3c895d8e0143275ba6d1a9a1ff0361714b53e /source/World.cpp
parentFixed cFile compilation on Linux. (diff)
parentAdded ExpOrb.cpp and ExpOrb.h to MCServer.vcproj. (diff)
downloadcuberite-6041fa1e62cc490c4595e6cd267eb96ac5b6e041.tar
cuberite-6041fa1e62cc490c4595e6cd267eb96ac5b6e041.tar.gz
cuberite-6041fa1e62cc490c4595e6cd267eb96ac5b6e041.tar.bz2
cuberite-6041fa1e62cc490c4595e6cd267eb96ac5b6e041.tar.lz
cuberite-6041fa1e62cc490c4595e6cd267eb96ac5b6e041.tar.xz
cuberite-6041fa1e62cc490c4595e6cd267eb96ac5b6e041.tar.zst
cuberite-6041fa1e62cc490c4595e6cd267eb96ac5b6e041.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 531952e37..432ab32e9 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -13,6 +13,7 @@
#include "OSSupport/Timer.h"
// Entities (except mobs):
+#include "Entities/ExpOrb.h"
#include "Entities/Pickup.h"
#include "Entities/Player.h"
#include "Entities/TNTEntity.h"
@@ -1561,6 +1562,16 @@ void cWorld::SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double
+void cWorld::SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward)
+{
+ cExpOrb * ExpOrb = new cExpOrb(a_X, a_Y, a_Z, a_Reward);
+ ExpOrb->Initialize(this);
+}
+
+
+
+
+
void cWorld::SpawnPrimedTNT(double a_X, double a_Y, double a_Z, double a_FuseTimeInSec, double a_InitialVelocityCoeff)
{
cTNTEntity * TNT = new cTNTEntity(a_X, a_Y, a_Z, a_FuseTimeInSec);