f09b14ef2b
* 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> |
||
---|---|---|
.. | ||
actions | ||
audio | ||
cmdline | ||
config | ||
core | ||
drawing | ||
interface | ||
localisation | ||
management | ||
network | ||
object | ||
paint | ||
peep | ||
platform | ||
rct1 | ||
rct2 | ||
rct12 | ||
ride | ||
scenario | ||
scripting | ||
title | ||
ui | ||
util | ||
windows | ||
world | ||
CMakeLists.txt | ||
Cheats.cpp | ||
Cheats.h | ||
CmdlineSprite.cpp | ||
CmdlineSprite.h | ||
Context.cpp | ||
Context.h | ||
Date.cpp | ||
Date.h | ||
Diagnostic.cpp | ||
Diagnostic.h | ||
Editor.cpp | ||
Editor.h | ||
EditorObjectSelectionSession.cpp | ||
EditorObjectSelectionSession.h | ||
FileClassifier.cpp | ||
FileClassifier.h | ||
Game.cpp | ||
Game.h | ||
GameState.cpp | ||
GameState.h | ||
GameStateSnapshots.cpp | ||
GameStateSnapshots.h | ||
Input.cpp | ||
Input.h | ||
Intro.cpp | ||
Intro.h | ||
OpenRCT2.cpp | ||
OpenRCT2.h | ||
ParkImporter.cpp | ||
ParkImporter.h | ||
PlatformEnvironment.cpp | ||
PlatformEnvironment.h | ||
ReplayManager.cpp | ||
ReplayManager.h | ||
TrackImporter.cpp | ||
TrackImporter.h | ||
Version.cpp | ||
Version.h | ||
common.h | ||
libopenrct2.vcxproj | ||
readme.md | ||
sprites.h |
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.