mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #5276
5276: Organize includes: Include only what's necessary and only where necessary r=def- a=Robyt3 I used https://github.com/include-what-you-use/include-what-you-use to find unused includes and then manually adjusted their usages. Why? See https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/WhyIWYU.md. This PR removes unused includes or moves the includes so they are used where necessary, to achieve the first two benefits listed there. Eventually IWYU could be used to also add all includes that are transitively needed (thereby doing what the tool name implies), so refactoring could be made easier, as the includes of every file would be independent from those of other files. We can have a separate discussion about organizing the includes further. For example how includes should be grouped and how those groups should be ordered. Right now clang-format just enforces alphabetical ordering for all includes in a group. Also to what extent should forward-declarations be used instead of includes. IWYU usage after compiling and adding it to the path: ``` mkdir build cd build CC="clang" CXX="clang++" cmake -G "Unix Makefiles" -DCMAKE_CXX_INCLUDE_WHAT_YOU_USE="include-what-you-use;-Xiwyu;--no_comments;-Xiwyu;--no_fwd_decls;-Xiwyu;--quoted_includes_first" -B . .. make 2> iwyu.log ``` Adding IWYU to the CI would likely be too much effort, as the changes that IWYU proposes need to be manually reviewed, as there are some false-positives, especially with conditional includes/usages of includes. ## Checklist - [X] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test if it works standalone, system.c especially - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: Robert Müller <robytemueller@gmail.com>
This commit is contained in:
commit
cfdb97a422
|
@ -39,8 +39,6 @@ Authed = ["NO", "HELPER", "MOD", "ADMIN"]
|
|||
EntityClasses = ["PROJECTILE", "DOOR", "DRAGGER_WEAK", "DRAGGER_NORMAL", "DRAGGER_STRONG", "GUN_NORMAL", "GUN_EXPLOSIVE", "GUN_FREEZE", "GUN_UNFREEZE", "LIGHT", "PICKUP"]
|
||||
|
||||
RawHeader = '''
|
||||
|
||||
#include <engine/message.h>
|
||||
#include <engine/shared/teehistorian_ex.h>
|
||||
|
||||
enum
|
||||
|
@ -69,7 +67,6 @@ enum
|
|||
'''
|
||||
|
||||
RawSource = '''
|
||||
#include <engine/message.h>
|
||||
#include "protocol.h"
|
||||
'''
|
||||
|
||||
|
|
|
@ -23,8 +23,6 @@ GameMsgIDs = Enum("GAMEMSG", ["TEAM_SWAP", "SPEC_INVALIDID", "TEAM_SHUFFLE", "TE
|
|||
|
||||
RawHeader = '''
|
||||
|
||||
#include <engine/message.h>
|
||||
|
||||
enum
|
||||
{
|
||||
INPUT_STATE_MASK=0x3f
|
||||
|
@ -58,7 +56,6 @@ enum
|
|||
'''
|
||||
|
||||
RawSource = '''
|
||||
#include <engine/message.h>
|
||||
#include "protocol.h"
|
||||
'''
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
|
||||
#include "hash_ctxt.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
|
||||
#include "logger.h"
|
||||
|
||||
#if !defined(CONF_PLATFORM_MACOS)
|
||||
#include <base/color.h>
|
||||
#endif
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
#define __USE_GNU
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "glsl_shader_compiler.h"
|
||||
|
||||
#include <base/system.h>
|
||||
#include <engine/client/backend_sdl.h>
|
||||
#include <engine/graphics.h>
|
||||
|
||||
CGLSLCompiler::CGLSLCompiler(int OpenGLVersionMajor, int OpenGLVersionMinor, int OpenGLVersionPatch, bool IsOpenGLES, float TextureLODBias)
|
||||
{
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include <engine/client/backend/opengl/opengl_sl.h>
|
||||
#include <engine/client/backend/opengl/opengl_sl_program.h>
|
||||
#include <engine/client/blocklist_driver.h>
|
||||
|
||||
#include <engine/client/backend/glsl_shader_compiler.h>
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include <base/system.h>
|
||||
|
||||
#include <engine/client/backend/backend_base.h>
|
||||
#include <engine/client/backend_sdl.h>
|
||||
|
||||
class CGLSLProgram;
|
||||
class CGLSLTWProgram;
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#define ENGINE_CLIENT_BACKEND_OPENGL_BACKEND_OPENGL3_H_AS_ES
|
||||
#endif
|
||||
|
||||
#include <engine/client/backend_sdl.h>
|
||||
|
||||
#include "backend_opengl.h"
|
||||
|
||||
#define MAX_STREAM_BUFFER_COUNT 10
|
||||
|
|
|
@ -10,9 +10,8 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include <engine/client/backend_sdl.h>
|
||||
|
||||
#include <engine/client/backend/glsl_shader_compiler.h>
|
||||
#include <engine/graphics.h>
|
||||
|
||||
#ifndef BACKEND_AS_OPENGL_ES
|
||||
#include <GL/glew.h>
|
||||
|
|
|
@ -10,13 +10,8 @@
|
|||
#define ENGINE_CLIENT_BACKEND_OPENGL_OPENGL_SL_H_AS_ES
|
||||
#endif
|
||||
|
||||
#include <base/detect.h>
|
||||
|
||||
#include <engine/client/graphics_defines.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class CGLSLCompiler;
|
||||
|
||||
class CGLSL
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#define ENGINE_CLIENT_BACKEND_OPENGL_OPENGL_SL_PROGRAM_H_AS_ES
|
||||
#endif
|
||||
|
||||
#include <base/detect.h>
|
||||
|
||||
#include <engine/client/graphics_defines.h>
|
||||
|
||||
class CGLSL;
|
||||
|
|
|
@ -35,8 +35,7 @@
|
|||
|
||||
#include <unordered_map>
|
||||
|
||||
#include <SDL.h>
|
||||
#include <SDL_error.h>
|
||||
#include <SDL_video.h>
|
||||
#include <SDL_vulkan.h>
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#ifndef ENGINE_CLIENT_BACKEND_VULKAN_BACKEND_VULKAN_H
|
||||
#define ENGINE_CLIENT_BACKEND_VULKAN_BACKEND_VULKAN_H
|
||||
|
||||
#include <base/detect.h>
|
||||
#include <engine/client/backend_sdl.h>
|
||||
#include <engine/client/backend/backend_base.h>
|
||||
|
||||
static constexpr int gs_BackendVulkanMajor = 1;
|
||||
static constexpr int gs_BackendVulkanMinor = 0;
|
||||
|
|
|
@ -12,18 +12,15 @@
|
|||
|
||||
#include <engine/storage.h>
|
||||
|
||||
#include "SDL.h"
|
||||
#include <SDL.h>
|
||||
#include <SDL_hints.h>
|
||||
#include <SDL_pixels.h>
|
||||
#include <SDL_video.h>
|
||||
|
||||
#include "SDL_syswm.h"
|
||||
#include <base/detect.h>
|
||||
#include <base/math.h>
|
||||
#include <cmath>
|
||||
#include <cstdlib>
|
||||
|
||||
#include "SDL_hints.h"
|
||||
#include "SDL_pixels.h"
|
||||
#include "SDL_video.h"
|
||||
|
||||
#include <engine/shared/config.h>
|
||||
|
||||
#include <base/tl/threading.h>
|
||||
|
@ -45,15 +42,11 @@
|
|||
#endif
|
||||
|
||||
#if defined(CONF_BACKEND_VULKAN)
|
||||
#include <SDL_vulkan.h>
|
||||
|
||||
#include "backend/vulkan/backend_vulkan.h"
|
||||
#endif
|
||||
|
||||
#include "graphics_threaded.h"
|
||||
|
||||
#include <engine/shared/image_manipulation.h>
|
||||
|
||||
#include <engine/graphics.h>
|
||||
|
||||
#ifdef __MINGW32__
|
||||
|
|
|
@ -1,23 +1,17 @@
|
|||
#ifndef ENGINE_CLIENT_BACKEND_SDL_H
|
||||
#define ENGINE_CLIENT_BACKEND_SDL_H
|
||||
|
||||
#include "SDL.h"
|
||||
#include <SDL_video.h>
|
||||
|
||||
#include <base/detect.h>
|
||||
|
||||
#include "engine/graphics.h"
|
||||
#include "graphics_defines.h"
|
||||
|
||||
#include "blocklist_driver.h"
|
||||
#include "graphics_threaded.h"
|
||||
|
||||
#include <base/tl/threading.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <condition_variable>
|
||||
#include <mutex>
|
||||
#include <thread>
|
||||
#include <vector>
|
||||
|
||||
#if defined(CONF_PLATFORM_MACOS)
|
||||
#include <objc/objc-runtime.h>
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include <base/system.h>
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
#define VERSION_PARTS 4
|
||||
|
||||
struct SVersion
|
||||
|
|
|
@ -5,19 +5,15 @@
|
|||
|
||||
#include <climits>
|
||||
#include <new>
|
||||
|
||||
#include <cstdarg>
|
||||
#include <tuple>
|
||||
|
||||
#include <base/hash_ctxt.h>
|
||||
#include <base/logger.h>
|
||||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
#include <base/vmath.h>
|
||||
|
||||
#include <game/client/components/menus.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/editor/editor.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <engine/client.h>
|
||||
#include <engine/config.h>
|
||||
|
@ -38,27 +34,24 @@
|
|||
#include <engine/shared/assertion_logger.h>
|
||||
#include <engine/shared/compression.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/shared/datafile.h>
|
||||
#include <engine/shared/demo.h>
|
||||
#include <engine/shared/fifo.h>
|
||||
#include <engine/shared/filecollection.h>
|
||||
#include <engine/shared/http.h>
|
||||
#include <engine/shared/json.h>
|
||||
#include <engine/shared/masterserver.h>
|
||||
#include <engine/shared/network.h>
|
||||
#include <engine/shared/packer.h>
|
||||
#include <engine/shared/protocol.h>
|
||||
#include <engine/shared/protocol_ex.h>
|
||||
#include <engine/shared/ringbuffer.h>
|
||||
#include <engine/shared/snapshot.h>
|
||||
#include <engine/shared/uuid_manager.h>
|
||||
|
||||
#include <base/system.h>
|
||||
|
||||
#include <game/localization.h>
|
||||
#include <game/version.h>
|
||||
|
||||
#include <engine/client/demoedit.h>
|
||||
#include <engine/client/serverbrowser.h>
|
||||
|
||||
#if defined(CONF_FAMILY_WINDOWS)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
@ -73,15 +66,11 @@
|
|||
#include "video.h"
|
||||
#endif
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
#include "SDL.h"
|
||||
#ifdef main
|
||||
#undef main
|
||||
#endif
|
||||
|
||||
// for android
|
||||
#include "SDL_rwops.h"
|
||||
#include "base/hash.h"
|
||||
|
||||
// for msvc
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
#include <engine/console.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/keys.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/storage.h>
|
||||
#include <game/generated/client_data.h>
|
||||
|
@ -24,8 +23,6 @@
|
|||
|
||||
#include <engine/shared/image_manipulation.h>
|
||||
|
||||
#include <cmath> // cosf, sinf, log2f
|
||||
|
||||
#if defined(CONF_VIDEORECORDER)
|
||||
#include "video.h"
|
||||
#endif
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
/* (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 "SDL.h"
|
||||
#include <SDL_clipboard.h>
|
||||
#include <SDL_events.h>
|
||||
#include <SDL_keyboard.h>
|
||||
#include <SDL_mouse.h>
|
||||
#include <SDL_rect.h>
|
||||
|
||||
#include <base/system.h>
|
||||
#include <engine/graphics.h>
|
||||
|
|
|
@ -7,8 +7,6 @@
|
|||
#include <engine/input.h>
|
||||
#include <engine/keys.h>
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
class CInput : public IEngineInput
|
||||
{
|
||||
IEngineGraphics *m_pGraphics;
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <sqlite3.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <vector>
|
||||
|
||||
class CServerBrowserPingCache : public IServerBrowserPingCache
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#include <engine/sound.h>
|
||||
#include <engine/storage.h>
|
||||
|
||||
#include "SDL.h"
|
||||
#include <SDL_audio.h>
|
||||
|
||||
class CSound : public IEngineSound
|
||||
{
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/storage.h>
|
||||
#include <engine/textrender.h>
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
#include <engine/client.h>
|
||||
#include <engine/engine.h>
|
||||
#include <engine/external/json-parser/json.h>
|
||||
#include <engine/shared/http.h>
|
||||
#include <engine/shared/json.h>
|
||||
#include <engine/storage.h>
|
||||
#include <game/version.h>
|
||||
|
||||
#include <cstdlib> // system
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef ENGINE_CLIENT_UPDATER_H
|
||||
#define ENGINE_CLIENT_UPDATER_H
|
||||
|
||||
#include <engine/shared/http.h>
|
||||
#include <engine/updater.h>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
|
|
@ -7,6 +7,11 @@
|
|||
#include <engine/client/graphics_threaded.h>
|
||||
#include <engine/sound.h>
|
||||
|
||||
extern "C" {
|
||||
#include <libavutil/avutil.h>
|
||||
#include <libavutil/opt.h>
|
||||
};
|
||||
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
|
|
|
@ -3,18 +3,13 @@
|
|||
|
||||
#include <base/system.h>
|
||||
|
||||
#include "graphics_defines.h"
|
||||
|
||||
extern "C" {
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libavutil/imgutils.h>
|
||||
#include <libavutil/opt.h>
|
||||
#include <libswresample/swresample.h>
|
||||
#include <libswscale/swscale.h>
|
||||
};
|
||||
|
||||
#include <engine/shared/demo.h>
|
||||
#include <engine/shared/video.h>
|
||||
|
||||
#include <atomic>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#define ENGINE_GHOST_H
|
||||
|
||||
#include <base/hash.h>
|
||||
#include <engine/map.h>
|
||||
#include <engine/shared/protocol.h>
|
||||
|
||||
#include "kernel.h"
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include <engine/shared/assertion_logger.h>
|
||||
#include <engine/shared/compression.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/shared/datafile.h>
|
||||
#include <engine/shared/demo.h>
|
||||
#include <engine/shared/econ.h>
|
||||
#include <engine/shared/fifo.h>
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#define ENGINE_SERVER_SERVER_H
|
||||
|
||||
#include <base/hash.h>
|
||||
#include <base/math.h>
|
||||
|
||||
#include <engine/engine.h>
|
||||
#include <engine/server.h>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
#include <base/system.h>
|
||||
#include <cmath>
|
||||
#include <cstring>
|
||||
|
||||
void sqlstr::FuzzyString(char *pString, int Size)
|
||||
{
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
/* (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 <new>
|
||||
|
||||
#include <base/color.h>
|
||||
#include <base/log.h>
|
||||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
#include <base/vmath.h>
|
||||
|
||||
#include <engine/client/checksum.h>
|
||||
#include <engine/shared/protocol.h>
|
||||
|
@ -17,6 +15,7 @@
|
|||
#include "linereader.h"
|
||||
|
||||
#include <array> // std::size
|
||||
#include <new>
|
||||
|
||||
// todo: rework this
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include "datafile.h"
|
||||
|
||||
#include <base/hash_ctxt.h>
|
||||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
#include <engine/storage.h>
|
||||
|
||||
|
|
|
@ -3,10 +3,9 @@
|
|||
|
||||
#include "network.h"
|
||||
|
||||
#include <engine/config.h>
|
||||
#include <engine/console.h>
|
||||
|
||||
class CConfig;
|
||||
|
||||
class CEcon
|
||||
{
|
||||
enum
|
||||
|
|
|
@ -10,8 +10,6 @@
|
|||
#include <engine/shared/network.h>
|
||||
#include <engine/storage.h>
|
||||
|
||||
#include <engine/shared/assertion_logger.h>
|
||||
|
||||
CHostLookup::CHostLookup() = default;
|
||||
|
||||
CHostLookup::CHostLookup(const char *pHostname, int Nettype)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <engine/storage.h>
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
class CFileCollection
|
||||
{
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <base/log.h>
|
||||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
#include <engine/engine.h>
|
||||
#include <engine/external/json-parser/json.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/storage.h>
|
||||
|
@ -15,7 +14,6 @@
|
|||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <curl/curl.h>
|
||||
#include <curl/easy.h>
|
||||
|
||||
// TODO: Non-global pls?
|
||||
static CURLSH *gs_Share;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef ENGINE_SHARED_IMAGE_MANIPULATION_H
|
||||
#define ENGINE_SHARED_IMAGE_MANIPULATION_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
void DilateImage(unsigned char *pImageBuff, int w, int h, int BPP);
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <atomic>
|
||||
#include <memory>
|
||||
|
||||
class IJob;
|
||||
class CJobPool;
|
||||
|
||||
class IJob
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#include <base/system.h>
|
||||
|
||||
#include <engine/console.h>
|
||||
|
||||
#include "netban.h"
|
||||
#include "network.h"
|
||||
|
||||
|
|
|
@ -3,14 +3,11 @@
|
|||
#include <base/hash_ctxt.h>
|
||||
#include <base/system.h>
|
||||
|
||||
#include <engine/console.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "netban.h"
|
||||
#include "network.h"
|
||||
#include <engine/message.h>
|
||||
#include <engine/shared/protocol.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
const int DummyMapCrc = 0x6c760ac4;
|
||||
unsigned char g_aDummyMapData[] = {
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <base/system.h>
|
||||
|
||||
#include "compression.h"
|
||||
#include "config.h"
|
||||
#include "packer.h"
|
||||
|
||||
void CPacker::Reset()
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#include "protocol_ex.h"
|
||||
|
||||
#include "config.h"
|
||||
#include "protocol.h"
|
||||
#include "uuid_manager.h"
|
||||
|
||||
#include <new>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <climits>
|
||||
|
||||
#include <game/generated/protocol.h>
|
||||
#include <base/system.h>
|
||||
#include <game/generated/protocolglue.h>
|
||||
|
||||
// CSnapshot
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#ifndef ENGINE_SHARED_SNAPSHOT_H
|
||||
#define ENGINE_SHARED_SNAPSHOT_H
|
||||
|
||||
#include <base/system.h>
|
||||
#include <stdint.h>
|
||||
|
||||
// CSnapshot
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#if defined(CONF_VIDEORECORDER)
|
||||
|
||||
#include <engine/shared/config.h>
|
||||
|
||||
#include "video.h"
|
||||
|
||||
IVideo *IVideo::ms_pCurrentVideo = 0;
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
#include <base/math.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include "animstate.h"
|
||||
|
||||
|
|
|
@ -7,15 +7,8 @@
|
|||
#include <engine/shared/video.h>
|
||||
#endif
|
||||
|
||||
#include <base/color.h>
|
||||
#include <engine/input.h>
|
||||
|
||||
#include <engine/client.h>
|
||||
#include <engine/console.h>
|
||||
#include <game/localization.h>
|
||||
|
||||
#include <engine/config.h>
|
||||
|
||||
class CGameClient;
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
#include <base/system.h>
|
||||
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/map.h>
|
||||
#include <engine/shared/config.h>
|
||||
|
||||
#include <game/client/components/camera.h>
|
||||
#include <game/client/components/mapimages.h>
|
||||
#include <game/client/components/maplayers.h>
|
||||
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#ifndef GAME_CLIENT_COMPONENTS_BINDS_H
|
||||
#define GAME_CLIENT_COMPONENTS_BINDS_H
|
||||
#include <engine/keys.h>
|
||||
#include <game/client/component.h>
|
||||
|
||||
#include "console.h"
|
||||
#include <engine/console.h>
|
||||
#include <engine/keys.h>
|
||||
|
||||
#include <game/client/component.h>
|
||||
|
||||
class IConfigManager;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#include <engine/graphics.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/textrender.h>
|
||||
#include <game/generated/client_data.h>
|
||||
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <game/client/gameclient.h>
|
||||
|
|
|
@ -4,14 +4,12 @@
|
|||
#include <engine/shared/config.h>
|
||||
|
||||
#include <base/math.h>
|
||||
#include <game/client/component.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/collision.h>
|
||||
|
||||
#include "camera.h"
|
||||
#include "controls.h"
|
||||
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <limits>
|
||||
|
||||
const float ZoomStep = 0.866025f;
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
#ifndef GAME_CLIENT_COMPONENTS_CAMERA_H
|
||||
#define GAME_CLIENT_COMPONENTS_CAMERA_H
|
||||
#include <base/vmath.h>
|
||||
|
||||
#include <engine/client.h>
|
||||
#include <engine/console.h>
|
||||
|
||||
#include <game/bezier.h>
|
||||
#include <game/client/component.h>
|
||||
|
||||
|
|
|
@ -2,14 +2,12 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
|
||||
#include <engine/editor.h>
|
||||
#include <engine/engine.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/keys.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/shared/csv.h>
|
||||
#include <engine/textrender.h>
|
||||
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <game/client/animstate.h>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#define GAME_CLIENT_COMPONENTS_CHAT_H
|
||||
#include <vector>
|
||||
|
||||
#include <engine/console.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/shared/ringbuffer.h>
|
||||
|
||||
|
|
|
@ -14,21 +14,16 @@
|
|||
#include <engine/console.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/keys.h>
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/shared/ringbuffer.h>
|
||||
#include <engine/storage.h>
|
||||
#include <engine/textrender.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
|
||||
#include <game/client/ui.h>
|
||||
|
||||
#include <game/localization.h>
|
||||
#include <game/version.h>
|
||||
|
||||
#include <game/client/components/controls.h>
|
||||
#include <game/client/components/menus.h>
|
||||
#include <game/client/lineinput.h>
|
||||
#include <game/client/render.h>
|
||||
|
||||
|
|
|
@ -4,10 +4,8 @@
|
|||
|
||||
#include <SDL.h>
|
||||
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/shared/config.h>
|
||||
|
||||
#include <game/client/component.h>
|
||||
#include <game/client/components/camera.h>
|
||||
#include <game/client/components/chat.h>
|
||||
#include <game/client/components/menus.h>
|
||||
|
|
|
@ -2,11 +2,14 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#ifndef GAME_CLIENT_COMPONENTS_CONTROLS_H
|
||||
#define GAME_CLIENT_COMPONENTS_CONTROLS_H
|
||||
#include <SDL_joystick.h>
|
||||
#include <base/system.h>
|
||||
#include <base/vmath.h>
|
||||
#include <game/client/component.h>
|
||||
|
||||
#include <SDL_joystick.h>
|
||||
|
||||
#include <base/vmath.h>
|
||||
|
||||
#include <engine/client.h>
|
||||
|
||||
#include <game/client/component.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
class CControls : public CComponent
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
#include <engine/shared/config.h>
|
||||
#include <engine/shared/linereader.h>
|
||||
#include <engine/storage.h>
|
||||
#include <engine/textrender.h>
|
||||
|
||||
#include "countryflags.h"
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#ifndef GAME_CLIENT_COMPONENTS_COUNTRYFLAGS_H
|
||||
#define GAME_CLIENT_COMPONENTS_COUNTRYFLAGS_H
|
||||
#include <base/vmath.h>
|
||||
|
||||
#include <game/client/component.h>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
#include "damageind.h"
|
||||
#include <game/client/render.h>
|
||||
#include <game/client/ui.h>
|
||||
|
||||
#include <game/client/gameclient.h>
|
||||
|
||||
|
|
|
@ -4,17 +4,12 @@
|
|||
#include <engine/shared/config.h>
|
||||
#include <engine/textrender.h>
|
||||
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <game/layers.h>
|
||||
|
||||
#include <game/client/animstate.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/client/prediction/entities/character.h>
|
||||
#include <game/localization.h>
|
||||
|
||||
//#include "controls.h"
|
||||
//#include "camera.h"
|
||||
#include "debughud.h"
|
||||
|
||||
void CDebugHud::RenderNetCorrections()
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
|
||||
#include <engine/demo.h>
|
||||
#include <engine/engine.h>
|
||||
|
||||
#include <engine/shared/config.h>
|
||||
|
||||
|
@ -11,7 +10,6 @@
|
|||
#include <game/client/components/damageind.h>
|
||||
#include <game/client/components/flow.h>
|
||||
#include <game/client/components/particles.h>
|
||||
#include <game/client/components/skins.h>
|
||||
#include <game/client/components/sounds.h>
|
||||
#include <game/client/gameclient.h>
|
||||
|
||||
|
|
|
@ -1,9 +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 <engine/graphics.h>
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include "chat.h"
|
||||
|
@ -11,7 +9,6 @@
|
|||
#include <game/client/animstate.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/client/ui.h>
|
||||
#include <game/gamecore.h> // get_angle
|
||||
|
||||
#include <game/client/gameclient.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* (c) Rajh, Redix and Sushi. */
|
||||
|
||||
#include <engine/ghost.h>
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/storage.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
/* (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 <engine/graphics.h>
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/textrender.h>
|
||||
|
||||
|
@ -10,9 +9,10 @@
|
|||
#include <game/client/gameclient.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/client_data7.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <game/layers.h>
|
||||
#include <game/localization.h>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
|
|
@ -4,16 +4,17 @@
|
|||
#include <engine/graphics.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/client_data7.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/client/projectile_data.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/client/ui.h>
|
||||
|
||||
#include <game/client/prediction/entities/laser.h>
|
||||
#include <game/client/prediction/entities/pickup.h>
|
||||
#include <game/client/prediction/entities/projectile.h>
|
||||
|
||||
#include <game/client/components/effects.h>
|
||||
#include <game/client/components/flow.h>
|
||||
|
||||
#include "items.h"
|
||||
|
||||
|
|
|
@ -2,10 +2,9 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/map.h>
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/storage.h>
|
||||
#include <engine/textrender.h>
|
||||
#include <game/client/component.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/mapitems.h>
|
||||
|
||||
#include <game/layers.h>
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#ifndef GAME_CLIENT_COMPONENTS_MAPIMAGES_H
|
||||
#define GAME_CLIENT_COMPONENTS_MAPIMAGES_H
|
||||
|
||||
#include <engine/graphics.h>
|
||||
|
||||
#include <game/client/component.h>
|
||||
|
||||
enum EMapImageEntityLayerType
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
#include <engine/shared/config.h>
|
||||
#include <engine/storage.h>
|
||||
|
||||
#include <game/client/component.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/layers.h>
|
||||
|
@ -15,8 +14,6 @@
|
|||
#include <game/client/components/camera.h>
|
||||
#include <game/client/components/mapimages.h>
|
||||
|
||||
#include <game/generated/client_data.h>
|
||||
|
||||
#include "maplayers.h"
|
||||
|
||||
#include <chrono>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include <engine/demo.h>
|
||||
#include <engine/engine.h>
|
||||
#include <engine/sound.h>
|
||||
|
||||
#include <game/client/components/camera.h>
|
||||
|
|
|
@ -12,8 +12,6 @@
|
|||
|
||||
#include <game/layers.h>
|
||||
|
||||
#include <game/client/render.h>
|
||||
|
||||
#include "menu_background.h"
|
||||
|
||||
#include <chrono>
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
/* (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 <vector>
|
||||
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <vector>
|
||||
|
||||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
#include <base/vmath.h>
|
||||
|
||||
#include <engine/config.h>
|
||||
#include <engine/editor.h>
|
||||
#include <engine/engine.h>
|
||||
#include <engine/friends.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/keys.h>
|
||||
|
@ -21,7 +19,6 @@
|
|||
#include <engine/textrender.h>
|
||||
|
||||
#include <game/generated/protocol.h>
|
||||
#include <game/version.h>
|
||||
|
||||
#include <engine/client/updater.h>
|
||||
|
||||
|
@ -30,18 +27,11 @@
|
|||
#include <game/client/components/menu_background.h>
|
||||
#include <game/client/components/sounds.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/client/lineinput.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/localization.h>
|
||||
|
||||
#include "controls.h"
|
||||
#include "countryflags.h"
|
||||
#include "menus.h"
|
||||
#include "skins.h"
|
||||
|
||||
#include <limits>
|
||||
|
||||
#include <chrono>
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <chrono>
|
||||
#include <vector>
|
||||
|
||||
#include <engine/console.h>
|
||||
#include <engine/demo.h>
|
||||
#include <engine/friends.h>
|
||||
#include <engine/shared/config.h>
|
||||
|
|
|
@ -1,23 +1,16 @@
|
|||
/* (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 <engine/config.h>
|
||||
#include <engine/friends.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/keys.h>
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/textrender.h>
|
||||
#include <engine/updater.h>
|
||||
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <game/client/components/console.h>
|
||||
#include <game/client/components/countryflags.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/client/ui.h>
|
||||
#include <game/localization.h>
|
||||
#include <game/version.h>
|
||||
|
||||
#include <game/client/gameclient.h>
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
|
||||
#include <engine/config.h>
|
||||
#include <engine/demo.h>
|
||||
#include <engine/friends.h>
|
||||
#include <engine/ghost.h>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
|
||||
#include <engine/engine.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/shared/linereader.h>
|
||||
|
@ -11,7 +10,6 @@
|
|||
#include <engine/textrender.h>
|
||||
#include <engine/updater.h>
|
||||
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <game/client/animstate.h>
|
||||
|
@ -24,20 +22,16 @@
|
|||
#include <game/localization.h>
|
||||
|
||||
#include "binds.h"
|
||||
#include "camera.h"
|
||||
#include "countryflags.h"
|
||||
#include "menus.h"
|
||||
#include "skins.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include <array>
|
||||
#include <numeric>
|
||||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <numeric>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
#include "binds.h"
|
||||
|
||||
#include <base/system.h>
|
||||
|
||||
#include <engine/engine.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/storage.h>
|
||||
#include <engine/textrender.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/localization.h>
|
||||
|
||||
#include "menus.h"
|
||||
|
||||
|
|
|
@ -8,18 +8,18 @@
|
|||
#include <engine/client/updater.h>
|
||||
#include <engine/shared/config.h>
|
||||
|
||||
#include <game/client/components/console.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/client/ui.h>
|
||||
#include <game/editor/editor.h>
|
||||
#include <game/version.h>
|
||||
|
||||
#include <game/generated/client_data.h>
|
||||
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/localization.h>
|
||||
|
||||
#include "menus.h"
|
||||
|
||||
#include <chrono>
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
void CMenus::RenderStartMenu(CUIRect MainView)
|
||||
{
|
||||
// render logo
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
#include <engine/textrender.h>
|
||||
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include "motd.h"
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#include "camera.h"
|
||||
#include "controls.h"
|
||||
#include "nameplates.h"
|
||||
#include <game/client/animstate.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/client/prediction/entities/character.h>
|
||||
|
||||
#include "players.h"
|
||||
|
||||
|
|
|
@ -4,9 +4,7 @@
|
|||
#define GAME_CLIENT_COMPONENTS_NAMEPLATES_H
|
||||
#include <game/client/component.h>
|
||||
|
||||
struct CNetObj_Character;
|
||||
struct CNetObj_PlayerInfo;
|
||||
struct CMapItemGroup;
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
struct SPlayerNamePlate
|
||||
{
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include "particles.h"
|
||||
#include <game/client/render.h>
|
||||
#include <game/gamecore.h>
|
||||
#include <game/generated/client_data.h>
|
||||
|
||||
#include <game/client/gameclient.h>
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
|
||||
#include <engine/demo.h>
|
||||
#include <engine/engine.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
@ -12,7 +10,6 @@
|
|||
#include <game/client/animstate.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/client/ui.h>
|
||||
|
||||
#include <game/client/components/controls.h>
|
||||
#include <game/client/components/effects.h>
|
||||
|
@ -20,8 +17,6 @@
|
|||
#include <game/client/components/skins.h>
|
||||
#include <game/client/components/sounds.h>
|
||||
|
||||
#include <engine/textrender.h>
|
||||
|
||||
#include "players.h"
|
||||
|
||||
#include <base/color.h>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <cctype>
|
||||
|
||||
#include <base/system.h>
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/storage.h>
|
||||
|
||||
|
|
|
@ -5,13 +5,11 @@
|
|||
#include <engine/shared/config.h>
|
||||
#include <engine/textrender.h>
|
||||
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <game/client/animstate.h>
|
||||
#include <game/client/components/countryflags.h>
|
||||
#include <game/client/components/motd.h>
|
||||
#include <game/client/components/skins.h>
|
||||
#include <game/client/components/statboard.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/client/render.h>
|
||||
|
@ -19,8 +17,6 @@
|
|||
|
||||
#include "scoreboard.h"
|
||||
|
||||
#include <engine/serverbrowser.h>
|
||||
|
||||
CScoreboard::CScoreboard()
|
||||
{
|
||||
OnReset();
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#ifndef GAME_CLIENT_COMPONENTS_SCOREBOARD_H
|
||||
#define GAME_CLIENT_COMPONENTS_SCOREBOARD_H
|
||||
|
||||
#include <engine/console.h>
|
||||
|
||||
#include <game/client/component.h>
|
||||
|
||||
class CScoreboard : public CComponent
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* (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 <cmath>
|
||||
|
||||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#ifndef GAME_CLIENT_COMPONENTS_SKINS_H
|
||||
#define GAME_CLIENT_COMPONENTS_SKINS_H
|
||||
#include <base/color.h>
|
||||
#include <base/vmath.h>
|
||||
|
||||
#include <engine/shared/http.h>
|
||||
#include <game/client/component.h>
|
||||
#include <game/client/skin.h>
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
||||
#ifndef GAME_CLIENT_COMPONENTS_SOUNDS_H
|
||||
#define GAME_CLIENT_COMPONENTS_SOUNDS_H
|
||||
#include <engine/engine.h>
|
||||
|
||||
#include <base/vmath.h>
|
||||
#include <engine/shared/jobs.h>
|
||||
#include <engine/sound.h>
|
||||
#include <game/client/component.h>
|
||||
|
||||
|
|
|
@ -3,16 +3,15 @@
|
|||
|
||||
#include <climits>
|
||||
|
||||
#include <engine/demo.h>
|
||||
#include <engine/graphics.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/textrender.h>
|
||||
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <game/client/animstate.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/localization.h>
|
||||
|
||||
#include "camera.h"
|
||||
#include "spectator.h"
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <game/client/components/statboard.h>
|
||||
#include <game/client/gameclient.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/localization.h>
|
||||
|
||||
CStatboard::CStatboard()
|
||||
{
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef GAME_CLIENT_COMPONENTS_STATBOARD_H
|
||||
#define GAME_CLIENT_COMPONENTS_STATBOARD_H
|
||||
|
||||
#include <engine/console.h>
|
||||
|
||||
#include <game/client/component.h>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#include <engine/shared/config.h>
|
||||
|
||||
#include "voting.h"
|
||||
#include <base/vmath.h>
|
||||
#include <game/client/components/sounds.h>
|
||||
#include <game/client/render.h>
|
||||
#include <game/generated/protocol.h>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#ifndef GAME_CLIENT_COMPONENTS_VOTING_H
|
||||
#define GAME_CLIENT_COMPONENTS_VOTING_H
|
||||
|
||||
#include <engine/console.h>
|
||||
#include <engine/shared/memheap.h>
|
||||
|
||||
#include <game/client/component.h>
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
#include <engine/map.h>
|
||||
#include <engine/serverbrowser.h>
|
||||
#include <engine/shared/config.h>
|
||||
#include <engine/shared/demo.h>
|
||||
#include <engine/sound.h>
|
||||
#include <engine/storage.h>
|
||||
#include <engine/textrender.h>
|
||||
|
@ -24,6 +23,7 @@
|
|||
#include <game/generated/protocol.h>
|
||||
|
||||
#include <base/math.h>
|
||||
#include <base/system.h>
|
||||
#include <base/vmath.h>
|
||||
|
||||
#include "race.h"
|
||||
|
@ -45,8 +45,8 @@
|
|||
#include "components/debughud.h"
|
||||
#include "components/effects.h"
|
||||
#include "components/emoticon.h"
|
||||
#include "components/flow.h"
|
||||
#include "components/freezebars.h"
|
||||
#include "components/ghost.h"
|
||||
#include "components/hud.h"
|
||||
#include "components/items.h"
|
||||
#include "components/killmessages.h"
|
||||
|
@ -59,16 +59,15 @@
|
|||
#include "components/nameplates.h"
|
||||
#include "components/particles.h"
|
||||
#include "components/players.h"
|
||||
#include "components/race_demo.h"
|
||||
#include "components/scoreboard.h"
|
||||
#include "components/skins.h"
|
||||
#include "components/sounds.h"
|
||||
#include "components/spectator.h"
|
||||
#include "components/statboard.h"
|
||||
#include "components/voting.h"
|
||||
|
||||
#include "components/ghost.h"
|
||||
#include "components/race_demo.h"
|
||||
#include <base/system.h>
|
||||
#include "prediction/entities/character.h"
|
||||
#include "prediction/entities/projectile.h"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
|
|
|
@ -11,13 +11,9 @@
|
|||
#include <engine/shared/config.h>
|
||||
#include <game/gamecore.h>
|
||||
#include <game/layers.h>
|
||||
#include <game/localization.h>
|
||||
|
||||
#include <game/teamscore.h>
|
||||
|
||||
#include <game/client/prediction/entities/character.h>
|
||||
#include <game/client/prediction/entities/laser.h>
|
||||
#include <game/client/prediction/entities/pickup.h>
|
||||
#include <game/client/prediction/gameworld.h>
|
||||
|
||||
// components
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* (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 <engine/shared/config.h>
|
||||
#include <game/generated/client_data.h>
|
||||
#include <game/mapitems.h>
|
||||
#include <new>
|
||||
|
||||
#include "character.h"
|
||||
#include "laser.h"
|
||||
|
|
|
@ -3,11 +3,9 @@
|
|||
#ifndef GAME_CLIENT_PREDICTION_ENTITIES_CHARACTER_H
|
||||
#define GAME_CLIENT_PREDICTION_ENTITIES_CHARACTER_H
|
||||
|
||||
#include "projectile.h"
|
||||
#include <game/client/prediction/entity.h>
|
||||
|
||||
#include <game/gamecore.h>
|
||||
#include <game/generated/client_data.h>
|
||||
|
||||
enum
|
||||
{
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue