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 #pragma once
#include "Blocks/BlockPluginInterface.h" #include "Blocks/BlockPluginInterface.h"
#include "World.h"
#include "Bindings/PluginManager.h" #include "Bindings/PluginManager.h"
class cWorld;
class cBlockInServerPluginInterface : class cBlockInServerPluginInterface :

View File

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

View File

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

View File

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

View File

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

View File

@ -3,7 +3,6 @@
#include "../Defines.h" #include "../Defines.h"
#include "../Item.h" #include "../Item.h"
#include "../Blocks/BlockPluginInterface.h"
@ -12,6 +11,7 @@
// fwd: // fwd:
class cWorld; class cWorld;
class cPlayer; 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 /** 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) it is essentially static (eg. Squids spawn in water, Zombies spawn in dark places)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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