mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Organize game-shared includes
This commit is contained in:
parent
31533d5e2a
commit
c2f92c1e13
|
@ -3,6 +3,7 @@
|
|||
#include "laser.h"
|
||||
#include "character.h"
|
||||
#include <game/generated/protocol.h>
|
||||
#include <game/mapitems.h>
|
||||
|
||||
#include <engine/shared/config.h>
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "pickup.h"
|
||||
#include "character.h"
|
||||
#include <game/generated/protocol.h>
|
||||
#include <game/mapitems.h>
|
||||
|
||||
void CPickup::Tick()
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <antibot/antibot_data.h>
|
||||
|
||||
#include <cmath>
|
||||
#include <engine/kernel.h>
|
||||
#include <engine/map.h>
|
||||
|
||||
#include <game/collision.h>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#ifndef GAME_LAYERS_H
|
||||
#define GAME_LAYERS_H
|
||||
|
||||
#include <engine/map.h>
|
||||
#include <game/mapitems.h>
|
||||
|
||||
class CLayers
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
#ifndef GAME_MAPITEMS_H
|
||||
#define GAME_MAPITEMS_H
|
||||
|
||||
#include <engine/shared/protocol.h>
|
||||
|
||||
// layer types
|
||||
enum
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef GAME_PRNG_H
|
||||
#define GAME_PRNG_H
|
||||
|
||||
#include <base/system.h>
|
||||
#include <stdint.h>
|
||||
|
||||
class CPrng
|
||||
{
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue