Cleanup includes

See the upstream commit 24bda2faa0
This commit is contained in:
Alexander Akulich 2021-01-09 16:40:30 +03:00
parent f16937b361
commit 476c2c60d7
6 changed files with 8 additions and 11 deletions

View file

@ -2,6 +2,7 @@
/* If you are missing that file, acquire a complete release at teeworlds.com. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <antibot/antibot_data.h> #include <antibot/antibot_data.h>
#include <engine/shared/config.h> #include <engine/shared/config.h>
#include <game/generated/server_data.h>
#include <game/mapitems.h> #include <game/mapitems.h>
#include <game/server/gamecontext.h> #include <game/server/gamecontext.h>
#include <game/server/player.h> #include <game/server/player.h>

View file

@ -4,13 +4,9 @@
#define GAME_SERVER_ENTITIES_CHARACTER_H #define GAME_SERVER_ENTITIES_CHARACTER_H
#include <engine/antibot.h> #include <engine/antibot.h>
#include <game/generated/protocol.h>
#include <game/generated/server_data.h>
#include <game/server/entity.h> #include <game/server/entity.h>
#include <game/server/save.h> #include <game/server/save.h>
#include <game/gamecore.h>
class CAntibot; class CAntibot;
class CGameTeams; class CGameTeams;
struct CAntibotCharacterData; struct CAntibotCharacterData;

View file

@ -13,11 +13,11 @@
#include <engine/shared/config.h> #include <engine/shared/config.h>
#include <engine/shared/datafile.h> #include <engine/shared/datafile.h>
#include <engine/shared/linereader.h> #include <engine/shared/linereader.h>
#include <engine/shared/memheap.h>
#include <engine/storage.h> #include <engine/storage.h>
#include <game/collision.h> #include <game/collision.h>
#include <game/gamecore.h> #include <game/gamecore.h>
#include <game/version.h> #include <game/version.h>
#include <new>
#include <string.h> #include <string.h>
#include <game/generated/protocol7.h> #include <game/generated/protocol7.h>

View file

@ -6,7 +6,6 @@
#include <engine/antibot.h> #include <engine/antibot.h>
#include <engine/console.h> #include <engine/console.h>
#include <engine/server.h> #include <engine/server.h>
#include <engine/shared/memheap.h>
#include <game/layers.h> #include <game/layers.h>
#include <game/mapbugs.h> #include <game/mapbugs.h>
@ -16,7 +15,7 @@
#include <base/tl/string.h> #include <base/tl/string.h>
#include "eventhandler.h" #include "eventhandler.h"
#include "gamecontroller.h" //#include "gamecontroller.h"
#include "gameworld.h" #include "gameworld.h"
#include "teehistorian.h" #include "teehistorian.h"
@ -57,8 +56,11 @@ enum
NUM_TUNEZONES = 256 NUM_TUNEZONES = 256
}; };
class CHeap;
class CPlayer;
class CScore; class CScore;
class IConsole; class IConsole;
class IGameController;
class IEngine; class IEngine;
class IStorage; class IStorage;
struct CAntibotData; struct CAntibotData;

View file

@ -2,7 +2,6 @@
/* If you are missing that file, acquire a complete release at teeworlds.com. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */
#include "player.h" #include "player.h"
#include <engine/shared/config.h> #include <engine/shared/config.h>
#include <new>
#include "entities/character.h" #include "entities/character.h"
#include "gamecontext.h" #include "gamecontext.h"
@ -11,7 +10,6 @@
#include <game/gamecore.h> #include <game/gamecore.h>
#include <game/server/teams.h> #include <game/server/teams.h>
#include <game/version.h> #include <game/version.h>
#include <time.h>
MACRO_ALLOC_POOL_ID_IMPL(CPlayer, MAX_CLIENTS) MACRO_ALLOC_POOL_ID_IMPL(CPlayer, MAX_CLIENTS)

View file

@ -3,11 +3,11 @@
#ifndef GAME_SERVER_PLAYER_H #ifndef GAME_SERVER_PLAYER_H
#define GAME_SERVER_PLAYER_H #define GAME_SERVER_PLAYER_H
#include "alloc.h"
// this include should perhaps be removed // this include should perhaps be removed
#include "gamecontext.h"
#include "score.h" #include "score.h"
#include "teeinfo.h" #include "teeinfo.h"
#include <memory>
enum enum
{ {