Merge pull request #6754 from Gymnasiast/game-as-cpp

Compile game.c and game.h as C++
This commit is contained in:
Michael Steenbeek 2017-12-05 09:23:01 +01:00 committed by GitHub
commit 10a4dd06b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
107 changed files with 571 additions and 441 deletions

View File

@ -123,6 +123,7 @@
4CE4624B1FD1613D0001CD98 /* Platform.macOS.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CE462471FD1613D0001CD98 /* Platform.macOS.cpp */; };
4CE4624C1FD1613D0001CD98 /* Platform.Posix.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CE462481FD1613D0001CD98 /* Platform.Posix.cpp */; };
4CE4624D1FD1613D0001CD98 /* Platform.Win32.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CE462491FD1613D0001CD98 /* Platform.Win32.cpp */; };
4CE462411FD0710E0001CD98 /* Game.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CE4623F1FD0710E0001CD98 /* Game.cpp */; };
4CF788C01F1B787700C611BF /* Painter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CF788BE1F1B787700C611BF /* Painter.cpp */; };
4CFBCD5E1F27CD8000D74FB6 /* SmallScenery.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CFBCD5D1F27CD8000D74FB6 /* SmallScenery.cpp */; };
4CFE4E801F90A3F1005243C2 /* Peep.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 4CFE4E7B1F90A3F1005243C2 /* Peep.cpp */; };
@ -303,7 +304,6 @@
F76C86041EC4E88300FA49E2 /* string.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B01EC4E7CC00FA49E2 /* string.c */; };
F76C86051EC4E88300FA49E2 /* Editor.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B11EC4E7CC00FA49E2 /* Editor.cpp */; };
F76C86071EC4E88300FA49E2 /* FileClassifier.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B31EC4E7CC00FA49E2 /* FileClassifier.cpp */; };
F76C86091EC4E88300FA49E2 /* game.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B51EC4E7CC00FA49E2 /* game.c */; };
F76C860B1EC4E88300FA49E2 /* Imaging.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B71EC4E7CC00FA49E2 /* Imaging.cpp */; };
F76C860D1EC4E88300FA49E2 /* input.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83B91EC4E7CC00FA49E2 /* input.c */; };
F76C860F1EC4E88300FA49E2 /* chat.c in Sources */ = {isa = PBXBuildFile; fileRef = F76C83BC1EC4E7CC00FA49E2 /* chat.c */; };
@ -716,6 +716,8 @@
4CE462471FD1613D0001CD98 /* Platform.macOS.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Platform.macOS.cpp; sourceTree = "<group>"; };
4CE462481FD1613D0001CD98 /* Platform.Posix.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Platform.Posix.cpp; sourceTree = "<group>"; };
4CE462491FD1613D0001CD98 /* Platform.Win32.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Platform.Win32.cpp; sourceTree = "<group>"; };
4CE4623F1FD0710E0001CD98 /* Game.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Game.cpp; sourceTree = "<group>"; };
4CE462401FD0710E0001CD98 /* Game.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Game.h; sourceTree = "<group>"; };
4CF788BE1F1B787700C611BF /* Painter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Painter.cpp; sourceTree = "<group>"; };
4CF788BF1F1B787700C611BF /* Painter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Painter.h; sourceTree = "<group>"; };
4CFBCD5D1F27CD8000D74FB6 /* SmallScenery.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SmallScenery.cpp; sourceTree = "<group>"; };
@ -1113,8 +1115,6 @@
F76C83B21EC4E7CC00FA49E2 /* Editor.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Editor.h; sourceTree = "<group>"; };
F76C83B31EC4E7CC00FA49E2 /* FileClassifier.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = FileClassifier.cpp; sourceTree = "<group>"; };
F76C83B41EC4E7CC00FA49E2 /* FileClassifier.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FileClassifier.h; sourceTree = "<group>"; };
F76C83B51EC4E7CC00FA49E2 /* game.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = game.c; sourceTree = "<group>"; };
F76C83B61EC4E7CC00FA49E2 /* game.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = game.h; sourceTree = "<group>"; };
F76C83B71EC4E7CC00FA49E2 /* Imaging.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = Imaging.cpp; sourceTree = "<group>"; };
F76C83B81EC4E7CC00FA49E2 /* Imaging.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Imaging.h; sourceTree = "<group>"; };
F76C83B91EC4E7CC00FA49E2 /* input.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = input.c; sourceTree = "<group>"; };
@ -1831,8 +1831,8 @@
F76C83B21EC4E7CC00FA49E2 /* Editor.h */,
F76C83B31EC4E7CC00FA49E2 /* FileClassifier.cpp */,
F76C83B41EC4E7CC00FA49E2 /* FileClassifier.h */,
F76C83B51EC4E7CC00FA49E2 /* game.c */,
F76C83B61EC4E7CC00FA49E2 /* game.h */,
4CE4623F1FD0710E0001CD98 /* Game.cpp */,
4CE462401FD0710E0001CD98 /* Game.h */,
F76C83B71EC4E7CC00FA49E2 /* Imaging.cpp */,
F76C83B81EC4E7CC00FA49E2 /* Imaging.h */,
F76C83B91EC4E7CC00FA49E2 /* input.c */,
@ -3163,6 +3163,7 @@
C654DF401F69C18C0040F43D /* Intent.cpp in Sources */,
C666ED761F33DBB20061AA04 /* ShortcutKeyChange.cpp in Sources */,
F76C887F1EC5324E00FA49E2 /* ApplyPaletteShader.cpp in Sources */,
4CE462411FD0710E0001CD98 /* Game.cpp in Sources */,
C685E51C1F8907850090598F /* Map.cpp in Sources */,
F7CB864A1EEDA1330030C877 /* KeyboardShortcuts.cpp in Sources */,
4C8667821EEFDCDF0024AAB8 /* RideGroupManager.cpp in Sources */,
@ -3323,7 +3324,6 @@
F76C86041EC4E88300FA49E2 /* string.c in Sources */,
F76C86051EC4E88300FA49E2 /* Editor.cpp in Sources */,
F76C86071EC4E88300FA49E2 /* FileClassifier.cpp in Sources */,
F76C86091EC4E88300FA49E2 /* game.c in Sources */,
F76C860B1EC4E88300FA49E2 /* Imaging.cpp in Sources */,
F76C860D1EC4E88300FA49E2 /* input.c in Sources */,
F76C860F1EC4E88300FA49E2 /* chat.c in Sources */,

View File

@ -25,7 +25,7 @@
#include "DrawingEngines.h"
#include <openrct2/drawing/lightfx.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/paint/paint.h>
using namespace OpenRCT2;

View File

@ -24,7 +24,7 @@
#include <openrct2/ui/UiContext.h>
#include "DrawingEngines.h"
#include <openrct2/game.h>
#include <openrct2/Game.h>
using namespace OpenRCT2;
using namespace OpenRCT2::Drawing;

View File

@ -20,7 +20,7 @@
#include <openrct2/audio/audio.h>
#include <openrct2/config/Config.h>
#include <openrct2/core/Util.hpp>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/Screenshot.h>
#include <openrct2/interface/chat.h>

View File

@ -17,7 +17,7 @@
#include <openrct2/config/Config.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/interface/viewport.h>
#include <openrct2/interface/widget.h>

View File

@ -14,7 +14,7 @@
*****************************************************************************/
#pragma endregion
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2-ui/windows/Window.h>

View File

@ -21,7 +21,7 @@
#include <openrct2/Context.h>
#include <openrct2/OpenRCT2.h>
#include <openrct2/audio/audio.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/Editor.h>
#include <openrct2/input.h>
#include <openrct2/sprites.h>

View File

@ -19,7 +19,7 @@
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/date.h>
#include <openrct2/localisation/localisation.h>

View File

@ -20,7 +20,7 @@
#include <openrct2/Context.h>
#include <openrct2/Editor.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/localisation/string_ids.h>

View File

@ -18,7 +18,7 @@
#include <openrct2/core/Math.hpp>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/graph.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/date.h>

View File

@ -19,7 +19,7 @@
#include <openrct2/audio/audio.h>
#include <openrct2/cheats.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/viewport.h>
#include <openrct2/interface/widget.h>

View File

@ -19,7 +19,7 @@
#include <openrct2/config/Config.h>
#include <openrct2/Context.h>
#include <openrct2/core/Math.hpp>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/themes.h>
#include <openrct2/interface/widget.h>

View File

@ -18,7 +18,7 @@
#include <openrct2/config/Config.h>
#include <openrct2/Context.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/viewport.h>
#include <openrct2/interface/widget.h>

View File

@ -17,7 +17,7 @@
#include <openrct2/config/Config.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/sprites.h>

View File

@ -18,7 +18,7 @@
#include <openrct2/core/Math.hpp>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/land_tool.h>
#include <openrct2/interface/viewport.h>

View File

@ -26,7 +26,7 @@
#include <time.h>
#include <openrct2/core/Guard.hpp>
#include <openrct2/Editor.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/platform/platform.h>

View File

@ -21,7 +21,7 @@
#include <openrct2/Context.h>
#include <openrct2/audio/audio.h>
#include <openrct2/cheats.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/land_tool.h>
#include <openrct2/interface/viewport.h>

View File

@ -19,7 +19,7 @@
#include <openrct2/audio/audio.h>
#include <openrct2/Context.h>
#include <openrct2/drawing/drawing.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/viewport.h>
#include <openrct2/interface/widget.h>

View File

@ -18,7 +18,7 @@
#include <openrct2/core/Math.hpp>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/interface/widget.h>
#include <openrct2/ride/ride.h>

View File

@ -25,7 +25,7 @@
#include <openrct2/core/Math.hpp>
#include <openrct2/Context.h>
#include <openrct2/audio/audio.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/management/NewsItem.h>

View File

@ -19,7 +19,7 @@
#include <openrct2/core/Math.hpp>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/localisation/date.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/input.h>

View File

@ -18,7 +18,7 @@
#include <openrct2/network/network.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/sprites.h>

View File

@ -16,7 +16,7 @@
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/interface/widget.h>
#include <openrct2/management/NewsItem.h>

View File

@ -24,7 +24,7 @@
#include <openrct2/Context.h>
#include <openrct2/core/Math.hpp>
#include <openrct2/core/Util.hpp>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/themes.h>
#include <openrct2/interface/viewport.h>

View File

@ -22,7 +22,7 @@
#include <openrct2/Context.h>
#include <openrct2/core/Math.hpp>
#include <openrct2/core/Util.hpp>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/viewport.h>
#include <openrct2/interface/widget.h>

View File

@ -19,7 +19,7 @@
#include <openrct2/config/Config.h>
#include <openrct2/Context.h>
#include <openrct2/core/Util.hpp>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/themes.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>

View File

@ -22,7 +22,7 @@
#include <openrct2/Context.h>
#include <openrct2/audio/audio.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/interface/widget.h>

View File

@ -17,7 +17,7 @@
#include <openrct2/config/Config.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/localisation/string_ids.h>
#include <openrct2/interface/viewport.h>

View File

@ -20,7 +20,7 @@
#include <openrct2/windows/Intent.h>
#include <openrct2/Context.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/viewport.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>

View File

@ -15,7 +15,7 @@
#pragma endregion
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>

View File

@ -21,7 +21,7 @@
#include <openrct2/Context.h>
#include <openrct2/drawing/drawing.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/viewport.h>
#include <openrct2/interface/widget.h>

View File

@ -18,7 +18,7 @@
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Context.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>

View File

@ -20,7 +20,7 @@
#include <openrct2/core/Guard.hpp>
#include <openrct2/core/Math.hpp>
#include <openrct2/core/Util.hpp>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>

View File

@ -19,7 +19,7 @@
#include <openrct2/core/Memory.hpp>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/themes.h>
#include <openrct2/interface/viewport.h>

View File

@ -27,7 +27,7 @@
#include <openrct2/windows/Intent.h>
#include <openrct2-ui/windows/Window.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>

View File

@ -20,7 +20,7 @@
#include <openrct2-ui/windows/Window.h>
#include <openrct2/Editor.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/widget.h>
#include <openrct2/localisation/localisation.h>

View File

@ -21,7 +21,7 @@
#include <openrct2/Context.h>
#include <openrct2/core/Math.hpp>
#include <openrct2/core/Memory.hpp>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/input.h>
#include <openrct2/interface/viewport.h>
#include <openrct2/interface/widget.h>

View File

@ -17,7 +17,7 @@
#include <openrct2-ui/windows/Window.h>
#include <openrct2/audio/audio.h>
#include <openrct2/game.h>
#include <openrct2/Game.h>
#include <openrct2/localisation/localisation.h>
#include <openrct2/sprites.h>
#include <openrct2/interface/viewport.h>

View File

@ -51,7 +51,7 @@
#include "config/Config.h"
#include "drawing/lightfx.h"
#include "Editor.h"
#include "game.h"
#include "Game.h"
#include "input.h"
#include "interface/chat.h"
#include "interface/console.h"

View File

@ -19,7 +19,7 @@
#include "core/Math.hpp"
#include "Editor.h"
#include "FileClassifier.h"
#include "game.h"
#include "Game.h"
#include "interface/viewport.h"
#include "localisation/localisation.h"
#include "management/NewsItem.h"

File diff suppressed because it is too large Load Diff

View File

@ -14,13 +14,13 @@
*****************************************************************************/
#pragma endregion
#ifndef _GAME_H_
#define _GAME_H_
#pragma once
#include "common.h"
#include "scenario/scenario.h"
enum GAME_COMMAND {
enum GAME_COMMAND
{
GAME_COMMAND_SET_RIDE_APPEARANCE,
GAME_COMMAND_SET_LAND_HEIGHT,
GAME_COMMAND_TOGGLE_PAUSE,
@ -96,30 +96,33 @@ enum GAME_COMMAND {
GAME_COMMAND_COUNT
};
enum {
GAME_COMMAND_FLAG_APPLY = (1 << 0), // If this flag is set, the command is applied, otherwise only the cost is retrieved
GAME_COMMAND_FLAG_2 = (1 << 2),
enum
{
GAME_COMMAND_FLAG_APPLY = (1 << 0), // If this flag is set, the command is applied, otherwise only the cost is retrieved
GAME_COMMAND_FLAG_2 = (1 << 2),
GAME_COMMAND_FLAG_ALLOW_DURING_PAUSED = (1 << 3), // Allow while paused
GAME_COMMAND_FLAG_4 = (1 << 4),
GAME_COMMAND_FLAG_5 = (1 << 5),
GAME_COMMAND_FLAG_GHOST = (1 << 6),
GAME_COMMAND_FLAG_PATH_SCENERY = (1 << 7),
GAME_COMMAND_FLAG_NETWORKED = (1u << 31) // Game command is coming from network
GAME_COMMAND_FLAG_4 = (1 << 4),
GAME_COMMAND_FLAG_5 = (1 << 5),
GAME_COMMAND_FLAG_GHOST = (1 << 6),
GAME_COMMAND_FLAG_PATH_SCENERY = (1 << 7),
GAME_COMMAND_FLAG_NETWORKED = (1u << 31) // Game command is coming from network
};
enum {
GAME_PAUSED_NORMAL = 1 << 0,
GAME_PAUSED_MODAL = 1 << 1,
GAME_PAUSED_SAVING_TRACK = 1 << 2,
enum
{
GAME_PAUSED_NORMAL = 1 << 0,
GAME_PAUSED_MODAL = 1 << 1,
GAME_PAUSED_SAVING_TRACK = 1 << 2,
};
enum {
ERROR_TYPE_NONE = 0,
ERROR_TYPE_GENERIC = 254,
enum
{
ERROR_TYPE_NONE = 0,
ERROR_TYPE_GENERIC = 254,
ERROR_TYPE_FILE_LOAD = 255
};
typedef void (GAME_COMMAND_POINTER)(sint32* eax, sint32* ebx, sint32* ecx, sint32* edx, sint32* esi, sint32* edi, sint32* ebp);
typedef void (GAME_COMMAND_POINTER)(sint32 * eax, sint32 * ebx, sint32 * ecx, sint32 * edx, sint32 * esi, sint32 * edi, sint32 * ebp);
typedef void (GAME_COMMAND_CALLBACK_POINTER)(sint32 eax, sint32 ebx, sint32 ecx, sint32 edx, sint32 esi, sint32 edi, sint32 ebp);
@ -127,29 +130,29 @@ typedef void (GAME_COMMAND_CALLBACK_POINTER)(sint32 eax, sint32 ebx, sint32 ecx,
extern "C" {
#endif
extern GAME_COMMAND_CALLBACK_POINTER* game_command_callback;
sint32 game_command_callback_get_index(GAME_COMMAND_CALLBACK_POINTER* callback);
GAME_COMMAND_CALLBACK_POINTER* game_command_callback_get_callback(sint32 index);
extern GAME_COMMAND_CALLBACK_POINTER * game_command_callback;
sint32 game_command_callback_get_index(GAME_COMMAND_CALLBACK_POINTER * callback);
GAME_COMMAND_CALLBACK_POINTER * game_command_callback_get_callback(uint32 index);
extern sint32 game_command_playerid;
extern rct_string_id gGameCommandErrorTitle;
extern rct_string_id gGameCommandErrorText;
extern uint8 gErrorType;
extern uint8 gErrorType;
extern rct_string_id gErrorStringId;
extern GAME_COMMAND_POINTER* new_game_command_table[GAME_COMMAND_COUNT];
extern GAME_COMMAND_POINTER * new_game_command_table[GAME_COMMAND_COUNT];
extern uint32 gCurrentTicks;
extern uint16 gTicksSinceLastUpdate;
extern uint8 gGamePaused;
extern uint8 gGamePaused;
extern sint32 gGameSpeed;
extern float gDayNightCycle;
extern bool gInUpdateCode;
extern bool gInMapInitCode;
extern float gDayNightCycle;
extern bool gInUpdateCode;
extern bool gInMapInitCode;
extern sint32 gGameCommandNestLevel;
extern bool gGameCommandIsNetworked;
extern char gCurrentLoadedPath[260];
extern bool gGameCommandIsNetworked;
extern char gCurrentLoadedPath[260];
extern bool gLoadKeepWindowsOpen;
@ -161,21 +164,19 @@ void game_reduce_game_speed();
void game_create_windows();
void game_update();
bool game_logic_begin();
void game_logic_update();
void game_logic_finish();
void reset_all_sprite_quadrant_placements();
void update_palette_effects();
sint32 game_do_command(sint32 eax, sint32 ebx, sint32 ecx, sint32 edx, sint32 esi, sint32 edi, sint32 ebp);
sint32 game_do_command_p(sint32 command, sint32 *eax, sint32 *ebx, sint32 *ecx, sint32 *edx, sint32 *esi, sint32 *edi, sint32 *ebp);
sint32 game_do_command_p(uint32 command, sint32 * eax, sint32 * ebx, sint32 * ecx, sint32 * edx, sint32 * esi, sint32 * edi, sint32 * ebp);
void game_log_multiplayer_command(int command, int *eax, int* ebx, int* ecx, int* edx, int* edi, int* ebp);
void game_log_multiplayer_command(int command, int * eax, int * ebx, int * ecx, int * edx, int * edi, int * ebp);
void game_load_or_quit_no_save_prompt();
ParkLoadResult * load_from_sv6(const char * path);
void game_load_init();
void game_pause_toggle(sint32 *eax, sint32 *ebx, sint32 *ecx, sint32 *edx, sint32 *esi, sint32 *edi, sint32 *ebp);
void game_pause_toggle(sint32 * eax, sint32 * ebx, sint32 * ecx, sint32 * edx, sint32 * esi, sint32 * edi, sint32 * ebp);
void pause_toggle();
bool game_is_paused();
bool game_is_not_paused();
@ -184,17 +185,13 @@ void * create_save_game_as_intent();
void save_game_as();
void handle_park_load_failure_with_title_opt(const ParkLoadResult * result, const utf8 * path, bool loadTitleFirst);
void handle_park_load_failure(const ParkLoadResult * result, const utf8 * path);
void rct2_exit();
void rct2_exit_reason(rct_string_id title, rct_string_id body);
void game_autosave();
void game_convert_strings_to_utf8();
void game_convert_news_items_to_utf8();
void game_convert_strings_to_rct2(rct_s6_data *s6);
void game_convert_strings_to_rct2(rct_s6_data * s6);
void game_fix_save_vars();
void game_init_all(sint32 mapSize);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -23,7 +23,7 @@
#include "../core/DataSerialiser.h"
#include "../core/IStream.hpp"
#include "../game.h"
#include "../Game.h"
#include "../localisation/string_ids.h"
#include "../world/map.h"

View File

@ -17,7 +17,7 @@
#include "cheats.h"
#include "config/Config.h"
#include "Editor.h"
#include "game.h"
#include "Game.h"
#include "interface/window.h"
#include "localisation/localisation.h"
#include "management/Finance.h"

View File

@ -25,7 +25,7 @@
#include "../rct2/S6Exporter.h"
#include "CommandLine.hpp"
#include "../game.h"
#include "../Game.h"
#include "../interface/window.h"
#include "../OpenRCT2.h"

View File

@ -26,7 +26,7 @@
#include "Rain.h"
#include "X8DrawingEngine.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/viewport.h"
#include "../interface/window.h"
#include "../intro.h"

View File

@ -17,7 +17,7 @@
#ifdef __ENABLE_LIGHTFX__
#include "../common.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/viewport.h"
#include "../interface/window.h"
#include "../paint/tile_element/tile_element.h"

View File

@ -17,7 +17,7 @@
#include "audio/audio.h"
#include "config/Config.h"
#include "Context.h"
#include "game.h"
#include "Game.h"
#include "input.h"
#include "interface/chat.h"
#include "interface/console.h"

View File

@ -24,7 +24,7 @@
#include "Screenshot.h"
#include "../drawing/drawing.h"
#include "../game.h"
#include "../Game.h"
#include "../intro.h"
#include "../localisation/localisation.h"
#include "../platform/platform.h"

View File

@ -20,7 +20,7 @@
#include "../Context.h"
#include "../drawing/drawing.h"
#include "../Editor.h"
#include "../game.h"
#include "../Game.h"
#include "../input.h"
#include "../interface/themes.h"
#include "../localisation/localisation.h"

View File

@ -17,7 +17,7 @@
#include "../config/Config.h"
#include "../Context.h"
#include "../drawing/drawing.h"
#include "../game.h"
#include "../Game.h"
#include "../input.h"
#include "../localisation/localisation.h"
#include "../OpenRCT2.h"

View File

@ -16,7 +16,7 @@
#include "../cheats.h"
#include "../Editor.h"
#include "../game.h"
#include "../Game.h"
#include "../input.h"
#include "../localisation/localisation.h"
#include "../OpenRCT2.h"

View File

@ -20,7 +20,7 @@
#include "../core/Guard.hpp"
#include "../drawing/drawing.h"
#include "../Editor.h"
#include "../game.h"
#include "../Game.h"
#include "../input.h"
#include "../interface/Cursors.h"
#include "../interface/themes.h"

View File

@ -15,7 +15,7 @@
#pragma endregion
#include <time.h>
#include "../game.h"
#include "../Game.h"
#include "date.h"
#include "string_ids.h"

View File

@ -31,7 +31,7 @@
#endif // _WIN32
#include "../config/Config.h"
#include "../game.h"
#include "../Game.h"
#include "../util/util.h"
#include "date.h"
#include "localisation.h"

View File

@ -14,7 +14,7 @@
*****************************************************************************/
#pragma endregion
#include "../game.h"
#include "../Game.h"
#include "../ride/ride.h"
#include "../util/util.h"
#include "localisation.h"

View File

@ -14,7 +14,7 @@
*****************************************************************************/
#pragma endregion
#include "../game.h"
#include "../Game.h"
#include "../interface/window.h"
#include "../localisation/date.h"
#include "../localisation/localisation.h"

View File

@ -16,7 +16,7 @@
#include "../config/Config.h"
#include "../core/Util.hpp"
#include "../game.h"
#include "../Game.h"
#include "../interface/window.h"
#include "../localisation/localisation.h"
#include "../ride/ride.h"

View File

@ -17,7 +17,7 @@
#include "../config/Config.h"
#include "../core/Guard.hpp"
#include "../core/Util.hpp"
#include "../game.h"
#include "../Game.h"
#include "../interface/window.h"
#include "../localisation/date.h"
#include "../localisation/localisation.h"

View File

@ -55,7 +55,7 @@ static sint32 _pickup_peep_old_x = LOCATION_NULL;
#include "../rct2/S6Exporter.h"
#include "../config/Config.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/chat.h"
#include "../interface/window.h"
#include "../localisation/date.h"

View File

@ -19,7 +19,7 @@
#include <algorithm>
#include "NetworkAction.h"
#include "../game.h"
#include "../Game.h"
#include "../localisation/string_ids.h"
sint32 NetworkActions::FindCommand(sint32 command)

View File

@ -33,7 +33,7 @@
#include "../config/Config.h"
#include "../drawing/drawing.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/console.h"
#include "../localisation/localisation.h"
#include "../management/NewsItem.h"

View File

@ -38,7 +38,7 @@ enum {
#define MAX_SERVER_DESCRIPTION_LENGTH 256
#include "../common.h"
#include "../game.h"
#include "../Game.h"
#include "../localisation/string_ids.h"
#include "../Version.h"

View File

@ -14,7 +14,7 @@
*****************************************************************************/
#pragma endregion
#include "game.h"
#include "Game.h"
#include "object.h"
#include "object_list.h"
#include "object/ObjectRepository.h"

View File

@ -22,7 +22,7 @@
#include "Painter.h"
#include "../drawing/drawing.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/chat.h"
#include "../interface/console.h"
#include "../intro.h"

View File

@ -16,7 +16,7 @@
#include "../paint.h"
#include "../../config/Config.h"
#include "../../game.h"
#include "../../Game.h"
#include "../../interface/viewport.h"
#include "../../localisation/localisation.h"
#include "../../paint/tile_element/tile_element.h"

View File

@ -15,7 +15,7 @@
#pragma endregion
#include "../../config/Config.h"
#include "../../game.h"
#include "../../Game.h"
#include "../../interface/viewport.h"
#include "../../localisation/localisation.h"
#include "../../ride/ride_data.h"

View File

@ -17,7 +17,7 @@
#include "../../common.h"
#include "../../config/Config.h"
#include "../../drawing/drawing.h"
#include "../../game.h"
#include "../../Game.h"
#include "../../localisation/localisation.h"
#include "../../interface/colour.h"
#include "../../interface/viewport.h"

View File

@ -18,7 +18,7 @@
#include "../paint.h"
#include "../supports.h"
#include "../../config/Config.h"
#include "../../game.h"
#include "../../Game.h"
#include "../../interface/viewport.h"
#include "../../localisation/localisation.h"
#include "../../util/util.h"

View File

@ -15,7 +15,7 @@
#pragma endregion
#include "../../config/Config.h"
#include "../../game.h"
#include "../../Game.h"
#include "../../interface/viewport.h"
#include "../../localisation/localisation.h"
#include "../../object_list.h"

View File

@ -16,7 +16,7 @@
#include "tile_element.h"
#include "../../config/Config.h"
#include "../../game.h"
#include "../../Game.h"
#include "../../interface/viewport.h"
#include "../../localisation/date.h"
#include "../../paint/paint.h"

View File

@ -29,7 +29,7 @@
#include "../../world/scenery.h"
#include "../../sprites.h"
#include "../../localisation/localisation.h"
#include "../../game.h"
#include "../../Game.h"
#include "../supports.h"
#ifdef __TESTPAINT__

View File

@ -24,7 +24,7 @@
#include "../config/Config.h"
#include "../core/Math.hpp"
#include "../core/Util.hpp"
#include "../game.h"
#include "../Game.h"
#include "../input.h"
#include "../interface/window.h"
#include "../localisation/localisation.h"

View File

@ -18,7 +18,7 @@
#include "../core/Util.hpp"
#include "../Context.h"
#include "../config/Config.h"
#include "../game.h"
#include "../Game.h"
#include "../input.h"
#include "../interface/viewport.h"
#include "../localisation/date.h"

View File

@ -30,7 +30,7 @@
#include "../config/Config.h"
#include "../drawing/drawing.h"
#include "../drawing/lightfx.h"
#include "../game.h"
#include "../Game.h"
#include "../localisation/currency.h"
#include "../localisation/localisation.h"
#include "../util/util.h"

View File

@ -38,7 +38,7 @@
#include "../audio/audio.h"
#include "../cheats.h"
#include "../Editor.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/window.h"
#include "../localisation/date.h"
#include "../localisation/localisation.h"

View File

@ -28,7 +28,7 @@
#include <functional>
#include "../config/Config.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/viewport.h"
#include "../interface/window.h"
#include "../localisation/date.h"

View File

@ -31,7 +31,7 @@
#include "../ride/Station.h"
#include "../config/Config.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/viewport.h"
#include "../localisation/date.h"
#include "../localisation/localisation.h"

View File

@ -14,7 +14,7 @@
*****************************************************************************/
#pragma endregion
#include "../game.h"
#include "../Game.h"
#include "Station.h"
#include "Track.h"

View File

@ -17,7 +17,7 @@
#include "../audio/audio.h"
#include "../cheats.h"
#include "../config/Config.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/viewport.h"
#include "../localisation/localisation.h"
#include "../management/Finance.h"

View File

@ -25,7 +25,7 @@
#include "../audio/audio.h"
#include "../cheats.h"
#include "../game.h"
#include "../Game.h"
#include "../localisation/localisation.h"
#include "../localisation/string_ids.h"
#include "../management/Finance.h"

View File

@ -22,7 +22,7 @@
#include "../config/Config.h"
#include "../core/Math.hpp"
#include "../core/Util.hpp"
#include "../game.h"
#include "../Game.h"
#include "../interface/viewport.h"
#include "../localisation/localisation.h"
#include "../management/NewsItem.h"

View File

@ -23,7 +23,7 @@
#include "../config/Config.h"
#include "../Context.h"
#include "../Editor.h"
#include "../game.h"
#include "../Game.h"
#include "../input.h"
#include "../interface/window.h"
#include "../localisation/date.h"

View File

@ -17,7 +17,7 @@
#include "../audio/audio.h"
#include "../config/Config.h"
#include "../Context.h"
#include "../game.h"
#include "../Game.h"
#include "../localisation/localisation.h"
#include "../localisation/string_ids.h"
#include "../interface/viewport.h"

View File

@ -20,7 +20,7 @@
#include "../ride/ride_data.h"
#include "Track.h"
#include "../interface/viewport.h"
#include "../game.h"
#include "../Game.h"
#include "../drawing/lightfx.h"
#include "vehicle_paint.h"

View File

@ -15,7 +15,7 @@
#pragma endregion
#include "../../config/Config.h"
#include "../../game.h"
#include "../../Game.h"
#include "../../interface/viewport.h"
#include "../../paint/paint.h"
#include "../../paint/supports.h"

View File

@ -18,7 +18,7 @@
#include "../cheats.h"
#include "../config/Config.h"
#include "../FileClassifier.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/viewport.h"
#include "../localisation/date.h"
#include "../localisation/localisation.h"

View File

@ -28,7 +28,7 @@
#include "../audio/audio.h"
#include "../drawing/drawing.h"
#include "../game.h"
#include "../Game.h"
#include "../input.h"
#include "../interface/viewport.h"
#include "../interface/window.h"

View File

@ -32,7 +32,7 @@
#include "TitleSequenceManager.h"
#include "TitleSequencePlayer.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/viewport.h"
#include "../interface/window.h"
#include "../management/NewsItem.h"

View File

@ -24,7 +24,7 @@
#include <ctype.h>
#include "../audio/audio.h"
#include "../game.h"
#include "../Game.h"
#include "../Editor.h"
#include "../interface/widget.h"
#include "../localisation/localisation.h"

View File

@ -21,7 +21,7 @@
#include "../Context.h"
#include "../audio/audio.h"
#include "../input.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/viewport.h"
#include "../ride/Track.h"
#include "../ride/TrackData.h"

View File

@ -26,7 +26,7 @@
#include "map.h"
#include "park.h"
#include "scenery.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/window.h"
#include "../localisation/localisation.h"
#include "../ride/ride.h"

View File

@ -23,7 +23,7 @@
#include "../audio/AudioMixer.h"
#include "../cheats.h"
#include "../drawing/drawing.h"
#include "../game.h"
#include "../Game.h"
#include "../interface/window.h"
#include "../localisation/date.h"
#include "../scenario/scenario.h"

View File

@ -19,7 +19,7 @@
#include "../sprites.h"
#include "../audio/audio.h"
#include "../game.h"
#include "../Game.h"
#include "../localisation/date.h"
#include "../scenario/scenario.h"
#include "sprite.h"

View File

@ -22,7 +22,7 @@
#include "map.h"
#include "park.h"
#include "../cheats.h"
#include "../game.h"
#include "../Game.h"
#include "../localisation/string_ids.h"
#include "../management/Finance.h"
#include "../ride/Track.h"

View File

@ -16,7 +16,7 @@
#include "Fountain.h"
#include "../game.h"
#include "../Game.h"
#include "../scenario/scenario.h"
#include "footpath.h"
#include "map.h"

View File

@ -23,7 +23,7 @@
#include "../core/Math.hpp"
#include "../core/String.hpp"
#include "../core/Util.hpp"
#include "../game.h"
#include "../Game.h"
#include "../Imaging.h"
#include "../localisation/string_ids.h"
#include "../object.h"

View File

@ -17,7 +17,7 @@
#include "../common.h"
#include "../Context.h"
#include "../core/Guard.hpp"
#include "../game.h"
#include "../Game.h"
#include "../interface/window.h"
#include "../ride/Track.h"
#include "../windows/Intent.h"

View File

@ -19,7 +19,7 @@
#include "../OpenRCT2.h"
#include "../cheats.h"
#include "../game.h"
#include "../Game.h"
#include "../localisation/string_ids.h"
#include "../ride/Track.h"
#include "../ride/TrackData.h"

View File

@ -15,7 +15,7 @@
#pragma endregion
#include "../cheats.h"
#include "../game.h"
#include "../Game.h"
#include "../localisation/localisation.h"
#include "../network/network.h"
#include "../object_list.h"

Some files were not shown because too many files have changed in this diff Show More