1
0

Replaced includes with forward declarations

This commit is contained in:
Lukas Pioch 2017-08-07 09:08:27 +02:00 committed by Tiger Wang
parent ee14344c05
commit 743a50014a
13 changed files with 23 additions and 23 deletions

View File

@ -10,11 +10,10 @@
#pragma once
#include "Blocks/BlockPluginInterface.h"
#include "World.h"
#include "Bindings/PluginManager.h"
class cWorld;
class cBlockInServerPluginInterface :

View File

@ -6,9 +6,9 @@
#include "BlockEntity.h"
#include "MetaRotator.h"
#include "ChunkInterface.h"
#include "../Entities/Entity.h"
class cEntity;
class cPlayer;
class cWorldInterface;

View File

@ -1,17 +1,19 @@
#pragma once
#include "BroadcastInterface.h"
#include "../Mobs/MonsterTypes.h"
class cItems;
typedef cItemCallback<cBlockEntity> cBlockEntityCallback;
class cBroadcastInterface;
class cItems;
class cPlayer;
class cWorldInterface
{
public:

View File

@ -12,7 +12,6 @@
#include "OSSupport/Network.h"
#include "Defines.h"
#include "Scoreboard.h"
#include "Map.h"
#include "UI/SlotArea.h"
#include "json/json.h"
#include "ChunkSender.h"
@ -34,6 +33,7 @@ class cWindow;
class cFallingBlock;
class cCompositeChat;
class cStatManager;
class cMap;
class cClientHandle;
typedef std::shared_ptr<cClientHandle> cClientHandlePtr;

View File

@ -12,10 +12,12 @@
#include "ProjectileEntity.h"
#include "EntityEffect.h"
#include "../World.h"
#include "Entity.h"
class cEntity;
// tolua_begin

View File

@ -3,7 +3,6 @@
#include "../Defines.h"
#include "../Item.h"
#include "../Blocks/BlockPluginInterface.h"
@ -12,6 +11,7 @@
// fwd:
class cWorld;
class cPlayer;
class cBlockPluginInterface;

View File

@ -7,12 +7,6 @@
// fwd:
class cChunk;
/** This class is used to determine which monster can be spawned in which place
it is essentially static (eg. Squids spawn in water, Zombies spawn in dark places)

View File

@ -2,11 +2,11 @@
#pragma once
#include "../Entities/Pawn.h"
#include "../Item.h"
#include "MonsterTypes.h"
#include "PathFinder.h"
class cItem;
class cClientHandle;

View File

@ -2,9 +2,9 @@
#pragma once
#include "PassiveAggressiveMonster.h"
#include "../Entities/Entity.h"
class cEntity;

View File

@ -11,7 +11,10 @@
#pragma once
#include "Protocol.h"
#include "../ByteBuffer.h"
class cByteBuffer;

View File

@ -12,7 +12,6 @@
#include "../Defines.h"
#include "../Scoreboard.h"
#include "../Map.h"
#include "../ByteBuffer.h"
#include "../EffectID.h"
@ -20,6 +19,7 @@
class cMap;
class cExpOrb;
class cPlayer;
class cEntity;

View File

@ -9,7 +9,8 @@
#pragma once
#include "../Inventory.h"
#include "Window.h"

View File

@ -10,7 +10,6 @@
#include "WorldStorage.h"
#include "FastNBT.h"
#include "../Mobs/Monster.h"
@ -18,7 +17,7 @@
// fwd: ItemGrid.h
class cItemGrid;
class cMonster;
class cProjectileEntity;
class cHangingEntity;