Organize game-shared includes

This commit is contained in:
Robert Müller 2022-05-29 14:11:29 +02:00
parent 31533d5e2a
commit c2f92c1e13
12 changed files with 8 additions and 9 deletions

View file

@ -3,6 +3,7 @@
#include "laser.h"
#include "character.h"
#include <game/generated/protocol.h>
#include <game/mapitems.h>
#include <engine/shared/config.h>

View file

@ -3,6 +3,7 @@
#include "pickup.h"
#include "character.h"
#include <game/generated/protocol.h>
#include <game/mapitems.h>
void CPickup::Tick()
{

View file

@ -3,6 +3,7 @@
#include "projectile.h"
#include <game/client/projectile_data.h>
#include <game/generated/protocol.h>
#include <game/mapitems.h>
#include <engine/shared/config.h>

View file

@ -7,7 +7,6 @@
#include <antibot/antibot_data.h>
#include <cmath>
#include <engine/kernel.h>
#include <engine/map.h>
#include <game/collision.h>

View file

@ -1,6 +1,7 @@
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include "gamecore.h"
#include "mapitems.h"
#include <engine/shared/config.h>

View file

@ -3,7 +3,6 @@
#ifndef GAME_GAMECORE_H
#define GAME_GAMECORE_H
#include <base/math.h>
#include <base/system.h>
#include <map>
@ -13,9 +12,7 @@
#include "collision.h"
#include <engine/shared/protocol.h>
#include <game/generated/protocol.h>
#include <math.h>
#include "mapitems.h"
#include "prng.h"
#include "teamscore.h"

View file

@ -1,6 +1,7 @@
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include "layers.h"
#include <engine/map.h>
CLayers::CLayers()
{

View file

@ -3,7 +3,6 @@
#ifndef GAME_LAYERS_H
#define GAME_LAYERS_H
#include <engine/map.h>
#include <game/mapitems.h>
class CLayers

View file

@ -3,8 +3,6 @@
#ifndef GAME_MAPITEMS_H
#define GAME_MAPITEMS_H
#include <engine/shared/protocol.h>
// layer types
enum
{

View file

@ -1,5 +1,7 @@
#include "prng.h"
#include <base/system.h>
// From https://en.wikipedia.org/w/index.php?title=Permuted_congruential_generator&oldid=901497400#Example_code.
//
// > The generator recommended for most users is PCG-XSH-RR with 64-bit state

View file

@ -1,7 +1,7 @@
#ifndef GAME_PRNG_H
#define GAME_PRNG_H
#include <base/system.h>
#include <stdint.h>
class CPrng
{

View file

@ -1,6 +1,5 @@
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
#include "teamscore.h"
#include <base/math.h>
#include <engine/shared/config.h>
CTeamsCore::CTeamsCore()