OpenRCT2/src/openrct2
Adam f09b14ef2b
Split actions hpp files into separate h and cpp files (#13548)
* Split up SmallSceneryPlace/Remove

Added undo function for Remove Scenery

* Refactor: Balloon and Banner actions hpp=>h/cpp

* Refactor: rename all action *.hpp files to *.cpp

This is preparation for separation in later commits. Note that without
the complete set of commits in this branch, the code will not build.

* Refactor Clear, Climate, Custom, and Footpath actions hpp=>h/cpp

* VSCode: add src subdirectories to includePath

* Refactor Guest actions hpp=>h/cpp

* Refactor Land actions hpp=>h/cpp

* Refactor LargeScenery actions hpp=>h/cpp

* Refactor Load, Maze, Network actions hpp=>h/cpp

* Refactor Park actions hpp=>h/cpp

* Refactor/style: move private function declarations in actions *.h

Previous action .h files included private function declarations with
private member variables, before public function declarations. This
commit re-orders the header files to the following order:
- public member variables
- private member variables
- public functions
- private functions

* Refactor Pause action hpp=>h/cpp

* Refactor Peep, Place, Player actions hpp=>h/cpp

* Refactor Ride actions hpp=>h/cpp

* Refactor Scenario, Set*, Sign* actions hpp=>h/cpp

* Refactor SmallScenerySetColourAction hpp=>h/cpp

* Refactor Staff actions hpp=>h/cpp

* Refactor Surface, Tile, Track* actions hpp=>h/cpp

* Refactor Wall and Water actions hpp=>h/cpp

* Fix various includes and other compile errors

Update includes for tests.
Move static function declarations to .h files
Add explicit includes to various files that were previously implicit
(the required header was a nested include in an action hpp file, and the
action .h file does not include that header)
Move RideSetStatus string enum to the cpp file to avoid unused imports

* Xcode: modify project file for actions refactor

* Cleanup whitespace and end-of-file newlines

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2020-12-10 06:39:10 +00:00
..
actions Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
audio Split declarations and definitions to improve compile times when editing (#13332) 2020-11-07 12:42:04 +00:00
cmdline Rename to TitleCase and name LastAttachedPS (#13260) 2020-10-22 18:13:54 +01:00
config Improve message when asking for a game_path with no filepicker available 2020-11-08 14:32:58 +01:00
core Simplify Serialise for FileIndex 2020-12-07 07:52:12 +00:00
drawing Close #12403: Refactor FILTER_PALETTE_ID to use strong enum (#13273) 2020-12-05 15:13:59 -03:00
interface Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
localisation Merge pull request #13504 from IntelOrca/plugin/more-things 2020-12-06 16:13:07 +00:00
management Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
network Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
object Merge LitterType into the shop item descriptor (#13513) 2020-12-09 06:55:06 +00:00
paint Close #12403: Refactor FILTER_PALETTE_ID to use strong enum (#13273) 2020-12-05 15:13:59 -03:00
peep Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
platform Replace Backtrace token for v0.3.2 2020-11-01 10:18:49 +01:00
rct1 Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
rct2 Peep::ItemFlags merging (#13511) 2020-12-09 09:21:23 +00:00
rct12 Fix banner text formatting, import / export 2020-11-28 16:52:19 +00:00
ride Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
scenario Fix #13552: Incorrect value for highscore pointer (#13554) 2020-12-08 16:23:51 -03:00
scripting Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
title Fix title screen and object manager text issues 2020-11-27 18:54:58 +00:00
ui Check if platform has a file picker 2020-11-08 14:06:42 +01:00
util Fix logical sort 2020-10-09 20:59:43 +02:00
windows Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
world Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
CMakeLists.txt Specify SYSTEM includes on CMAKE builds 2020-10-09 01:28:34 -03:00
Cheats.cpp Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
Cheats.h Remove built-in explode guests cheat 2020-11-16 22:07:52 +01:00
CmdlineSprite.cpp refactor: changed ObjectType enum to strong enum 2020-11-11 16:07:01 +01:00
CmdlineSprite.h Update copyright year to 2020 2020-07-21 15:04:34 +02:00
Context.cpp Split declarations and definitions to improve compile times when editing (#13332) 2020-11-07 12:42:04 +00:00
Context.h Close #12408: Refactor CURSOR_ID to use strong enum 2020-10-11 18:01:14 +02:00
Date.cpp Update copyright year to 2020 2020-07-21 15:04:34 +02:00
Date.h Update copyright year to 2020 2020-07-21 15:04:34 +02:00
Diagnostic.cpp Close #12452: Refactor DIAGNOSTIC_LEVEL to use strong enum (#12549) 2020-08-02 07:51:02 +01:00
Diagnostic.h Close #12452: Refactor DIAGNOSTIC_LEVEL to use strong enum (#12549) 2020-08-02 07:51:02 +01:00
Editor.cpp Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
Editor.h Close #12427: Refactor OBJECT_TYPE to use strong enum 2020-11-11 16:07:01 +01:00
EditorObjectSelectionSession.cpp Create ObjectEntryDescriptor to properly handle mixed DAT and JSON 2020-12-02 17:17:25 +01:00
EditorObjectSelectionSession.h Create ObjectEntryDescriptor to properly handle mixed DAT and JSON 2020-12-02 17:17:25 +01:00
FileClassifier.cpp Split declarations and definitions to improve compile times when editing (#13332) 2020-11-07 12:42:04 +00:00
FileClassifier.h Remove the use of INTERFACE macro and macro its self 2020-08-05 16:30:44 +02:00
Game.cpp Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
Game.h Close #13346: Change FootpathScenery to FootpathAddition (#13350) 2020-11-03 08:17:29 +00:00
GameState.cpp Close #12421: Refactor NETWORK_AUTH to use strong enum 2020-09-10 19:32:28 -03:00
GameState.h Update copyright year to 2020 2020-07-21 15:04:34 +02:00
GameStateSnapshots.cpp Peep::ItemFlags merging (#13511) 2020-12-09 09:21:23 +00:00
GameStateSnapshots.h Close #12450: Refactor SPRITE_IDENTIFIER to use strong enum 2020-10-27 13:26:27 -03:00
Input.cpp Close #12456: Refactor INPUT_STATE to use strong enum (#12484) 2020-07-27 19:51:10 -03:00
Input.h Close #12455: Refactor MOUSE_STATE to use strong enum (#13361) 2020-11-03 18:41:19 -03:00
Intro.cpp Move the audio code into OpenRCT2 namespace 2020-10-07 00:34:42 +03:00
Intro.h Close #12457: Rename INTRO_STATE to use PascalCase 2020-07-26 09:32:53 -04:00
OpenRCT2.cpp Close #12412: Refactor PROMPT_MODE to use strong enum (#13076) 2020-10-02 23:04:59 -03:00
OpenRCT2.h Close #12412: Refactor PROMPT_MODE to use strong enum (#13076) 2020-10-02 23:04:59 -03:00
ParkImporter.cpp Add .sea support to New Scenario list and extension handling 2020-09-28 21:17:28 +02:00
ParkImporter.h Fix #13250: Crash when opening parks with new ride types (#13256) 2020-11-01 14:49:43 +01:00
PlatformEnvironment.cpp Update copyright year to 2020 2020-07-21 15:04:34 +02:00
PlatformEnvironment.h Remove the use of INTERFACE macro and macro its self 2020-08-05 16:30:44 +02:00
ReplayManager.cpp Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
ReplayManager.h Remove the use of INTERFACE macro and macro its self 2020-08-05 16:30:44 +02:00
TrackImporter.cpp Update copyright year to 2020 2020-07-21 15:04:34 +02:00
TrackImporter.h Remove the use of INTERFACE macro and macro its self 2020-08-05 16:30:44 +02:00
Version.cpp Rename GameActionResult and use GameActions namespace instead (#13184) 2020-10-14 22:04:39 -03:00
Version.h Release v0.3.2 2020-11-01 20:00:01 +01:00
common.h Remove the use of INTERFACE macro and macro its self 2020-08-05 16:30:44 +02:00
libopenrct2.vcxproj Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
readme.md Use named casts instead of old-style casts 2020-04-22 17:09:29 +02:00
sprites.h Add "Hybrid Coaster" ride type (#12110) 2020-10-10 20:27:12 +01:00

readme.md

Source directory structure

  • actions

    Handles player actions and queues pending actions.

  • audio

    Contains files for mixing and playing music and sound.

  • cmdline

    Code specific to command line (arguments).

  • config

    Code concerning game configuration.

  • core

    Provides core functionality such as string operations, encryption, and compression.

  • drawing

    Low level drawing logic and palette tables.

  • interface

    Window and widget logic, includes high level drawing and input.

  • localisation

    String IDs, currency and date logic.

  • management

    Park management logic such as finance, marketing and research.

  • network

    Network and multiplayer logic, includes management of network games and downloading / uploading of content.

  • object

    Code relating to objects (rides, shops, scenery, etc).

  • paint

    Prepares objects' sprites to be drawn.

  • peep

    Guest and staff definitions and logic such as action management and pathfinding.

  • platform

    Compiler and operating system specific code such as type definitions, message handling and file input / output.

  • rct1

    Code specific only to RCT1 (vanilla).

  • rct2

    Code specific only to RCT2 (vanilla).

  • rct12

    Code specific to vanilla RCT, either RCT 1 or RCT 2.

  • ride

    Data and logic for rides, vehicles and track.

  • scenario

    Code relating to game scenarios.

  • title

    Code for loading and updating title screen sequence.

  • util

    Utility and helper functions.

  • windows

    Definitions and logic for all the windows in the game.

  • world

    World objects and mechanics such as the climate, landscape, sprites and park.