diff options
author | worktycho <work.tycho@gmail.com> | 2014-09-26 17:04:26 +0200 |
---|---|---|
committer | worktycho <work.tycho@gmail.com> | 2014-09-26 17:04:26 +0200 |
commit | 411c69b420acdc1e103a76a1a52e2c488aee5718 (patch) | |
tree | 06e33fb4b17d9c782ebb834a9821571f11ae103c /src/Blocks/WorldInterface.h | |
parent | Improved searching for spawn. (diff) | |
parent | Merge branch 'master' into redstoneTests (diff) | |
download | cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.gz cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.bz2 cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.lz cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.xz cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.tar.zst cuberite-411c69b420acdc1e103a76a1a52e2c488aee5718.zip |
Diffstat (limited to 'src/Blocks/WorldInterface.h')
-rw-r--r-- | src/Blocks/WorldInterface.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Blocks/WorldInterface.h b/src/Blocks/WorldInterface.h index 889ef1d87..106c314e7 100644 --- a/src/Blocks/WorldInterface.h +++ b/src/Blocks/WorldInterface.h @@ -2,14 +2,15 @@ #pragma once #include "BroadcastInterface.h" -#include "../Mobs/Monster.h" +#include "../Mobs/MonsterTypes.h" class cItems; typedef cItemCallback<cBlockEntity> cBlockEntityCallback; - +class cMonster; +class cPlayer; class cWorldInterface @@ -33,7 +34,7 @@ public: virtual void SpawnItemPickups(const cItems & a_Pickups, double a_BlockX, double a_BlockY, double a_BlockZ, double a_SpeedX, double a_SpeedY, double a_SpeedZ, bool IsPlayerCreated = false) = 0; /** Spawns a mob of the specified type. Returns the mob's EntityID if recognized and spawned, <0 otherwise */ - virtual int SpawnMob(double a_PosX, double a_PosY, double a_PosZ, cMonster::eType a_MonsterType) = 0; + virtual int SpawnMob(double a_PosX, double a_PosY, double a_PosZ, eMonsterType a_MonsterType) = 0; /** Spawns an experience orb at the given location with the given reward. It returns the UniqueID of the spawned experience orb. */ virtual int SpawnExperienceOrb(double a_X, double a_Y, double a_Z, int a_Reward) = 0; |