diff --git a/src/openrct2/actions/MazePlaceTrackAction.cpp b/src/openrct2/actions/MazePlaceTrackAction.cpp
index 3bad5ea0c5..07ecb99c77 100644
--- a/src/openrct2/actions/MazePlaceTrackAction.cpp
+++ b/src/openrct2/actions/MazePlaceTrackAction.cpp
@@ -11,9 +11,9 @@
#include "../Diagnostic.h"
#include "../GameState.h"
#include "../management/Finance.h"
+#include "../ride/MazeCost.h"
#include "../ride/RideData.h"
#include "../ride/TrackData.h"
-#include "../ride/gentle/Maze.h"
#include "../world/ConstructionClearance.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/actions/MazeSetTrackAction.cpp b/src/openrct2/actions/MazeSetTrackAction.cpp
index 77e0875772..dbb89ea3da 100644
--- a/src/openrct2/actions/MazeSetTrackAction.cpp
+++ b/src/openrct2/actions/MazeSetTrackAction.cpp
@@ -16,10 +16,10 @@
#include "../interface/Window.h"
#include "../localisation/StringIds.h"
#include "../management/Finance.h"
+#include "../ride/MazeCost.h"
#include "../ride/RideData.h"
#include "../ride/Track.h"
#include "../ride/TrackData.h"
-#include "../ride/gentle/Maze.h"
#include "../world/ConstructionClearance.h"
#include "../world/Footpath.h"
#include "../world/Park.h"
diff --git a/src/openrct2/libopenrct2.vcxproj b/src/openrct2/libopenrct2.vcxproj
index e91aab7628..5551c7b0d0 100644
--- a/src/openrct2/libopenrct2.vcxproj
+++ b/src/openrct2/libopenrct2.vcxproj
@@ -371,8 +371,13 @@
+
+
+
+
+
@@ -407,69 +412,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -479,51 +423,108 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -890,6 +891,90 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -924,75 +1009,14 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1000,23 +1024,10 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/openrct2/paint/Paint.Entity.cpp b/src/openrct2/paint/Paint.Entity.cpp
index b0e80ce84f..0e1d46a54d 100644
--- a/src/openrct2/paint/Paint.Entity.cpp
+++ b/src/openrct2/paint/Paint.Entity.cpp
@@ -24,11 +24,11 @@
#include "../ride/RideData.h"
#include "../ride/TrackDesign.h"
#include "../ride/Vehicle.h"
-#include "../ride/VehiclePaint.h"
#include "../world/Climate.h"
#include "../world/MapAnimation.h"
#include "../world/Park.h"
#include "Paint.h"
+#include "vehicle/VehiclePaint.h"
#include
diff --git a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp b/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp
rename to src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp
index c2bd15ad99..89a03922b0 100644
--- a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/AirPoweredVerticalCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/AlpineCoaster.cpp b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/AlpineCoaster.cpp
rename to src/openrct2/paint/track/coaster/AlpineCoaster.cpp
index 6249ce7c3a..e8f56e595b 100644
--- a/src/openrct2/ride/coaster/AlpineCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/AlpineCoaster.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/BobsleighCoaster.cpp b/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/BobsleighCoaster.cpp
rename to src/openrct2/paint/track/coaster/BobsleighCoaster.cpp
index 11a0caf904..c5cd43ae29 100644
--- a/src/openrct2/ride/coaster/BobsleighCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/BobsleighCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp b/src/openrct2/paint/track/coaster/BolligerMabillardTrack.hpp
similarity index 99%
rename from src/openrct2/ride/coaster/BolligerMabillardTrack.hpp
rename to src/openrct2/paint/track/coaster/BolligerMabillardTrack.hpp
index 2f913dc84e..6c241afe8c 100644
--- a/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp
+++ b/src/openrct2/paint/track/coaster/BolligerMabillardTrack.hpp
@@ -9,19 +9,19 @@
#pragma once
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/ClassicStandUpRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/ClassicStandUpRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp
index d661024299..31b9b26d77 100644
--- a/src/openrct2/ride/coaster/ClassicStandUpRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/ClassicStandUpRollerCoaster.cpp
@@ -7,12 +7,12 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include
diff --git a/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp
index b1cd83d9ea..9e6a97adee 100644
--- a/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/ClassicWoodenRollerCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include "WoodenRollerCoaster.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp b/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/CompactInvertedCoaster.cpp
rename to src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp
index 2979add140..7583a7a7b5 100644
--- a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/CompactInvertedCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.hpp b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.hpp
similarity index 99%
rename from src/openrct2/ride/coaster/CorkscrewRollerCoaster.hpp
rename to src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.hpp
index ab85ab592e..ecea91f07b 100644
--- a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.hpp
+++ b/src/openrct2/paint/track/coaster/CorkscrewRollerCoaster.hpp
@@ -9,19 +9,19 @@
#pragma once
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/FlyingRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp
index 35c34c5b76..78796519f7 100644
--- a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/FlyingRollerCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include "BolligerMabillardTrack.hpp"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/GigaCoaster.cpp b/src/openrct2/paint/track/coaster/GigaCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/GigaCoaster.cpp
rename to src/openrct2/paint/track/coaster/GigaCoaster.cpp
index e5fd3ebbfc..663f92c7f3 100644
--- a/src/openrct2/ride/coaster/GigaCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/GigaCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp b/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp
rename to src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp
index 10d5cd7b52..ea48f45ee9 100644
--- a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/HeartlineTwisterCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/HybridCoaster.cpp b/src/openrct2/paint/track/coaster/HybridCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/HybridCoaster.cpp
rename to src/openrct2/paint/track/coaster/HybridCoaster.cpp
index e8c23dd552..07ca4f4586 100644
--- a/src/openrct2/ride/coaster/HybridCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/HybridCoaster.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
static constexpr WoodenSupportType kSupportType = WoodenSupportType::Truss;
diff --git a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp b/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp
rename to src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp
index c3b54c8e92..5382af0b0f 100644
--- a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/InvertedHairpinCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp b/src/openrct2/paint/track/coaster/InvertedImpulseCoaster.cpp
similarity index 98%
rename from src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp
rename to src/openrct2/paint/track/coaster/InvertedImpulseCoaster.cpp
index 127f906a14..3cbb7e619d 100644
--- a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/InvertedImpulseCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp b/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/InvertedRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp
index 4f5b0ae39d..159558bedf 100644
--- a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/InvertedRollerCoaster.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/JuniorRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp
index 7ccc5adb61..65b09ff2d0 100644
--- a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/JuniorRollerCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../object/StationObject.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../object/StationObject.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include
diff --git a/src/openrct2/ride/coaster/LayDownRollerCoasterInverted.cpp b/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/LayDownRollerCoasterInverted.cpp
rename to src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp
index abcb0d1446..b93a2064c1 100644
--- a/src/openrct2/ride/coaster/LayDownRollerCoasterInverted.cpp
+++ b/src/openrct2/paint/track/coaster/LayDownRollerCoasterInverted.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include "CorkscrewRollerCoaster.hpp"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp b/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp
index 691e262d4f..a6a929e165 100644
--- a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/LimLaunchedRollerCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/LoopingRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp
index 702ee25977..1b2a4f3ecd 100644
--- a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/LoopingRollerCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/MineRide.cpp b/src/openrct2/paint/track/coaster/MineRide.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/MineRide.cpp
rename to src/openrct2/paint/track/coaster/MineRide.cpp
index 59fa0515b3..e2ab98ad4c 100644
--- a/src/openrct2/ride/coaster/MineRide.cpp
+++ b/src/openrct2/paint/track/coaster/MineRide.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/MineTrainCoaster.cpp b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/MineTrainCoaster.cpp
rename to src/openrct2/paint/track/coaster/MineTrainCoaster.cpp
index a9311042c1..106fc093c9 100644
--- a/src/openrct2/ride/coaster/MineTrainCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/MineTrainCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/MiniRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp
index 11eabd6501..50da17a931 100644
--- a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/MiniRollerCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp
rename to src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp
index 0628936240..35c31e4cc0 100644
--- a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/MiniSuspendedCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp
index e6440603e0..146e1f1038 100644
--- a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/MultiDimensionRollerCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp b/src/openrct2/paint/track/coaster/ReverseFreefallCoaster.cpp
similarity index 97%
rename from src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp
rename to src/openrct2/paint/track/coaster/ReverseFreefallCoaster.cpp
index 2318f7c464..e26cdb7b3c 100644
--- a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/ReverseFreefallCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp b/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp
similarity index 98%
rename from src/openrct2/ride/coaster/ReverserRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp
index 8215f16569..6a56f38791 100644
--- a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/ReverserRollerCoaster.cpp
@@ -7,51 +7,25 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
-#include "../VehiclePaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
static constexpr WoodenSupportType kSupportType = WoodenSupportType::Truss;
-#ifndef NO_VEHICLES
-/**
- *
- * rct2: 0x006D4453
- */
-void VehicleVisualReverser(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry)
-{
- Vehicle* v1 = GetEntity(vehicle->prev_vehicle_on_ride);
- Vehicle* v2 = GetEntity(vehicle->next_vehicle_on_ride);
- if (v1 == nullptr || v2 == nullptr)
- {
- return;
- }
- x = (v1->x + v2->x) / 2;
- y = (v1->y + v2->y) / 2;
- z = (v1->z + v2->z) / 2;
- session.SpritePosition.x = x;
- session.SpritePosition.y = y;
- VehicleVisualDefault(session, imageDirection, z, vehicle, carEntry);
-}
-#endif
-
/** rct2: 0x0086E65C */
static void ReverserRCTrackFlat(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
diff --git a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp b/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp
index e6940bcf97..665077a46d 100644
--- a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/SideFrictionRollerCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp b/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp
index 346d6145dc..5616dc91c1 100644
--- a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/SingleRailRollerCoaster.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp b/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/StandUpRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp
index 438a8c6844..92874f751d 100644
--- a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/StandUpRollerCoaster.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/Steeplechase.cpp b/src/openrct2/paint/track/coaster/Steeplechase.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/Steeplechase.cpp
rename to src/openrct2/paint/track/coaster/Steeplechase.cpp
index 82a3ff4e4e..ed88f811f1 100644
--- a/src/openrct2/ride/coaster/Steeplechase.cpp
+++ b/src/openrct2/paint/track/coaster/Steeplechase.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp b/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp
rename to src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp
index 6ad62d9626..c63db3a806 100644
--- a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/SuspendedSwingingCoaster.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/VirginiaReel.cpp b/src/openrct2/paint/track/coaster/VirginiaReel.cpp
similarity index 89%
rename from src/openrct2/ride/coaster/VirginiaReel.cpp
rename to src/openrct2/paint/track/coaster/VirginiaReel.cpp
index 410e867f4d..49447be049 100644
--- a/src/openrct2/ride/coaster/VirginiaReel.cpp
+++ b/src/openrct2/paint/track/coaster/VirginiaReel.cpp
@@ -7,16 +7,15 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include
@@ -24,13 +23,6 @@ using namespace OpenRCT2;
static constexpr WoodenSupportType kSupportType = WoodenSupportType::Truss;
-// 0x009927E6:
-static constexpr VehicleBoundBox _virginiaReelBoundbox[] = {
- { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 },
- { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 },
- { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 },
-};
-
enum
{
SPR_VIRGINIA_REEL_FLAT_SW_NE = 21458,
@@ -167,66 +159,6 @@ static constexpr uint32_t virginia_reel_track_pieces_flat_quarter_turn_1_tile[4]
SPR_VIRGINIA_REEL_FLAT_QUARTER_TURN_1_TILE_SE_SW,
};
-/**
- *
- * rct2: 0x006D5B48
- */
-void VehicleVisualVirginiaReel(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry)
-{
- imageDirection = OpenRCT2::Entity::Yaw::YawTo32(imageDirection);
- const uint8_t rotation = session.CurrentRotation;
- int32_t ecx = ((vehicle->spin_sprite / 8) + (rotation * 8)) & 31;
- int32_t baseImage_id = [&] {
- switch (vehicle->Pitch)
- {
- case 1:
- return (imageDirection & 24) + 8;
- case 2:
- return (imageDirection & 24) + 40;
- case 5:
- return ((imageDirection ^ 16) & 24) + 8;
- case 6:
- return ((imageDirection ^ 16) & 24) + 40;
- default:
- return 0;
- }
- }();
- baseImage_id += ecx & 7;
- const auto& vehicleBb = _virginiaReelBoundbox[baseImage_id >> 3];
- auto bb = BoundBoxXYZ{ { vehicleBb.offset_x, vehicleBb.offset_y, vehicleBb.offset_z + z },
- { vehicleBb.length_x, vehicleBb.length_y, vehicleBb.length_z } };
-
- baseImage_id += carEntry->base_image_id;
- auto image_id = ImageId(baseImage_id, vehicle->colours.Body, vehicle->colours.Trim);
- if (vehicle->IsGhost())
- {
- image_id = ConstructionMarker.WithIndex(image_id.GetIndex());
- }
- PaintAddImageAsParent(session, image_id, { 0, 0, z }, bb);
-
- if (session.DPI.zoom_level < ZoomLevel{ 2 } && vehicle->num_peeps > 0 && !vehicle->IsGhost())
- {
- uint8_t riding_peep_sprites[4] = { 0xFF, 0xFF, 0xFF, 0xFF };
- for (int32_t i = 0; i < vehicle->num_peeps; i++)
- {
- riding_peep_sprites[((ecx / 8) + i) & 3] = vehicle->peep_tshirt_colours[i];
- }
- int32_t draw_order[4] = { 0, 1, 3, 2 };
- for (auto i : draw_order)
- {
- if (riding_peep_sprites[i] != 0xFF)
- {
- image_id = ImageId(baseImage_id + ((i + 1) * 72), riding_peep_sprites[i]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
- }
- }
- }
-
- assert(carEntry->effect_visual == 1);
-}
-
/** rct2: 0x00811264 */
static void PaintVirginiaReelTrackFlat(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
diff --git a/src/openrct2/ride/coaster/WildMouse.cpp b/src/openrct2/paint/track/coaster/WildMouse.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/WildMouse.cpp
rename to src/openrct2/paint/track/coaster/WildMouse.cpp
index fa1bc7654f..cfba8d512b 100644
--- a/src/openrct2/ride/coaster/WildMouse.cpp
+++ b/src/openrct2/paint/track/coaster/WildMouse.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp
similarity index 99%
rename from src/openrct2/ride/coaster/WoodenRollerCoaster.cpp
rename to src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp
index c0c21e570c..b1043483ff 100644
--- a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp
+++ b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.cpp
@@ -9,22 +9,22 @@
#include "WoodenRollerCoaster.h"
-#include "../../config/Config.h"
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.Surface.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../config/Config.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.Surface.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/coaster/WoodenRollerCoaster.h b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.h
similarity index 91%
rename from src/openrct2/ride/coaster/WoodenRollerCoaster.h
rename to src/openrct2/paint/track/coaster/WoodenRollerCoaster.h
index a30353cf87..3111acc98c 100644
--- a/src/openrct2/ride/coaster/WoodenRollerCoaster.h
+++ b/src/openrct2/paint/track/coaster/WoodenRollerCoaster.h
@@ -9,14 +9,14 @@
#pragma once
-#include "../../drawing/ImageId.hpp"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../world/Location.hpp"
-#include "../TrackPaint.h"
+#include "../../../drawing/ImageId.hpp"
+#include "../../../ride/TrackPaint.h"
+#include "../../../world/Location.hpp"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
#include
diff --git a/src/openrct2/ride/coaster/WoodenWildMouse.cpp b/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp
similarity index 98%
rename from src/openrct2/ride/coaster/WoodenWildMouse.cpp
rename to src/openrct2/paint/track/coaster/WoodenWildMouse.cpp
index 50214811b8..ab2f0f6ba2 100644
--- a/src/openrct2/ride/coaster/WoodenWildMouse.cpp
+++ b/src/openrct2/paint/track/coaster/WoodenWildMouse.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/CarRide.cpp b/src/openrct2/paint/track/gentle/CarRide.cpp
similarity index 98%
rename from src/openrct2/ride/gentle/CarRide.cpp
rename to src/openrct2/paint/track/gentle/CarRide.cpp
index e9a2ff30ea..e01dfa2f29 100644
--- a/src/openrct2/ride/gentle/CarRide.cpp
+++ b/src/openrct2/paint/track/gentle/CarRide.cpp
@@ -7,18 +7,17 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/Circus.cpp b/src/openrct2/paint/track/gentle/Circus.cpp
similarity index 91%
rename from src/openrct2/ride/gentle/Circus.cpp
rename to src/openrct2/paint/track/gentle/Circus.cpp
index 8ad9213e3a..a7876580ee 100644
--- a/src/openrct2/ride/gentle/Circus.cpp
+++ b/src/openrct2/paint/track/gentle/Circus.cpp
@@ -7,17 +7,17 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../ride/Vehicle.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/CrookedHouse.cpp b/src/openrct2/paint/track/gentle/CrookedHouse.cpp
similarity index 91%
rename from src/openrct2/ride/gentle/CrookedHouse.cpp
rename to src/openrct2/paint/track/gentle/CrookedHouse.cpp
index a95cac5895..3fc4bff987 100644
--- a/src/openrct2/ride/gentle/CrookedHouse.cpp
+++ b/src/openrct2/paint/track/gentle/CrookedHouse.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../ride/Vehicle.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/Dodgems.cpp b/src/openrct2/paint/track/gentle/Dodgems.cpp
similarity index 90%
rename from src/openrct2/ride/gentle/Dodgems.cpp
rename to src/openrct2/paint/track/gentle/Dodgems.cpp
index 0bcbc3cbbd..89c2e9a903 100644
--- a/src/openrct2/ride/gentle/Dodgems.cpp
+++ b/src/openrct2/paint/track/gentle/Dodgems.cpp
@@ -7,16 +7,16 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../object/StationObject.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../util/Util.h"
-#include "../Ride.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../object/StationObject.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../util/Util.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/FerrisWheel.cpp b/src/openrct2/paint/track/gentle/FerrisWheel.cpp
similarity index 93%
rename from src/openrct2/ride/gentle/FerrisWheel.cpp
rename to src/openrct2/paint/track/gentle/FerrisWheel.cpp
index 898267e7c1..61c3ccbb53 100644
--- a/src/openrct2/ride/gentle/FerrisWheel.cpp
+++ b/src/openrct2/paint/track/gentle/FerrisWheel.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../entity/Guest.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../entity/Guest.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/FlyingSaucers.cpp b/src/openrct2/paint/track/gentle/FlyingSaucers.cpp
similarity index 87%
rename from src/openrct2/ride/gentle/FlyingSaucers.cpp
rename to src/openrct2/paint/track/gentle/FlyingSaucers.cpp
index 9c04a335f6..a0ac81a8d1 100644
--- a/src/openrct2/ride/gentle/FlyingSaucers.cpp
+++ b/src/openrct2/paint/track/gentle/FlyingSaucers.cpp
@@ -7,15 +7,15 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../object/StationObject.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../object/StationObject.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/GhostTrain.cpp b/src/openrct2/paint/track/gentle/GhostTrain.cpp
similarity index 98%
rename from src/openrct2/ride/gentle/GhostTrain.cpp
rename to src/openrct2/paint/track/gentle/GhostTrain.cpp
index 1d731d1a0b..7b97079f1e 100644
--- a/src/openrct2/ride/gentle/GhostTrain.cpp
+++ b/src/openrct2/paint/track/gentle/GhostTrain.cpp
@@ -7,18 +7,17 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/HauntedHouse.cpp b/src/openrct2/paint/track/gentle/HauntedHouse.cpp
similarity index 91%
rename from src/openrct2/ride/gentle/HauntedHouse.cpp
rename to src/openrct2/paint/track/gentle/HauntedHouse.cpp
index 4985092779..315d01b694 100644
--- a/src/openrct2/ride/gentle/HauntedHouse.cpp
+++ b/src/openrct2/paint/track/gentle/HauntedHouse.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/Maze.cpp b/src/openrct2/paint/track/gentle/Maze.cpp
similarity index 87%
rename from src/openrct2/ride/gentle/Maze.cpp
rename to src/openrct2/paint/track/gentle/Maze.cpp
index 42cdb5a1b4..870a7fcab4 100644
--- a/src/openrct2/ride/gentle/Maze.cpp
+++ b/src/openrct2/paint/track/gentle/Maze.cpp
@@ -7,26 +7,22 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "Maze.h"
-
-#include "../../core/Numerics.hpp"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Paint.Surface.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../Ride.h"
-#include "../RideData.h"
-#include "../Track.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../core/Numerics.hpp"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Paint.Surface.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
-using namespace OpenRCT2::TrackMetaData;
enum
{
@@ -200,15 +196,3 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionMaze(int32_t trackType)
return MazePaintSetup;
}
-
-money64 MazeCalculateCost(money64 constructionCost, const Ride& ride, const CoordsXYZ& loc)
-{
- const auto& ted = GetTrackElementDescriptor(TrackElemType::Maze);
- money64 price = (ride.GetRideTypeDescriptor().BuildCosts.TrackPrice * ted.PriceModifier) >> 16;
-
- auto surfaceElement = MapGetSurfaceElementAt(loc);
- auto heightDifference = (loc.z - surfaceElement->GetBaseZ()) / kCoordsZPerTinyZ;
- money64 supportCost = heightDifference * ride.GetRideTypeDescriptor().BuildCosts.SupportPrice;
-
- return constructionCost + price + supportCost;
-}
diff --git a/src/openrct2/ride/gentle/MerryGoRound.cpp b/src/openrct2/paint/track/gentle/MerryGoRound.cpp
similarity index 94%
rename from src/openrct2/ride/gentle/MerryGoRound.cpp
rename to src/openrct2/paint/track/gentle/MerryGoRound.cpp
index c60fffbea7..877faff386 100644
--- a/src/openrct2/ride/gentle/MerryGoRound.cpp
+++ b/src/openrct2/paint/track/gentle/MerryGoRound.cpp
@@ -7,17 +7,17 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/MiniGolf.cpp b/src/openrct2/paint/track/gentle/MiniGolf.cpp
similarity index 90%
rename from src/openrct2/ride/gentle/MiniGolf.cpp
rename to src/openrct2/paint/track/gentle/MiniGolf.cpp
index 1e90b8392d..c2db0de7e6 100644
--- a/src/openrct2/ride/gentle/MiniGolf.cpp
+++ b/src/openrct2/paint/track/gentle/MiniGolf.cpp
@@ -7,24 +7,21 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../entity/Guest.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.SessionFlags.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../world/Map.h"
-#include "../../world/Surface.h"
-#include "../../world/tile_element/Slope.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../../world/Map.h"
+#include "../../../world/Surface.h"
+#include "../../../world/tile_element/Slope.h"
+#include "../../Paint.SessionFlags.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include
@@ -380,78 +377,6 @@ static constexpr uint32_t MiniGolfTrackSpritesHoleE[][3][2] = {
},
};
-/** rct2: 0x00933471 */
-// clang-format off
-static constexpr uint8_t MiniGolfPeepAnimationFramesWalk[] = {
- 0, 1, 2, 3, 4, 5,
-};
-
-/** rct2: 0x00933478 */
-static constexpr uint8_t MiniGolfPeepAnimationFramesPlaceBallDownwards[] = {
- 12, 13, 14, 15,
-};
-
-/** rct2: 0x009334B5 */
-static constexpr uint8_t MiniGolfPeepAnimationFramesSwing[] = {
- 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 33, 33, 33, 34,
-};
-
-/** rct2: 0x0093347D */
-static constexpr uint8_t MiniGolfPeepAnimationFramesSwingLeft[] = {
- 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 9,
-};
-
-/** rct2: 0x0093348D */
-static constexpr uint8_t MiniGolfPeepAnimationFramesPickupBall[] = {
- 12, 13, 14, 15, 14, 13, 12,
-};
-
-/** rct2: 0x00933495 */
-static constexpr uint8_t MiniGolfPeepAnimationFramesJump[] = {
- 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
-};
-
-/** rct2: 0x009334A5 */
-static constexpr uint8_t MiniGolfPeepAnimationFramesPlaceBallUpwards[] = {
- 15, 14, 13, 12,
-};
-
-/** rct2: 0x009334C5 */
-static constexpr uint8_t MiniGolfPeepAnimationFramesPutt[] = {
- 35, 36, 36, 36, 36, 36, 35, 35, 35, 35,
-};
-
-/** rct2: 0x009334AA */
-static constexpr uint8_t MiniGolfPeepAnimationFramesPuttLeft[] = {
- 10, 11, 11, 11, 11, 11, 10, 10, 10, 10,
-};
-
-/** rct2: 0x008B8F74 */
-static constexpr const uint8_t* MiniGolfPeepAnimationFrames[] = {
- MiniGolfPeepAnimationFramesWalk,
- MiniGolfPeepAnimationFramesPlaceBallDownwards,
- MiniGolfPeepAnimationFramesSwingLeft,
- MiniGolfPeepAnimationFramesPickupBall,
- MiniGolfPeepAnimationFramesJump,
- MiniGolfPeepAnimationFramesPlaceBallUpwards,
- MiniGolfPeepAnimationFramesPuttLeft,
- MiniGolfPeepAnimationFramesSwing,
- MiniGolfPeepAnimationFramesPutt,
-};
-
-const size_t MiniGolfPeepAnimationLengths[] = {
- std::size(MiniGolfPeepAnimationFramesWalk),
- std::size(MiniGolfPeepAnimationFramesPlaceBallDownwards),
- std::size(MiniGolfPeepAnimationFramesSwingLeft),
- std::size(MiniGolfPeepAnimationFramesPickupBall),
- std::size(MiniGolfPeepAnimationFramesJump),
- std::size(MiniGolfPeepAnimationFramesPlaceBallUpwards),
- std::size(MiniGolfPeepAnimationFramesPuttLeft),
- std::size(MiniGolfPeepAnimationFramesSwing),
- std::size(MiniGolfPeepAnimationFramesPutt),
-};
-// clang-format on
-
static bool MiniGolfPaintUtilShouldDrawFence(PaintSession& session, const TrackElement& trackElement)
{
if (!(session.Flags & PaintSessionFlags::PassedSurface))
@@ -1208,67 +1133,3 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniGolf(int32_t trackType)
return nullptr;
}
-
-/**
- * rct2: 0x006D42F0
- */
-void VehicleVisualMiniGolfPlayer(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle)
-{
- if (vehicle->num_peeps == 0)
- {
- return;
- }
-
- if (session.DPI.zoom_level >= ZoomLevel{ 2 })
- {
- return;
- }
-
- auto ride = vehicle->GetRide();
- if (ride == nullptr)
- return;
-
- auto rideEntry = ride->GetRideEntry();
- if (rideEntry == nullptr)
- return;
-
- auto* peep = GetEntity(vehicle->peep[0]);
- if (peep == nullptr)
- return;
-
- uint8_t frame = MiniGolfPeepAnimationFrames[EnumValue(vehicle->mini_golf_current_animation)][vehicle->animation_frame];
- uint32_t ebx = (frame << 2) + OpenRCT2::Entity::Yaw::YawTo4(imageDirection);
-
- ImageIndex index = rideEntry->Cars[0].base_image_id + 1 + ebx;
- auto image = ImageId(index, peep->TshirtColour, peep->TrousersColour);
- PaintAddImageAsParent(session, image, { 0, 0, z }, { { 0, 0, z + 5 }, { 1, 1, 11 } });
-}
-
-/**
- * rct2: 0x006D43C6
- */
-void VehicleVisualMiniGolfBall(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle)
-{
- if (vehicle->mini_golf_current_animation != MiniGolfAnimation::PlaceBallDown)
- {
- return;
- }
-
- if (session.DPI.zoom_level >= ZoomLevel{ 1 })
- {
- return;
- }
-
- auto ride = vehicle->GetRide();
- if (ride == nullptr)
- return;
-
- auto rideEntry = ride->GetRideEntry();
- if (rideEntry == nullptr)
- return;
-
- uint32_t image_id = rideEntry->Cars[0].base_image_id;
- PaintAddImageAsParent(session, ImageId(image_id), { 0, 0, z }, { { 0, 0, z + 3 }, { 1, 1, 0 } });
-}
diff --git a/src/openrct2/ride/gentle/MiniHelicopters.cpp b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp
similarity index 97%
rename from src/openrct2/ride/gentle/MiniHelicopters.cpp
rename to src/openrct2/paint/track/gentle/MiniHelicopters.cpp
index bf1c758259..1ce1e46aaf 100644
--- a/src/openrct2/ride/gentle/MiniHelicopters.cpp
+++ b/src/openrct2/paint/track/gentle/MiniHelicopters.cpp
@@ -7,18 +7,17 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/MonorailCycles.cpp b/src/openrct2/paint/track/gentle/MonorailCycles.cpp
similarity index 98%
rename from src/openrct2/ride/gentle/MonorailCycles.cpp
rename to src/openrct2/paint/track/gentle/MonorailCycles.cpp
index d395456aa7..5cf488b9d6 100644
--- a/src/openrct2/ride/gentle/MonorailCycles.cpp
+++ b/src/openrct2/paint/track/gentle/MonorailCycles.cpp
@@ -7,16 +7,15 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../world/Map.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/ObservationTower.cpp b/src/openrct2/paint/track/gentle/ObservationTower.cpp
similarity index 72%
rename from src/openrct2/ride/gentle/ObservationTower.cpp
rename to src/openrct2/paint/track/gentle/ObservationTower.cpp
index 4f2fa929f1..cab1b8295d 100644
--- a/src/openrct2/ride/gentle/ObservationTower.cpp
+++ b/src/openrct2/paint/track/gentle/ObservationTower.cpp
@@ -7,18 +7,17 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../world/Map.h"
-#include "../Ride.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include
@@ -31,59 +30,6 @@ enum
SprObservationTowerSegmentTop = 14988,
};
-static uint32_t GetObservationTowerVehicleBaseImageId(const Vehicle* vehicle, const CarEntry* carEntry, int32_t imageDirection)
-{
- uint32_t result = (vehicle->restraints_position / 64);
- if (vehicle->restraints_position >= 64)
- {
- auto directionOffset = imageDirection / 8;
- if ((directionOffset == 0) || (directionOffset == 3))
- {
- result = carEntry->base_image_id + 8;
- }
- else
- {
- result *= 2;
- result += carEntry->base_image_id;
- if (directionOffset == 1)
- {
- result += 28;
- }
- else
- {
- result += 22;
- }
- }
- }
- else
- {
- result = (vehicle->animation_frame * 2) + carEntry->base_image_id + 8;
- }
- return result;
-}
-
-/**
- *
- * rct2: 0x006D6258
- */
-void VehicleVisualObservationTower(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry)
-{
- auto baseImageId = GetObservationTowerVehicleBaseImageId(vehicle, carEntry, imageDirection);
- auto imageId0 = ImageId(baseImageId + 0, vehicle->colours.Body, vehicle->colours.Trim, vehicle->colours.Tertiary);
- auto imageId1 = ImageId(baseImageId + 1, vehicle->colours.Body, vehicle->colours.Trim, vehicle->colours.Tertiary);
- if (vehicle->IsGhost())
- {
- imageId0 = ImageId(baseImageId + 0).WithRemap(FilterPaletteID::PaletteGhost);
- imageId1 = ImageId(baseImageId + 1).WithRemap(FilterPaletteID::PaletteGhost);
- }
-
- PaintAddImageAsParent(session, imageId0, { 0, 0, z }, { { -11, -11, z + 1 }, { 2, 2, 41 } });
- PaintAddImageAsParent(session, imageId1, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
- assert(carEntry->effect_visual == 1);
-}
-
/** rct2: 0x0070DD6C */
static void PaintObservationTowerBase(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
diff --git a/src/openrct2/ride/gentle/SpaceRings.cpp b/src/openrct2/paint/track/gentle/SpaceRings.cpp
similarity index 94%
rename from src/openrct2/ride/gentle/SpaceRings.cpp
rename to src/openrct2/paint/track/gentle/SpaceRings.cpp
index 0ee31b8201..fb5b1d8be5 100644
--- a/src/openrct2/ride/gentle/SpaceRings.cpp
+++ b/src/openrct2/paint/track/gentle/SpaceRings.cpp
@@ -7,17 +7,17 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../entity/Guest.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../entity/Guest.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/gentle/SpiralSlide.cpp b/src/openrct2/paint/track/gentle/SpiralSlide.cpp
similarity index 96%
rename from src/openrct2/ride/gentle/SpiralSlide.cpp
rename to src/openrct2/paint/track/gentle/SpiralSlide.cpp
index a953120100..d62acecbea 100644
--- a/src/openrct2/ride/gentle/SpiralSlide.cpp
+++ b/src/openrct2/paint/track/gentle/SpiralSlide.cpp
@@ -7,16 +7,16 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../object/StationObject.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../object/StationObject.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/shops/Facility.cpp b/src/openrct2/paint/track/shops/Facility.cpp
similarity index 86%
rename from src/openrct2/ride/shops/Facility.cpp
rename to src/openrct2/paint/track/shops/Facility.cpp
index ed5913b6d4..d661e366aa 100644
--- a/src/openrct2/ride/shops/Facility.cpp
+++ b/src/openrct2/paint/track/shops/Facility.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/shops/Shop.cpp b/src/openrct2/paint/track/shops/Shop.cpp
similarity index 85%
rename from src/openrct2/ride/shops/Shop.cpp
rename to src/openrct2/paint/track/shops/Shop.cpp
index eb86ca9a6b..fdef1ed8b5 100644
--- a/src/openrct2/ride/shops/Shop.cpp
+++ b/src/openrct2/paint/track/shops/Shop.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/thrill/3dCinema.cpp b/src/openrct2/paint/track/thrill/3dCinema.cpp
similarity index 91%
rename from src/openrct2/ride/thrill/3dCinema.cpp
rename to src/openrct2/paint/track/thrill/3dCinema.cpp
index b033b4709b..03d9458cf3 100644
--- a/src/openrct2/ride/thrill/3dCinema.cpp
+++ b/src/openrct2/paint/track/thrill/3dCinema.cpp
@@ -7,17 +7,17 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/thrill/Enterprise.cpp b/src/openrct2/paint/track/thrill/Enterprise.cpp
similarity index 93%
rename from src/openrct2/ride/thrill/Enterprise.cpp
rename to src/openrct2/paint/track/thrill/Enterprise.cpp
index 23d694ddea..d34ad01350 100644
--- a/src/openrct2/ride/thrill/Enterprise.cpp
+++ b/src/openrct2/paint/track/thrill/Enterprise.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/thrill/GoKarts.cpp b/src/openrct2/paint/track/thrill/GoKarts.cpp
similarity index 98%
rename from src/openrct2/ride/thrill/GoKarts.cpp
rename to src/openrct2/paint/track/thrill/GoKarts.cpp
index f4d8ad5357..ca34041d02 100644
--- a/src/openrct2/ride/thrill/GoKarts.cpp
+++ b/src/openrct2/paint/track/thrill/GoKarts.cpp
@@ -7,17 +7,16 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../world/Map.h"
-#include "../Ride.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/thrill/LaunchedFreefall.cpp b/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp
similarity index 66%
rename from src/openrct2/ride/thrill/LaunchedFreefall.cpp
rename to src/openrct2/paint/track/thrill/LaunchedFreefall.cpp
index 632e71ad34..2e52bb3b4d 100644
--- a/src/openrct2/ride/thrill/LaunchedFreefall.cpp
+++ b/src/openrct2/paint/track/thrill/LaunchedFreefall.cpp
@@ -7,17 +7,16 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../Ride.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include
@@ -30,67 +29,6 @@ enum
SPR_LAUNCHED_FREEFALL_TOWER_SEGMENT_TOP = 14566,
};
-/**
- *
- * rct2: 0x006D5FAB
- */
-void VehicleVisualLaunchedFreefall(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry)
-{
- auto imageFlags = ImageId(0, vehicle->colours.Body, vehicle->colours.Trim);
- if (vehicle->IsGhost())
- {
- imageFlags = ConstructionMarker;
- }
-
- // Draw back:
- int32_t baseImage_id = carEntry->base_image_id + ((vehicle->restraints_position / 64) * 2);
- auto image_id = imageFlags.WithIndex(baseImage_id + 2);
- PaintAddImageAsParent(session, image_id, { 0, 0, z }, { { -11, -11, z + 1 }, { 2, 2, 41 } });
-
- // Draw front:
- image_id = imageFlags.WithIndex(baseImage_id + 1);
- PaintAddImageAsParent(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
-
- // Draw peeps:
- if (session.DPI.zoom_level < ZoomLevel{ 2 } && vehicle->num_peeps > 0 && !vehicle->IsGhost())
- {
- baseImage_id = carEntry->base_image_id + 9;
- if ((vehicle->restraints_position / 64) == 3)
- {
- baseImage_id += 2; // Draw peeps sitting without transparent area between them for restraints
- }
- auto directionOffset = OpenRCT2::Entity::Yaw::YawTo4(imageDirection);
- image_id = ImageId(
- baseImage_id + (((directionOffset + 0) & 3) * 3), vehicle->peep_tshirt_colours[0], vehicle->peep_tshirt_colours[1]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
- if (vehicle->num_peeps > 2)
- {
- image_id = ImageId(
- baseImage_id + (((directionOffset + 1) & 3) * 3), vehicle->peep_tshirt_colours[2],
- vehicle->peep_tshirt_colours[3]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
- }
- if (vehicle->num_peeps > 4)
- {
- image_id = ImageId(
- baseImage_id + (((directionOffset + 2) & 3) * 3), vehicle->peep_tshirt_colours[4],
- vehicle->peep_tshirt_colours[5]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
- }
- if (vehicle->num_peeps > 6)
- {
- image_id = ImageId(
- baseImage_id + (((directionOffset + 3) & 3) * 3), vehicle->peep_tshirt_colours[6],
- vehicle->peep_tshirt_colours[7]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
- }
- }
-
- assert(carEntry->effect_visual == 1);
-}
-
/** rct2: 0x006FD1F8 */
static void PaintLaunchedFreefallBase(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
diff --git a/src/openrct2/ride/thrill/MagicCarpet.cpp b/src/openrct2/paint/track/thrill/MagicCarpet.cpp
similarity index 95%
rename from src/openrct2/ride/thrill/MagicCarpet.cpp
rename to src/openrct2/paint/track/thrill/MagicCarpet.cpp
index 50350b5c47..fa55ae6b2c 100644
--- a/src/openrct2/ride/thrill/MagicCarpet.cpp
+++ b/src/openrct2/paint/track/thrill/MagicCarpet.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../object/StationObject.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../object/StationObject.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/thrill/MotionSimulator.cpp b/src/openrct2/paint/track/thrill/MotionSimulator.cpp
similarity index 92%
rename from src/openrct2/ride/thrill/MotionSimulator.cpp
rename to src/openrct2/paint/track/thrill/MotionSimulator.cpp
index 2d39f846df..5106ec9b80 100644
--- a/src/openrct2/ride/thrill/MotionSimulator.cpp
+++ b/src/openrct2/paint/track/thrill/MotionSimulator.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/thrill/RotoDrop.cpp b/src/openrct2/paint/track/thrill/RotoDrop.cpp
similarity index 68%
rename from src/openrct2/ride/thrill/RotoDrop.cpp
rename to src/openrct2/paint/track/thrill/RotoDrop.cpp
index 77b5f3ccaf..efeb74f8db 100644
--- a/src/openrct2/ride/thrill/RotoDrop.cpp
+++ b/src/openrct2/paint/track/thrill/RotoDrop.cpp
@@ -7,17 +7,16 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../Ride.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include
#include
@@ -34,75 +33,6 @@ enum
SPR_ROTO_DROP_TOWER_BASE_SEGMENT_90_DEG = 14563,
};
-/**
- *
- * rct2: 0x006D5DA9
- */
-void VehicleVisualRotoDrop(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry)
-{
- imageDirection = OpenRCT2::Entity::Yaw::YawTo32(imageDirection);
-
- auto imageFlags = ImageId(0, vehicle->colours.Body, vehicle->colours.Trim);
- if (vehicle->IsGhost())
- {
- imageFlags = ConstructionMarker;
- }
-
- ImageId image_id;
- int32_t baseImage_id = (carEntry->base_image_id + 4) + ((vehicle->animation_frame / 4) & 0x3);
- if (vehicle->restraints_position >= 64)
- {
- baseImage_id += 7;
- baseImage_id += (vehicle->restraints_position / 64);
- }
-
- // Draw back:
- image_id = imageFlags.WithIndex(baseImage_id);
- PaintAddImageAsParent(session, image_id, { 0, 0, z }, { { -11, -11, z + 1 }, { 2, 2, 41 } });
-
- // Draw front:
- image_id = imageFlags.WithIndex(baseImage_id + 4);
- PaintAddImageAsParent(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
-
- if (vehicle->num_peeps > 0 && !vehicle->IsGhost())
- {
- uint8_t riding_peep_sprites[64];
- std::fill_n(riding_peep_sprites, sizeof(riding_peep_sprites), 0xFF);
- for (int32_t i = 0; i < vehicle->num_peeps; i++)
- {
- uint8_t cl = (i & 3) * 16;
- cl += (i & 0xFC);
- cl += vehicle->animation_frame / 4;
- cl += (imageDirection / 8) * 16;
- cl &= 0x3F;
- riding_peep_sprites[cl] = vehicle->peep_tshirt_colours[i];
- }
-
- // Draw riding peep sprites in back to front order:
- for (int32_t j = 0; j <= 48; j++)
- {
- int32_t i = (j % 2) ? (48 - (j / 2)) : (j / 2);
- if (riding_peep_sprites[i] != 0xFF)
- {
- baseImage_id = carEntry->base_image_id + 20 + i;
- if (vehicle->restraints_position >= 64)
- {
- baseImage_id += 64;
- baseImage_id += vehicle->restraints_position / 64;
- }
- image_id = ImageId(baseImage_id, riding_peep_sprites[i]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
- }
- }
- }
-
- assert(carEntry->effect_visual == 1);
- // Although called in original code, effect_visual (splash effects) are not used for many rides and does not make sense so
- // it was taken out
-}
-
/** rct2: 0x00886194 */
static void PaintRotoDropBase(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
diff --git a/src/openrct2/ride/thrill/SwingingInverterShip.cpp b/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp
similarity index 93%
rename from src/openrct2/ride/thrill/SwingingInverterShip.cpp
rename to src/openrct2/paint/track/thrill/SwingingInverterShip.cpp
index a5cf30bfcd..725bb11e13 100644
--- a/src/openrct2/ride/thrill/SwingingInverterShip.cpp
+++ b/src/openrct2/paint/track/thrill/SwingingInverterShip.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../object/StationObject.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../object/StationObject.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/thrill/SwingingShip.cpp b/src/openrct2/paint/track/thrill/SwingingShip.cpp
similarity index 96%
rename from src/openrct2/ride/thrill/SwingingShip.cpp
rename to src/openrct2/paint/track/thrill/SwingingShip.cpp
index fc445305b2..c552fa3c5a 100644
--- a/src/openrct2/ride/thrill/SwingingShip.cpp
+++ b/src/openrct2/paint/track/thrill/SwingingShip.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../object/StationObject.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../object/StationObject.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/thrill/TopSpin.cpp b/src/openrct2/paint/track/thrill/TopSpin.cpp
similarity index 95%
rename from src/openrct2/ride/thrill/TopSpin.cpp
rename to src/openrct2/paint/track/thrill/TopSpin.cpp
index c13b8ab0e3..a8115f532b 100644
--- a/src/openrct2/ride/thrill/TopSpin.cpp
+++ b/src/openrct2/paint/track/thrill/TopSpin.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/thrill/Twist.cpp b/src/openrct2/paint/track/thrill/Twist.cpp
similarity index 93%
rename from src/openrct2/ride/thrill/Twist.cpp
rename to src/openrct2/paint/track/thrill/Twist.cpp
index d8657c8cf0..962ad2b642 100644
--- a/src/openrct2/ride/thrill/Twist.cpp
+++ b/src/openrct2/paint/track/thrill/Twist.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../Ride.h"
-#include "../RideEntry.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideEntry.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/transport/Chairlift.cpp b/src/openrct2/paint/track/transport/Chairlift.cpp
similarity index 98%
rename from src/openrct2/ride/transport/Chairlift.cpp
rename to src/openrct2/paint/track/transport/Chairlift.cpp
index 1212d900f3..83500dd448 100644
--- a/src/openrct2/ride/transport/Chairlift.cpp
+++ b/src/openrct2/paint/track/transport/Chairlift.cpp
@@ -7,18 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../world/Map.h"
-#include "../Ride.h"
-#include "../RideData.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include
diff --git a/src/openrct2/ride/transport/Lift.cpp b/src/openrct2/paint/track/transport/Lift.cpp
similarity index 95%
rename from src/openrct2/ride/transport/Lift.cpp
rename to src/openrct2/paint/track/transport/Lift.cpp
index af5d693b21..7a7dee430d 100644
--- a/src/openrct2/ride/transport/Lift.cpp
+++ b/src/openrct2/paint/track/transport/Lift.cpp
@@ -7,14 +7,14 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/transport/MiniatureRailway.cpp b/src/openrct2/paint/track/transport/MiniatureRailway.cpp
similarity index 99%
rename from src/openrct2/ride/transport/MiniatureRailway.cpp
rename to src/openrct2/paint/track/transport/MiniatureRailway.cpp
index 3b85a006f4..20c00da3da 100644
--- a/src/openrct2/ride/transport/MiniatureRailway.cpp
+++ b/src/openrct2/paint/track/transport/MiniatureRailway.cpp
@@ -7,18 +7,17 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/transport/Monorail.cpp b/src/openrct2/paint/track/transport/Monorail.cpp
similarity index 99%
rename from src/openrct2/ride/transport/Monorail.cpp
rename to src/openrct2/paint/track/transport/Monorail.cpp
index 443ece0035..73df26cd9b 100644
--- a/src/openrct2/ride/transport/Monorail.cpp
+++ b/src/openrct2/paint/track/transport/Monorail.cpp
@@ -7,19 +7,18 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../object/StationObject.h"
-#include "../../paint/Boundbox.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../object/StationObject.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../world/Map.h"
+#include "../../Boundbox.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/transport/SuspendedMonorail.cpp b/src/openrct2/paint/track/transport/SuspendedMonorail.cpp
similarity index 99%
rename from src/openrct2/ride/transport/SuspendedMonorail.cpp
rename to src/openrct2/paint/track/transport/SuspendedMonorail.cpp
index 9433820ee3..5065b76f4c 100644
--- a/src/openrct2/ride/transport/SuspendedMonorail.cpp
+++ b/src/openrct2/paint/track/transport/SuspendedMonorail.cpp
@@ -7,19 +7,19 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../drawing/Drawing.h"
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Paint.TileElement.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../sprites.h"
-#include "../../world/Map.h"
-#include "../RideData.h"
-#include "../TrackData.h"
-#include "../TrackPaint.h"
+#include "../../../drawing/Drawing.h"
+#include "../../../entity/EntityRegistry.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/TrackData.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Paint.TileElement.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/water/BoatHire.cpp b/src/openrct2/paint/track/water/BoatHire.cpp
similarity index 96%
rename from src/openrct2/ride/water/BoatHire.cpp
rename to src/openrct2/paint/track/water/BoatHire.cpp
index 20a604d27c..4bfd45e875 100644
--- a/src/openrct2/ride/water/BoatHire.cpp
+++ b/src/openrct2/paint/track/water/BoatHire.cpp
@@ -8,14 +8,14 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../Ride.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Ride.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../Paint.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/water/DinghySlide.cpp b/src/openrct2/paint/track/water/DinghySlide.cpp
similarity index 99%
rename from src/openrct2/ride/water/DinghySlide.cpp
rename to src/openrct2/paint/track/water/DinghySlide.cpp
index fb1b1c74d4..ce08969fec 100644
--- a/src/openrct2/ride/water/DinghySlide.cpp
+++ b/src/openrct2/paint/track/water/DinghySlide.cpp
@@ -7,14 +7,14 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/water/DinghySlideCovered.cpp b/src/openrct2/paint/track/water/DinghySlideCovered.cpp
similarity index 99%
rename from src/openrct2/ride/water/DinghySlideCovered.cpp
rename to src/openrct2/paint/track/water/DinghySlideCovered.cpp
index a173f4d4d7..4f04a0086c 100644
--- a/src/openrct2/ride/water/DinghySlideCovered.cpp
+++ b/src/openrct2/paint/track/water/DinghySlideCovered.cpp
@@ -7,14 +7,14 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/water/LogFlume.cpp b/src/openrct2/paint/track/water/LogFlume.cpp
similarity index 99%
rename from src/openrct2/ride/water/LogFlume.cpp
rename to src/openrct2/paint/track/water/LogFlume.cpp
index d5ed7a3bd9..78f4a4c976 100644
--- a/src/openrct2/ride/water/LogFlume.cpp
+++ b/src/openrct2/paint/track/water/LogFlume.cpp
@@ -7,15 +7,15 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../sprites.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../sprites.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
diff --git a/src/openrct2/ride/water/RiverRapids.cpp b/src/openrct2/paint/track/water/RiverRapids.cpp
similarity index 89%
rename from src/openrct2/ride/water/RiverRapids.cpp
rename to src/openrct2/paint/track/water/RiverRapids.cpp
index e720b5e03e..982ee9b04a 100644
--- a/src/openrct2/ride/water/RiverRapids.cpp
+++ b/src/openrct2/paint/track/water/RiverRapids.cpp
@@ -7,35 +7,25 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../Game.h"
-#include "../../GameState.h"
-#include "../../config/Config.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../../scenario/Scenario.h"
-#include "../../world/Map.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
-#include "../VehiclePaint.h"
+#include "../../../Game.h"
+#include "../../../GameState.h"
+#include "../../../config/Config.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../../scenario/Scenario.h"
+#include "../../../world/Map.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
static constexpr WoodenSupportType kSupportType = WoodenSupportType::Truss;
-#ifndef NO_VEHICLES
-// 0x0099279E:
-static constexpr VehicleBoundBox _riverRapidsBoundbox[] = {
- { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 },
- { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 },
- { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 },
-};
-#endif
-
enum
{
SPR_RIVER_RAPIDS_FLAT_SW_NE = 21132,
@@ -180,101 +170,6 @@ static constexpr uint32_t river_rapids_track_pieces_25_deg_down_to_flat[][2] = {
{ SPR_RIVER_RAPIDS_25_DEG_DOWN_TO_FLAT_SE_NW, SPR_RIVER_RAPIDS_25_DEG_DOWN_TO_FLAT_FRONT_SE_NW },
};
-#ifndef NO_VEHICLES
-/**
- *
- * rct2: 0x006D5889
- */
-void VehicleVisualRiverRapids(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry)
-{
- imageDirection = OpenRCT2::Entity::Yaw::YawTo32(imageDirection);
-
- ImageId image_id;
- int32_t baseImage_id = imageDirection;
- uint32_t rotation = session.CurrentRotation;
- int32_t ecx = ((vehicle->spin_sprite / 8) + (rotation * 8)) & 31;
- int32_t j = 0;
- if (vehicle->Pitch == 0)
- {
- baseImage_id = ecx & 7;
- }
- else
- {
- if (vehicle->Pitch == 1 || vehicle->Pitch == 5)
- {
- if (vehicle->Pitch == 5)
- {
- baseImage_id = imageDirection ^ 16;
- }
- baseImage_id &= 24;
- j = (baseImage_id / 8) + 1;
- baseImage_id += (ecx & 7);
- baseImage_id += 8;
- }
- else if (vehicle->Pitch == 2 || vehicle->Pitch == 6)
- {
- if (vehicle->Pitch == 6)
- {
- baseImage_id = imageDirection ^ 16;
- }
- baseImage_id &= 24;
- j = (baseImage_id / 8) + 5;
- baseImage_id += (ecx & 7);
- baseImage_id += 40;
- }
- else
- {
- baseImage_id = ecx & 7;
- }
- }
- baseImage_id += carEntry->base_image_id;
-
- const auto& riverRapidsBb = _riverRapidsBoundbox[j];
- auto bb = BoundBoxXYZ{ { riverRapidsBb.offset_x, riverRapidsBb.offset_y, riverRapidsBb.offset_z + z },
- { riverRapidsBb.length_x, riverRapidsBb.length_y, riverRapidsBb.length_z } };
- image_id = ImageId(baseImage_id, vehicle->colours.Body, vehicle->colours.Trim);
- if (vehicle->IsGhost())
- {
- image_id = ConstructionMarker.WithIndex(image_id.GetIndex());
- }
- PaintAddImageAsParent(session, image_id, { 0, 0, z }, bb);
-
- if (session.DPI.zoom_level < ZoomLevel{ 2 } && vehicle->num_peeps > 0 && !vehicle->IsGhost())
- {
- // Draw peeps: (this particular vehicle doesn't sort them back to front like others so the back ones sometimes clip, but
- // that's how the original does it...)
- int32_t peeps = ((ecx / 8) + 0) & 3;
- image_id = ImageId(baseImage_id + ((peeps + 1) * 72), vehicle->peep_tshirt_colours[0], vehicle->peep_tshirt_colours[1]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
- if (vehicle->num_peeps > 2)
- {
- peeps = ((ecx / 8) + 2) & 3;
- image_id = ImageId(
- baseImage_id + ((peeps + 1) * 72), vehicle->peep_tshirt_colours[2], vehicle->peep_tshirt_colours[3]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
- }
- if (vehicle->num_peeps > 4)
- {
- peeps = ((ecx / 8) + 1) & 3;
- image_id = ImageId(
- baseImage_id + ((peeps + 1) * 72), vehicle->peep_tshirt_colours[4], vehicle->peep_tshirt_colours[5]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
- }
- if (vehicle->num_peeps > 6)
- {
- peeps = ((ecx / 8) + 3) & 3;
- image_id = ImageId(
- baseImage_id + ((peeps + 1) * 72), vehicle->peep_tshirt_colours[6], vehicle->peep_tshirt_colours[7]);
- PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
- }
- }
-
- VehicleVisualSplashEffect(session, z, vehicle, carEntry);
-}
-#endif
-
/** rct2: 0x00757650 */
static void PaintRiverRapidsTrackFlat(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
diff --git a/src/openrct2/ride/water/SplashBoats.cpp b/src/openrct2/paint/track/water/SplashBoats.cpp
similarity index 98%
rename from src/openrct2/ride/water/SplashBoats.cpp
rename to src/openrct2/paint/track/water/SplashBoats.cpp
index 2091cd67f6..aeb0a35404 100644
--- a/src/openrct2/ride/water/SplashBoats.cpp
+++ b/src/openrct2/paint/track/water/SplashBoats.cpp
@@ -7,17 +7,15 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../entity/EntityRegistry.h"
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/WoodenSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Paint.h"
+#include "../../support/WoodenSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
using namespace OpenRCT2;
@@ -1382,28 +1380,3 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionSplashBoats(int32_t trackType)
return nullptr;
}
-
-#ifndef NO_VEHICLES
-/**
- *
- * rct2: 0x006D4295
- */
-void VehicleVisualSplashBoatsOrWaterCoaster(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry)
-{
- auto* vehicleToPaint = vehicle->IsHead() ? GetEntity(vehicle->next_vehicle_on_ride)
- : GetEntity(vehicle->prev_vehicle_on_ride);
- if (vehicleToPaint == nullptr)
- {
- return;
- }
-
- session.CurrentlyDrawnEntity = vehicleToPaint;
- imageDirection = OpenRCT2::Entity::Yaw::Add(
- OpenRCT2::Entity::Yaw::YawFrom4(session.CurrentRotation), vehicleToPaint->Orientation);
- session.SpritePosition.x = vehicleToPaint->x;
- session.SpritePosition.y = vehicleToPaint->y;
- vehicleToPaint->Paint(session, imageDirection);
-}
-#endif
diff --git a/src/openrct2/ride/water/SubmarineRide.cpp b/src/openrct2/paint/track/water/SubmarineRide.cpp
similarity index 76%
rename from src/openrct2/ride/water/SubmarineRide.cpp
rename to src/openrct2/paint/track/water/SubmarineRide.cpp
index 8b78ca0c3d..dba8e178c5 100644
--- a/src/openrct2/ride/water/SubmarineRide.cpp
+++ b/src/openrct2/paint/track/water/SubmarineRide.cpp
@@ -7,17 +7,16 @@
* OpenRCT2 is licensed under the GNU General Public License version 3.
*****************************************************************************/
-#include "../../interface/Viewport.h"
-#include "../../paint/Paint.h"
-#include "../../paint/support/MetalSupports.h"
-#include "../../paint/tile_element/Segment.h"
-#include "../../paint/track/Segment.h"
-#include "../../paint/track/Support.h"
-#include "../RideData.h"
-#include "../Track.h"
-#include "../TrackPaint.h"
-#include "../Vehicle.h"
-#include "../VehiclePaint.h"
+#include "../../../interface/Viewport.h"
+#include "../../../ride/RideData.h"
+#include "../../../ride/Track.h"
+#include "../../../ride/TrackPaint.h"
+#include "../../../ride/Vehicle.h"
+#include "../../Paint.h"
+#include "../../support/MetalSupports.h"
+#include "../../tile_element/Segment.h"
+#include "../../track/Segment.h"
+#include "../../track/Support.h"
#include
@@ -25,54 +24,6 @@ using namespace OpenRCT2;
static constexpr MetalSupportType kSupportType = MetalSupportType::Stick;
-static uint32_t SubmarineVehicleGetBaseImageId(const Vehicle* vehicle, const CarEntry* carEntry, int32_t imageDirection)
-{
- uint32_t result = imageDirection;
- if (vehicle->restraints_position >= 64)
- {
- if ((carEntry->GroupEnabled(SpriteGroupType::RestraintAnimation)) && !(imageDirection & 3))
- {
- auto restraintFrame = ((vehicle->restraints_position - 64) / 64) * 4;
- result = (carEntry->SpriteByYaw(imageDirection, SpriteGroupType::RestraintAnimation) + restraintFrame)
- * carEntry->base_num_frames
- + carEntry->GroupImageId(SpriteGroupType::RestraintAnimation);
- }
- }
- else
- {
- result = (carEntry->SpriteByYaw(imageDirection, SpriteGroupType::SlopeFlat) * carEntry->base_num_frames)
- + carEntry->GroupImageId(SpriteGroupType::SlopeFlat) + vehicle->SwingSprite;
- }
- return result;
-}
-
-/**
- *
- * rct2: 0x006D44D5
- */
-void VehicleVisualSubmarine(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry)
-{
- auto baseImageId = SubmarineVehicleGetBaseImageId(vehicle, carEntry, imageDirection);
- auto imageId0 = ImageId(baseImageId + 0, vehicle->colours.Body, vehicle->colours.Trim, vehicle->colours.Tertiary);
- auto imageId1 = ImageId(baseImageId + 1, vehicle->colours.Body, vehicle->colours.Trim, vehicle->colours.Tertiary);
- if (vehicle->IsGhost())
- {
- imageId0 = ImageId(baseImageId + 0).WithRemap(FilterPaletteID::PaletteGhost);
- imageId1 = ImageId(baseImageId + 1).WithRemap(FilterPaletteID::PaletteGhost);
- }
-
- const auto& bb = VehicleBoundboxes[carEntry->draw_order][OpenRCT2::Entity::Yaw::YawTo16(imageDirection)];
- PaintAddImageAsParent(
- session, imageId0, { 0, 0, z },
- { { bb.offset_x, bb.offset_y, bb.offset_z + z }, { bb.length_x, bb.length_y, bb.length_z } });
- PaintAddImageAsParent(
- session, imageId1, { 0, 0, z },
- { { bb.offset_x, bb.offset_y, bb.offset_z + z - 10 }, { bb.length_x, bb.length_y, 2 } });
- assert(carEntry->effect_visual == 1);
-}
-
static void SubmarineRidePaintTrackStation(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
diff --git a/src/openrct2/paint/vehicle/Vehicle.LaunchedFreefall.cpp b/src/openrct2/paint/vehicle/Vehicle.LaunchedFreefall.cpp
new file mode 100644
index 0000000000..fdb07e80db
--- /dev/null
+++ b/src/openrct2/paint/vehicle/Vehicle.LaunchedFreefall.cpp
@@ -0,0 +1,81 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "../../ride/Vehicle.h"
+
+#include "../../ride/Ride.h"
+#include "../Paint.h"
+#include "VehiclePaint.h"
+
+#include
+
+namespace OpenRCT2
+{
+ /**
+ *
+ * rct2: 0x006D5FAB
+ */
+ void VehicleVisualLaunchedFreefall(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry)
+ {
+ auto imageFlags = ImageId(0, vehicle->colours.Body, vehicle->colours.Trim);
+ if (vehicle->IsGhost())
+ {
+ imageFlags = ConstructionMarker;
+ }
+
+ // Draw back:
+ int32_t baseImage_id = carEntry->base_image_id + ((vehicle->restraints_position / 64) * 2);
+ auto image_id = imageFlags.WithIndex(baseImage_id + 2);
+ PaintAddImageAsParent(session, image_id, { 0, 0, z }, { { -11, -11, z + 1 }, { 2, 2, 41 } });
+
+ // Draw front:
+ image_id = imageFlags.WithIndex(baseImage_id + 1);
+ PaintAddImageAsParent(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
+
+ // Draw peeps:
+ if (session.DPI.zoom_level < ZoomLevel{ 2 } && vehicle->num_peeps > 0 && !vehicle->IsGhost())
+ {
+ baseImage_id = carEntry->base_image_id + 9;
+ if ((vehicle->restraints_position / 64) == 3)
+ {
+ baseImage_id += 2; // Draw peeps sitting without transparent area between them for restraints
+ }
+ auto directionOffset = OpenRCT2::Entity::Yaw::YawTo4(imageDirection);
+ image_id = ImageId(
+ baseImage_id + (((directionOffset + 0) & 3) * 3), vehicle->peep_tshirt_colours[0],
+ vehicle->peep_tshirt_colours[1]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
+ if (vehicle->num_peeps > 2)
+ {
+ image_id = ImageId(
+ baseImage_id + (((directionOffset + 1) & 3) * 3), vehicle->peep_tshirt_colours[2],
+ vehicle->peep_tshirt_colours[3]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
+ }
+ if (vehicle->num_peeps > 4)
+ {
+ image_id = ImageId(
+ baseImage_id + (((directionOffset + 2) & 3) * 3), vehicle->peep_tshirt_colours[4],
+ vehicle->peep_tshirt_colours[5]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
+ }
+ if (vehicle->num_peeps > 6)
+ {
+ image_id = ImageId(
+ baseImage_id + (((directionOffset + 3) & 3) * 3), vehicle->peep_tshirt_colours[6],
+ vehicle->peep_tshirt_colours[7]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
+ }
+ }
+
+ assert(carEntry->effect_visual == 1);
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/paint/vehicle/Vehicle.MiniGolf.cpp b/src/openrct2/paint/vehicle/Vehicle.MiniGolf.cpp
new file mode 100644
index 0000000000..ba3f0951ad
--- /dev/null
+++ b/src/openrct2/paint/vehicle/Vehicle.MiniGolf.cpp
@@ -0,0 +1,159 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "Vehicle.MiniGolf.h"
+
+#include "../../entity/EntityRegistry.h"
+#include "../../entity/Guest.h"
+#include "../../ride/Ride.h"
+#include "../../ride/TrackPaint.h"
+#include "../../ride/Vehicle.h"
+#include "../Paint.h"
+#include "VehiclePaint.h"
+
+#include
+
+namespace OpenRCT2
+{
+ /** rct2: 0x00933471 */
+ // clang-format off
+ static constexpr uint8_t MiniGolfPeepAnimationFramesWalk[] = {
+ 0, 1, 2, 3, 4, 5,
+ };
+
+ /** rct2: 0x00933478 */
+ static constexpr uint8_t MiniGolfPeepAnimationFramesPlaceBallDownwards[] = {
+ 12, 13, 14, 15,
+ };
+
+ /** rct2: 0x009334B5 */
+ static constexpr uint8_t MiniGolfPeepAnimationFramesSwing[] = {
+ 31, 31, 31, 31, 31, 31, 31, 31, 31, 32, 33, 33, 33, 33, 34,
+ };
+
+ /** rct2: 0x0093347D */
+ static constexpr uint8_t MiniGolfPeepAnimationFramesSwingLeft[] = {
+ 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 8, 8, 8, 8, 9,
+ };
+
+ /** rct2: 0x0093348D */
+ static constexpr uint8_t MiniGolfPeepAnimationFramesPickupBall[] = {
+ 12, 13, 14, 15, 14, 13, 12,
+ };
+
+ /** rct2: 0x00933495 */
+ static constexpr uint8_t MiniGolfPeepAnimationFramesJump[] = {
+ 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
+ };
+
+ /** rct2: 0x009334A5 */
+ static constexpr uint8_t MiniGolfPeepAnimationFramesPlaceBallUpwards[] = {
+ 15, 14, 13, 12,
+ };
+
+ /** rct2: 0x009334C5 */
+ static constexpr uint8_t MiniGolfPeepAnimationFramesPutt[] = {
+ 35, 36, 36, 36, 36, 36, 35, 35, 35, 35,
+ };
+
+ /** rct2: 0x009334AA */
+ static constexpr uint8_t MiniGolfPeepAnimationFramesPuttLeft[] = {
+ 10, 11, 11, 11, 11, 11, 10, 10, 10, 10,
+ };
+
+ /** rct2: 0x008B8F74 */
+ static constexpr const uint8_t* MiniGolfPeepAnimationFrames[] = {
+ MiniGolfPeepAnimationFramesWalk,
+ MiniGolfPeepAnimationFramesPlaceBallDownwards,
+ MiniGolfPeepAnimationFramesSwingLeft,
+ MiniGolfPeepAnimationFramesPickupBall,
+ MiniGolfPeepAnimationFramesJump,
+ MiniGolfPeepAnimationFramesPlaceBallUpwards,
+ MiniGolfPeepAnimationFramesPuttLeft,
+ MiniGolfPeepAnimationFramesSwing,
+ MiniGolfPeepAnimationFramesPutt,
+ };
+
+ const size_t MiniGolfPeepAnimationLengths[] = {
+ std::size(MiniGolfPeepAnimationFramesWalk),
+ std::size(MiniGolfPeepAnimationFramesPlaceBallDownwards),
+ std::size(MiniGolfPeepAnimationFramesSwingLeft),
+ std::size(MiniGolfPeepAnimationFramesPickupBall),
+ std::size(MiniGolfPeepAnimationFramesJump),
+ std::size(MiniGolfPeepAnimationFramesPlaceBallUpwards),
+ std::size(MiniGolfPeepAnimationFramesPuttLeft),
+ std::size(MiniGolfPeepAnimationFramesSwing),
+ std::size(MiniGolfPeepAnimationFramesPutt),
+ };
+ // clang-format on
+
+ /**
+ * rct2: 0x006D42F0
+ */
+ void VehicleVisualMiniGolfPlayer(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle)
+ {
+ if (vehicle->num_peeps == 0)
+ {
+ return;
+ }
+
+ if (session.DPI.zoom_level >= ZoomLevel{ 2 })
+ {
+ return;
+ }
+
+ auto ride = vehicle->GetRide();
+ if (ride == nullptr)
+ return;
+
+ auto rideEntry = ride->GetRideEntry();
+ if (rideEntry == nullptr)
+ return;
+
+ auto* peep = GetEntity(vehicle->peep[0]);
+ if (peep == nullptr)
+ return;
+
+ uint8_t frame = MiniGolfPeepAnimationFrames[EnumValue(vehicle->mini_golf_current_animation)][vehicle->animation_frame];
+ uint32_t ebx = (frame << 2) + OpenRCT2::Entity::Yaw::YawTo4(imageDirection);
+
+ ImageIndex index = rideEntry->Cars[0].base_image_id + 1 + ebx;
+ auto image = ImageId(index, peep->TshirtColour, peep->TrousersColour);
+ PaintAddImageAsParent(session, image, { 0, 0, z }, { { 0, 0, z + 5 }, { 1, 1, 11 } });
+ }
+
+ /**
+ * rct2: 0x006D43C6
+ */
+ void VehicleVisualMiniGolfBall(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle)
+ {
+ if (vehicle->mini_golf_current_animation != MiniGolfAnimation::PlaceBallDown)
+ {
+ return;
+ }
+
+ if (session.DPI.zoom_level >= ZoomLevel{ 1 })
+ {
+ return;
+ }
+
+ auto ride = vehicle->GetRide();
+ if (ride == nullptr)
+ return;
+
+ auto rideEntry = ride->GetRideEntry();
+ if (rideEntry == nullptr)
+ return;
+
+ uint32_t image_id = rideEntry->Cars[0].base_image_id;
+ PaintAddImageAsParent(session, ImageId(image_id), { 0, 0, z }, { { 0, 0, z + 3 }, { 1, 1, 0 } });
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/ride/gentle/Maze.h b/src/openrct2/paint/vehicle/Vehicle.MiniGolf.h
similarity index 79%
rename from src/openrct2/ride/gentle/Maze.h
rename to src/openrct2/paint/vehicle/Vehicle.MiniGolf.h
index a5448314a8..cc47d63548 100644
--- a/src/openrct2/ride/gentle/Maze.h
+++ b/src/openrct2/paint/vehicle/Vehicle.MiniGolf.h
@@ -9,6 +9,9 @@
#pragma once
-#include "../RideData.h"
+#include
-money64 MazeCalculateCost(money64 constructionCost, const Ride& ride, const CoordsXYZ& loc);
+namespace OpenRCT2
+{
+ extern const size_t MiniGolfPeepAnimationLengths[];
+}
diff --git a/src/openrct2/paint/vehicle/Vehicle.ObservationTower.cpp b/src/openrct2/paint/vehicle/Vehicle.ObservationTower.cpp
new file mode 100644
index 0000000000..afa4b2fd39
--- /dev/null
+++ b/src/openrct2/paint/vehicle/Vehicle.ObservationTower.cpp
@@ -0,0 +1,73 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "../../ride/Vehicle.h"
+
+#include "../../ride/Ride.h"
+#include "../Paint.h"
+#include "VehiclePaint.h"
+
+#include
+
+namespace OpenRCT2
+{
+ static uint32_t GetObservationTowerVehicleBaseImageId(
+ const Vehicle* vehicle, const CarEntry* carEntry, int32_t imageDirection)
+ {
+ uint32_t result = (vehicle->restraints_position / 64);
+ if (vehicle->restraints_position >= 64)
+ {
+ auto directionOffset = imageDirection / 8;
+ if ((directionOffset == 0) || (directionOffset == 3))
+ {
+ result = carEntry->base_image_id + 8;
+ }
+ else
+ {
+ result *= 2;
+ result += carEntry->base_image_id;
+ if (directionOffset == 1)
+ {
+ result += 28;
+ }
+ else
+ {
+ result += 22;
+ }
+ }
+ }
+ else
+ {
+ result = (vehicle->animation_frame * 2) + carEntry->base_image_id + 8;
+ }
+ return result;
+ }
+
+ /**
+ *
+ * rct2: 0x006D6258
+ */
+ void VehicleVisualObservationTower(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry)
+ {
+ auto baseImageId = GetObservationTowerVehicleBaseImageId(vehicle, carEntry, imageDirection);
+ auto imageId0 = ImageId(baseImageId + 0, vehicle->colours.Body, vehicle->colours.Trim, vehicle->colours.Tertiary);
+ auto imageId1 = ImageId(baseImageId + 1, vehicle->colours.Body, vehicle->colours.Trim, vehicle->colours.Tertiary);
+ if (vehicle->IsGhost())
+ {
+ imageId0 = ImageId(baseImageId + 0).WithRemap(FilterPaletteID::PaletteGhost);
+ imageId1 = ImageId(baseImageId + 1).WithRemap(FilterPaletteID::PaletteGhost);
+ }
+
+ PaintAddImageAsParent(session, imageId0, { 0, 0, z }, { { -11, -11, z + 1 }, { 2, 2, 41 } });
+ PaintAddImageAsParent(session, imageId1, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
+ assert(carEntry->effect_visual == 1);
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/paint/vehicle/Vehicle.ReverserRollerCoaster.cpp b/src/openrct2/paint/vehicle/Vehicle.ReverserRollerCoaster.cpp
new file mode 100644
index 0000000000..209a97a6c2
--- /dev/null
+++ b/src/openrct2/paint/vehicle/Vehicle.ReverserRollerCoaster.cpp
@@ -0,0 +1,41 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "../../ride/Vehicle.h"
+
+#include "../../entity/EntityRegistry.h"
+#include "../Paint.h"
+#include "VehiclePaint.h"
+
+#include
+
+namespace OpenRCT2
+{
+ /**
+ *
+ * rct2: 0x006D4453
+ */
+ void VehicleVisualReverser(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry)
+ {
+ Vehicle* v1 = GetEntity(vehicle->prev_vehicle_on_ride);
+ Vehicle* v2 = GetEntity(vehicle->next_vehicle_on_ride);
+ if (v1 == nullptr || v2 == nullptr)
+ {
+ return;
+ }
+ x = (v1->x + v2->x) / 2;
+ y = (v1->y + v2->y) / 2;
+ z = (v1->z + v2->z) / 2;
+ session.SpritePosition.x = x;
+ session.SpritePosition.y = y;
+ VehicleVisualDefault(session, imageDirection, z, vehicle, carEntry);
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/paint/vehicle/Vehicle.RiverRapids.cpp b/src/openrct2/paint/vehicle/Vehicle.RiverRapids.cpp
new file mode 100644
index 0000000000..199583410b
--- /dev/null
+++ b/src/openrct2/paint/vehicle/Vehicle.RiverRapids.cpp
@@ -0,0 +1,120 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "../../ride/Vehicle.h"
+
+#include "../../ride/Ride.h"
+#include "../Paint.h"
+#include "VehiclePaint.h"
+
+#include
+
+namespace OpenRCT2
+{
+ // 0x0099279E:
+ static constexpr VehicleBoundBox _riverRapidsBoundbox[] = {
+ { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 },
+ { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 },
+ { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 }, { -13, -13, 1, 26, 26, 13 },
+ };
+
+ /**
+ *
+ * rct2: 0x006D5889
+ */
+ void VehicleVisualRiverRapids(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry)
+ {
+ imageDirection = OpenRCT2::Entity::Yaw::YawTo32(imageDirection);
+
+ ImageId image_id;
+ int32_t baseImage_id = imageDirection;
+ uint32_t rotation = session.CurrentRotation;
+ int32_t ecx = ((vehicle->spin_sprite / 8) + (rotation * 8)) & 31;
+ int32_t j = 0;
+ if (vehicle->Pitch == 0)
+ {
+ baseImage_id = ecx & 7;
+ }
+ else
+ {
+ if (vehicle->Pitch == 1 || vehicle->Pitch == 5)
+ {
+ if (vehicle->Pitch == 5)
+ {
+ baseImage_id = imageDirection ^ 16;
+ }
+ baseImage_id &= 24;
+ j = (baseImage_id / 8) + 1;
+ baseImage_id += (ecx & 7);
+ baseImage_id += 8;
+ }
+ else if (vehicle->Pitch == 2 || vehicle->Pitch == 6)
+ {
+ if (vehicle->Pitch == 6)
+ {
+ baseImage_id = imageDirection ^ 16;
+ }
+ baseImage_id &= 24;
+ j = (baseImage_id / 8) + 5;
+ baseImage_id += (ecx & 7);
+ baseImage_id += 40;
+ }
+ else
+ {
+ baseImage_id = ecx & 7;
+ }
+ }
+ baseImage_id += carEntry->base_image_id;
+
+ const auto& riverRapidsBb = _riverRapidsBoundbox[j];
+ auto bb = BoundBoxXYZ{ { riverRapidsBb.offset_x, riverRapidsBb.offset_y, riverRapidsBb.offset_z + z },
+ { riverRapidsBb.length_x, riverRapidsBb.length_y, riverRapidsBb.length_z } };
+ image_id = ImageId(baseImage_id, vehicle->colours.Body, vehicle->colours.Trim);
+ if (vehicle->IsGhost())
+ {
+ image_id = ConstructionMarker.WithIndex(image_id.GetIndex());
+ }
+ PaintAddImageAsParent(session, image_id, { 0, 0, z }, bb);
+
+ if (session.DPI.zoom_level < ZoomLevel{ 2 } && vehicle->num_peeps > 0 && !vehicle->IsGhost())
+ {
+ // Draw peeps: (this particular vehicle doesn't sort them back to front like others so the back ones sometimes clip,
+ // but that's how the original does it...)
+ int32_t peeps = ((ecx / 8) + 0) & 3;
+ image_id = ImageId(
+ baseImage_id + ((peeps + 1) * 72), vehicle->peep_tshirt_colours[0], vehicle->peep_tshirt_colours[1]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
+ if (vehicle->num_peeps > 2)
+ {
+ peeps = ((ecx / 8) + 2) & 3;
+ image_id = ImageId(
+ baseImage_id + ((peeps + 1) * 72), vehicle->peep_tshirt_colours[2], vehicle->peep_tshirt_colours[3]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
+ }
+ if (vehicle->num_peeps > 4)
+ {
+ peeps = ((ecx / 8) + 1) & 3;
+ image_id = ImageId(
+ baseImage_id + ((peeps + 1) * 72), vehicle->peep_tshirt_colours[4], vehicle->peep_tshirt_colours[5]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
+ }
+ if (vehicle->num_peeps > 6)
+ {
+ peeps = ((ecx / 8) + 3) & 3;
+ image_id = ImageId(
+ baseImage_id + ((peeps + 1) * 72), vehicle->peep_tshirt_colours[6], vehicle->peep_tshirt_colours[7]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
+ }
+ }
+
+ VehicleVisualSplashEffect(session, z, vehicle, carEntry);
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/paint/vehicle/Vehicle.RotoDrop.cpp b/src/openrct2/paint/vehicle/Vehicle.RotoDrop.cpp
new file mode 100644
index 0000000000..84da386bb6
--- /dev/null
+++ b/src/openrct2/paint/vehicle/Vehicle.RotoDrop.cpp
@@ -0,0 +1,88 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "../../ride/Vehicle.h"
+
+#include "../../ride/Ride.h"
+#include "../Paint.h"
+#include "VehiclePaint.h"
+
+#include
+
+namespace OpenRCT2
+{
+ /**
+ *
+ * rct2: 0x006D5DA9
+ */
+ void VehicleVisualRotoDrop(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry)
+ {
+ imageDirection = OpenRCT2::Entity::Yaw::YawTo32(imageDirection);
+
+ auto imageFlags = ImageId(0, vehicle->colours.Body, vehicle->colours.Trim);
+ if (vehicle->IsGhost())
+ {
+ imageFlags = ConstructionMarker;
+ }
+
+ ImageId image_id;
+ int32_t baseImage_id = (carEntry->base_image_id + 4) + ((vehicle->animation_frame / 4) & 0x3);
+ if (vehicle->restraints_position >= 64)
+ {
+ baseImage_id += 7;
+ baseImage_id += (vehicle->restraints_position / 64);
+ }
+
+ // Draw back:
+ image_id = imageFlags.WithIndex(baseImage_id);
+ PaintAddImageAsParent(session, image_id, { 0, 0, z }, { { -11, -11, z + 1 }, { 2, 2, 41 } });
+
+ // Draw front:
+ image_id = imageFlags.WithIndex(baseImage_id + 4);
+ PaintAddImageAsParent(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
+
+ if (vehicle->num_peeps > 0 && !vehicle->IsGhost())
+ {
+ uint8_t riding_peep_sprites[64];
+ std::fill_n(riding_peep_sprites, sizeof(riding_peep_sprites), 0xFF);
+ for (int32_t i = 0; i < vehicle->num_peeps; i++)
+ {
+ uint8_t cl = (i & 3) * 16;
+ cl += (i & 0xFC);
+ cl += vehicle->animation_frame / 4;
+ cl += (imageDirection / 8) * 16;
+ cl &= 0x3F;
+ riding_peep_sprites[cl] = vehicle->peep_tshirt_colours[i];
+ }
+
+ // Draw riding peep sprites in back to front order:
+ for (int32_t j = 0; j <= 48; j++)
+ {
+ int32_t i = (j % 2) ? (48 - (j / 2)) : (j / 2);
+ if (riding_peep_sprites[i] != 0xFF)
+ {
+ baseImage_id = carEntry->base_image_id + 20 + i;
+ if (vehicle->restraints_position >= 64)
+ {
+ baseImage_id += 64;
+ baseImage_id += vehicle->restraints_position / 64;
+ }
+ image_id = ImageId(baseImage_id, riding_peep_sprites[i]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, { { -5, -5, z + 1 }, { 16, 16, 41 } });
+ }
+ }
+ }
+
+ assert(carEntry->effect_visual == 1);
+ // Although called in original code, effect_visual (splash effects) are not used for many rides and does not make sense
+ // so it was taken out
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/paint/vehicle/Vehicle.SplashBoats.cpp b/src/openrct2/paint/vehicle/Vehicle.SplashBoats.cpp
new file mode 100644
index 0000000000..70e5a5ae3a
--- /dev/null
+++ b/src/openrct2/paint/vehicle/Vehicle.SplashBoats.cpp
@@ -0,0 +1,43 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "../../ride/Vehicle.h"
+
+#include "../../entity/EntityRegistry.h"
+#include "../../ride/Ride.h"
+#include "../Paint.h"
+#include "VehiclePaint.h"
+
+#include
+
+namespace OpenRCT2
+{
+ /**
+ *
+ * rct2: 0x006D4295
+ */
+ void VehicleVisualSplashBoatsOrWaterCoaster(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry)
+ {
+ auto* vehicleToPaint = vehicle->IsHead() ? GetEntity(vehicle->next_vehicle_on_ride)
+ : GetEntity(vehicle->prev_vehicle_on_ride);
+ if (vehicleToPaint == nullptr)
+ {
+ return;
+ }
+
+ session.CurrentlyDrawnEntity = vehicleToPaint;
+ imageDirection = OpenRCT2::Entity::Yaw::Add(
+ OpenRCT2::Entity::Yaw::YawFrom4(session.CurrentRotation), vehicleToPaint->Orientation);
+ session.SpritePosition.x = vehicleToPaint->x;
+ session.SpritePosition.y = vehicleToPaint->y;
+ vehicleToPaint->Paint(session, imageDirection);
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/paint/vehicle/Vehicle.Submarine.cpp b/src/openrct2/paint/vehicle/Vehicle.Submarine.cpp
new file mode 100644
index 0000000000..8f5243b27d
--- /dev/null
+++ b/src/openrct2/paint/vehicle/Vehicle.Submarine.cpp
@@ -0,0 +1,67 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "../../ride/Vehicle.h"
+
+#include "../../ride/Ride.h"
+#include "../Paint.h"
+#include "VehiclePaint.h"
+
+#include
+
+namespace OpenRCT2
+{
+ static uint32_t SubmarineVehicleGetBaseImageId(const Vehicle* vehicle, const CarEntry* carEntry, int32_t imageDirection)
+ {
+ uint32_t result = imageDirection;
+ if (vehicle->restraints_position >= 64)
+ {
+ if ((carEntry->GroupEnabled(SpriteGroupType::RestraintAnimation)) && !(imageDirection & 3))
+ {
+ auto restraintFrame = ((vehicle->restraints_position - 64) / 64) * 4;
+ result = (carEntry->SpriteByYaw(imageDirection, SpriteGroupType::RestraintAnimation) + restraintFrame)
+ * carEntry->base_num_frames
+ + carEntry->GroupImageId(SpriteGroupType::RestraintAnimation);
+ }
+ }
+ else
+ {
+ result = (carEntry->SpriteByYaw(imageDirection, SpriteGroupType::SlopeFlat) * carEntry->base_num_frames)
+ + carEntry->GroupImageId(SpriteGroupType::SlopeFlat) + vehicle->SwingSprite;
+ }
+ return result;
+ }
+
+ /**
+ *
+ * rct2: 0x006D44D5
+ */
+ void VehicleVisualSubmarine(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry)
+ {
+ auto baseImageId = SubmarineVehicleGetBaseImageId(vehicle, carEntry, imageDirection);
+ auto imageId0 = ImageId(baseImageId + 0, vehicle->colours.Body, vehicle->colours.Trim, vehicle->colours.Tertiary);
+ auto imageId1 = ImageId(baseImageId + 1, vehicle->colours.Body, vehicle->colours.Trim, vehicle->colours.Tertiary);
+ if (vehicle->IsGhost())
+ {
+ imageId0 = ImageId(baseImageId + 0).WithRemap(FilterPaletteID::PaletteGhost);
+ imageId1 = ImageId(baseImageId + 1).WithRemap(FilterPaletteID::PaletteGhost);
+ }
+
+ const auto& bb = VehicleBoundboxes[carEntry->draw_order][OpenRCT2::Entity::Yaw::YawTo16(imageDirection)];
+ PaintAddImageAsParent(
+ session, imageId0, { 0, 0, z },
+ { { bb.offset_x, bb.offset_y, bb.offset_z + z }, { bb.length_x, bb.length_y, bb.length_z } });
+ PaintAddImageAsParent(
+ session, imageId1, { 0, 0, z },
+ { { bb.offset_x, bb.offset_y, bb.offset_z + z - 10 }, { bb.length_x, bb.length_y, 2 } });
+ assert(carEntry->effect_visual == 1);
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/paint/vehicle/Vehicle.VirginaReel.cpp b/src/openrct2/paint/vehicle/Vehicle.VirginaReel.cpp
new file mode 100644
index 0000000000..73b101d1c7
--- /dev/null
+++ b/src/openrct2/paint/vehicle/Vehicle.VirginaReel.cpp
@@ -0,0 +1,86 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "../../ride/Vehicle.h"
+
+#include "../Boundbox.h"
+#include "../Paint.h"
+#include "VehiclePaint.h"
+
+#include
+
+namespace OpenRCT2
+{
+ // 0x009927E6:
+ static constexpr VehicleBoundBox _virginiaReelBoundbox[] = {
+ { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 },
+ { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 },
+ { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 }, { -11, -11, 1, 22, 22, 13 },
+ };
+
+ /**
+ *
+ * rct2: 0x006D5B48
+ */
+ void VehicleVisualVirginiaReel(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry)
+ {
+ imageDirection = OpenRCT2::Entity::Yaw::YawTo32(imageDirection);
+ const uint8_t rotation = session.CurrentRotation;
+ int32_t ecx = ((vehicle->spin_sprite / 8) + (rotation * 8)) & 31;
+ int32_t baseImage_id = [&] {
+ switch (vehicle->Pitch)
+ {
+ case 1:
+ return (imageDirection & 24) + 8;
+ case 2:
+ return (imageDirection & 24) + 40;
+ case 5:
+ return ((imageDirection ^ 16) & 24) + 8;
+ case 6:
+ return ((imageDirection ^ 16) & 24) + 40;
+ default:
+ return 0;
+ }
+ }();
+ baseImage_id += ecx & 7;
+ const auto& vehicleBb = _virginiaReelBoundbox[baseImage_id >> 3];
+ auto bb = BoundBoxXYZ{ { vehicleBb.offset_x, vehicleBb.offset_y, vehicleBb.offset_z + z },
+ { vehicleBb.length_x, vehicleBb.length_y, vehicleBb.length_z } };
+
+ baseImage_id += carEntry->base_image_id;
+ auto image_id = ImageId(baseImage_id, vehicle->colours.Body, vehicle->colours.Trim);
+ if (vehicle->IsGhost())
+ {
+ image_id = ConstructionMarker.WithIndex(image_id.GetIndex());
+ }
+ PaintAddImageAsParent(session, image_id, { 0, 0, z }, bb);
+
+ if (session.DPI.zoom_level < ZoomLevel{ 2 } && vehicle->num_peeps > 0 && !vehicle->IsGhost())
+ {
+ uint8_t riding_peep_sprites[4] = { 0xFF, 0xFF, 0xFF, 0xFF };
+ for (int32_t i = 0; i < vehicle->num_peeps; i++)
+ {
+ riding_peep_sprites[((ecx / 8) + i) & 3] = vehicle->peep_tshirt_colours[i];
+ }
+ int32_t draw_order[4] = { 0, 1, 3, 2 };
+ for (auto i : draw_order)
+ {
+ if (riding_peep_sprites[i] != 0xFF)
+ {
+ image_id = ImageId(baseImage_id + ((i + 1) * 72), riding_peep_sprites[i]);
+ PaintAddImageAsChild(session, image_id, { 0, 0, z }, bb);
+ }
+ }
+ }
+
+ assert(carEntry->effect_visual == 1);
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/ride/VehiclePaint.cpp b/src/openrct2/paint/vehicle/VehiclePaint.cpp
similarity index 99%
rename from src/openrct2/ride/VehiclePaint.cpp
rename to src/openrct2/paint/vehicle/VehiclePaint.cpp
index 5381af79ca..096c24dc55 100644
--- a/src/openrct2/ride/VehiclePaint.cpp
+++ b/src/openrct2/paint/vehicle/VehiclePaint.cpp
@@ -9,19 +9,19 @@
#include "VehiclePaint.h"
-#include "../Game.h"
-#include "../GameState.h"
-#include "../core/Speed.hpp"
-#include "../drawing/Drawing.h"
-#include "../drawing/LightFX.h"
-#include "../entity/EntityRegistry.h"
-#include "../entity/Yaw.hpp"
-#include "../interface/Viewport.h"
-#include "../paint/Paint.h"
-#include "../ride/CarEntry.h"
-#include "../ride/RideData.h"
-#include "../ride/Vehicle.h"
-#include "Track.h"
+#include "../../Game.h"
+#include "../../GameState.h"
+#include "../../core/Speed.hpp"
+#include "../../drawing/Drawing.h"
+#include "../../drawing/LightFX.h"
+#include "../../entity/EntityRegistry.h"
+#include "../../entity/Yaw.hpp"
+#include "../../interface/Viewport.h"
+#include "../../ride/CarEntry.h"
+#include "../../ride/RideData.h"
+#include "../../ride/Track.h"
+#include "../../ride/Vehicle.h"
+#include "../Paint.h"
#include
diff --git a/src/openrct2/paint/vehicle/VehiclePaint.h b/src/openrct2/paint/vehicle/VehiclePaint.h
new file mode 100644
index 0000000000..b5bb90206f
--- /dev/null
+++ b/src/openrct2/paint/vehicle/VehiclePaint.h
@@ -0,0 +1,64 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#pragma once
+
+#include
+
+struct PaintSession;
+struct CarEntry;
+struct Vehicle;
+
+struct VehicleBoundBox
+{
+ int8_t offset_x;
+ int8_t offset_y;
+ int8_t offset_z;
+ uint8_t length_x;
+ uint8_t length_y;
+ uint8_t length_z;
+};
+
+extern const VehicleBoundBox VehicleBoundboxes[16][224];
+
+void VehicleVisualDefault(
+ PaintSession& session, int32_t imageDirection, int32_t z, const Vehicle* vehicle, const CarEntry* carEntry);
+void VehicleVisualSplashEffect(PaintSession& session, int32_t z, const Vehicle* vehicle, const CarEntry* carEntry);
+
+namespace OpenRCT2
+{
+ void VehicleVisualRotoDrop(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry);
+ void VehicleVisualObservationTower(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry);
+ void VehicleVisualRiverRapids(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry);
+ void VehicleVisualReverser(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry);
+ void VehicleVisualSplashBoatsOrWaterCoaster(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry);
+ void VehicleVisualLaunchedFreefall(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry);
+ void VehicleVisualVirginiaReel(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry);
+ void VehicleVisualSubmarine(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
+ const CarEntry* carEntry);
+ void VehicleVisualMiniGolfPlayer(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle);
+ void VehicleVisualMiniGolfBall(
+ PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle);
+} // namespace OpenRCT2
diff --git a/src/openrct2/ride/MazeCost.cpp b/src/openrct2/ride/MazeCost.cpp
new file mode 100644
index 0000000000..0acdbebbf1
--- /dev/null
+++ b/src/openrct2/ride/MazeCost.cpp
@@ -0,0 +1,33 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#include "MazeCost.h"
+
+#include "../core/Money.hpp"
+#include "../world/Location.hpp"
+#include "Ride.h"
+#include "RideData.h"
+#include "TrackData.h"
+
+using namespace OpenRCT2::TrackMetaData;
+
+namespace OpenRCT2
+{
+ money64 MazeCalculateCost(money64 constructionCost, const Ride& ride, const CoordsXYZ& loc)
+ {
+ const auto& ted = GetTrackElementDescriptor(TrackElemType::Maze);
+ money64 price = (ride.GetRideTypeDescriptor().BuildCosts.TrackPrice * ted.PriceModifier) >> 16;
+
+ auto surfaceElement = MapGetSurfaceElementAt(loc);
+ auto heightDifference = (loc.z - surfaceElement->GetBaseZ()) / kCoordsZPerTinyZ;
+ money64 supportCost = heightDifference * ride.GetRideTypeDescriptor().BuildCosts.SupportPrice;
+
+ return constructionCost + price + supportCost;
+ }
+} // namespace OpenRCT2
diff --git a/src/openrct2/ride/MazeCost.h b/src/openrct2/ride/MazeCost.h
new file mode 100644
index 0000000000..2a58398be3
--- /dev/null
+++ b/src/openrct2/ride/MazeCost.h
@@ -0,0 +1,19 @@
+/*****************************************************************************
+ * Copyright (c) 2014-2024 OpenRCT2 developers
+ *
+ * For a complete list of all authors, please refer to contributors.md
+ * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
+ *
+ * OpenRCT2 is licensed under the GNU General Public License version 3.
+ *****************************************************************************/
+
+#pragma once
+
+#include "../core/Money.hpp"
+#include "../world/Location.hpp"
+#include "Ride.h"
+
+namespace OpenRCT2
+{
+ money64 MazeCalculateCost(money64 constructionCost, const Ride& ride, const CoordsXYZ& loc);
+}
diff --git a/src/openrct2/ride/RideData.cpp b/src/openrct2/ride/RideData.cpp
index afbba8466c..745a039f70 100644
--- a/src/openrct2/ride/RideData.cpp
+++ b/src/openrct2/ride/RideData.cpp
@@ -30,95 +30,95 @@
#include "ShopItem.h"
#include "Track.h"
#include "Vehicle.h"
-#include "coaster/meta/AirPoweredVerticalCoaster.h"
-#include "coaster/meta/AlpineCoaster.h"
-#include "coaster/meta/BobsleighCoaster.h"
-#include "coaster/meta/ClassicMiniRollerCoaster.h"
-#include "coaster/meta/ClassicStandUpRollerCoaster.h"
-#include "coaster/meta/ClassicWoodenRollerCoaster.h"
-#include "coaster/meta/CompactInvertedCoaster.h"
-#include "coaster/meta/CorkscrewRollerCoaster.h"
-#include "coaster/meta/FlyingRollerCoaster.h"
-#include "coaster/meta/GigaCoaster.h"
-#include "coaster/meta/HeartlineTwisterCoaster.h"
-#include "coaster/meta/HybridCoaster.h"
-#include "coaster/meta/HyperTwister.h"
-#include "coaster/meta/Hypercoaster.h"
-#include "coaster/meta/InvertedHairpinCoaster.h"
-#include "coaster/meta/InvertedImpulseCoaster.h"
-#include "coaster/meta/InvertedRollerCoaster.h"
-#include "coaster/meta/JuniorRollerCoaster.h"
-#include "coaster/meta/LIMLaunchedRollerCoaster.h"
-#include "coaster/meta/LayDownRollerCoaster.h"
-#include "coaster/meta/LoopingRollerCoaster.h"
-#include "coaster/meta/MineRide.h"
-#include "coaster/meta/MineTrainCoaster.h"
-#include "coaster/meta/MiniRollerCoaster.h"
-#include "coaster/meta/MiniSuspendedCoaster.h"
-#include "coaster/meta/MultiDimensionRollerCoaster.h"
-#include "coaster/meta/ReverseFreefallCoaster.h"
-#include "coaster/meta/ReverserRollerCoaster.h"
-#include "coaster/meta/SideFrictionRollerCoaster.h"
-#include "coaster/meta/SingleRailRollerCoaster.h"
-#include "coaster/meta/SpinningWildMouse.h"
-#include "coaster/meta/SpiralRollerCoaster.h"
-#include "coaster/meta/StandUpRollerCoaster.h"
-#include "coaster/meta/SteelWildMouse.h"
-#include "coaster/meta/Steeplechase.h"
-#include "coaster/meta/SuspendedSwingingCoaster.h"
-#include "coaster/meta/TwisterRollerCoaster.h"
-#include "coaster/meta/VerticalDropCoaster.h"
-#include "coaster/meta/VirginiaReel.h"
-#include "coaster/meta/WaterCoaster.h"
-#include "coaster/meta/WoodenRollerCoaster.h"
-#include "coaster/meta/WoodenWildMouse.h"
-#include "gentle/meta/CarRide.h"
-#include "gentle/meta/Circus.h"
-#include "gentle/meta/CrookedHouse.h"
-#include "gentle/meta/Dodgems.h"
-#include "gentle/meta/FerrisWheel.h"
-#include "gentle/meta/FlyingSaucers.h"
-#include "gentle/meta/GhostTrain.h"
-#include "gentle/meta/HauntedHouse.h"
-#include "gentle/meta/Maze.h"
-#include "gentle/meta/MerryGoRound.h"
-#include "gentle/meta/MiniGolf.h"
-#include "gentle/meta/MiniHelicopters.h"
-#include "gentle/meta/MonorailCycles.h"
-#include "gentle/meta/MonsterTrucks.h"
-#include "gentle/meta/ObservationTower.h"
-#include "gentle/meta/SpaceRings.h"
-#include "gentle/meta/SpiralSlide.h"
-#include "shops/meta/CashMachine.h"
-#include "shops/meta/DrinkStall.h"
-#include "shops/meta/FirstAid.h"
-#include "shops/meta/FoodStall.h"
-#include "shops/meta/InformationKiosk.h"
-#include "shops/meta/Shop.h"
-#include "shops/meta/Toilets.h"
-#include "thrill/meta/3DCinema.h"
-#include "thrill/meta/Enterprise.h"
-#include "thrill/meta/GoKarts.h"
-#include "thrill/meta/LaunchedFreefall.h"
-#include "thrill/meta/MagicCarpet.h"
-#include "thrill/meta/MotionSimulator.h"
-#include "thrill/meta/RotoDrop.h"
-#include "thrill/meta/SwingingInverterShip.h"
-#include "thrill/meta/SwingingShip.h"
-#include "thrill/meta/TopSpin.h"
-#include "thrill/meta/Twist.h"
-#include "transport/meta/Chairlift.h"
-#include "transport/meta/Lift.h"
-#include "transport/meta/MiniatureRailway.h"
-#include "transport/meta/Monorail.h"
-#include "transport/meta/SuspendedMonorail.h"
-#include "water/meta/BoatHire.h"
-#include "water/meta/DinghySlide.h"
-#include "water/meta/LogFlume.h"
-#include "water/meta/RiverRafts.h"
-#include "water/meta/RiverRapids.h"
-#include "water/meta/SplashBoats.h"
-#include "water/meta/SubmarineRide.h"
+#include "rtd/coaster/AirPoweredVerticalCoaster.h"
+#include "rtd/coaster/AlpineCoaster.h"
+#include "rtd/coaster/BobsleighCoaster.h"
+#include "rtd/coaster/ClassicMiniRollerCoaster.h"
+#include "rtd/coaster/ClassicStandUpRollerCoaster.h"
+#include "rtd/coaster/ClassicWoodenRollerCoaster.h"
+#include "rtd/coaster/CompactInvertedCoaster.h"
+#include "rtd/coaster/CorkscrewRollerCoaster.h"
+#include "rtd/coaster/FlyingRollerCoaster.h"
+#include "rtd/coaster/GigaCoaster.h"
+#include "rtd/coaster/HeartlineTwisterCoaster.h"
+#include "rtd/coaster/HybridCoaster.h"
+#include "rtd/coaster/HyperTwister.h"
+#include "rtd/coaster/Hypercoaster.h"
+#include "rtd/coaster/InvertedHairpinCoaster.h"
+#include "rtd/coaster/InvertedImpulseCoaster.h"
+#include "rtd/coaster/InvertedRollerCoaster.h"
+#include "rtd/coaster/JuniorRollerCoaster.h"
+#include "rtd/coaster/LIMLaunchedRollerCoaster.h"
+#include "rtd/coaster/LayDownRollerCoaster.h"
+#include "rtd/coaster/LoopingRollerCoaster.h"
+#include "rtd/coaster/MineRide.h"
+#include "rtd/coaster/MineTrainCoaster.h"
+#include "rtd/coaster/MiniRollerCoaster.h"
+#include "rtd/coaster/MiniSuspendedCoaster.h"
+#include "rtd/coaster/MultiDimensionRollerCoaster.h"
+#include "rtd/coaster/ReverseFreefallCoaster.h"
+#include "rtd/coaster/ReverserRollerCoaster.h"
+#include "rtd/coaster/SideFrictionRollerCoaster.h"
+#include "rtd/coaster/SingleRailRollerCoaster.h"
+#include "rtd/coaster/SpinningWildMouse.h"
+#include "rtd/coaster/SpiralRollerCoaster.h"
+#include "rtd/coaster/StandUpRollerCoaster.h"
+#include "rtd/coaster/SteelWildMouse.h"
+#include "rtd/coaster/Steeplechase.h"
+#include "rtd/coaster/SuspendedSwingingCoaster.h"
+#include "rtd/coaster/TwisterRollerCoaster.h"
+#include "rtd/coaster/VerticalDropCoaster.h"
+#include "rtd/coaster/VirginiaReel.h"
+#include "rtd/coaster/WaterCoaster.h"
+#include "rtd/coaster/WoodenRollerCoaster.h"
+#include "rtd/coaster/WoodenWildMouse.h"
+#include "rtd/gentle/CarRide.h"
+#include "rtd/gentle/Circus.h"
+#include "rtd/gentle/CrookedHouse.h"
+#include "rtd/gentle/Dodgems.h"
+#include "rtd/gentle/FerrisWheel.h"
+#include "rtd/gentle/FlyingSaucers.h"
+#include "rtd/gentle/GhostTrain.h"
+#include "rtd/gentle/HauntedHouse.h"
+#include "rtd/gentle/Maze.h"
+#include "rtd/gentle/MerryGoRound.h"
+#include "rtd/gentle/MiniGolf.h"
+#include "rtd/gentle/MiniHelicopters.h"
+#include "rtd/gentle/MonorailCycles.h"
+#include "rtd/gentle/MonsterTrucks.h"
+#include "rtd/gentle/ObservationTower.h"
+#include "rtd/gentle/SpaceRings.h"
+#include "rtd/gentle/SpiralSlide.h"
+#include "rtd/shops/CashMachine.h"
+#include "rtd/shops/DrinkStall.h"
+#include "rtd/shops/FirstAid.h"
+#include "rtd/shops/FoodStall.h"
+#include "rtd/shops/InformationKiosk.h"
+#include "rtd/shops/Shop.h"
+#include "rtd/shops/Toilets.h"
+#include "rtd/thrill/3DCinema.h"
+#include "rtd/thrill/Enterprise.h"
+#include "rtd/thrill/GoKarts.h"
+#include "rtd/thrill/LaunchedFreefall.h"
+#include "rtd/thrill/MagicCarpet.h"
+#include "rtd/thrill/MotionSimulator.h"
+#include "rtd/thrill/RotoDrop.h"
+#include "rtd/thrill/SwingingInverterShip.h"
+#include "rtd/thrill/SwingingShip.h"
+#include "rtd/thrill/TopSpin.h"
+#include "rtd/thrill/Twist.h"
+#include "rtd/transport/Chairlift.h"
+#include "rtd/transport/Lift.h"
+#include "rtd/transport/MiniatureRailway.h"
+#include "rtd/transport/Monorail.h"
+#include "rtd/transport/SuspendedMonorail.h"
+#include "rtd/water/BoatHire.h"
+#include "rtd/water/DinghySlide.h"
+#include "rtd/water/LogFlume.h"
+#include "rtd/water/RiverRafts.h"
+#include "rtd/water/RiverRapids.h"
+#include "rtd/water/SplashBoats.h"
+#include "rtd/water/SubmarineRide.h"
#include
diff --git a/src/openrct2/ride/RideRatings.cpp b/src/openrct2/ride/RideRatings.cpp
index a54bdddfff..fd474effb7 100644
--- a/src/openrct2/ride/RideRatings.cpp
+++ b/src/openrct2/ride/RideRatings.cpp
@@ -24,11 +24,13 @@
#include "RideData.h"
#include "Station.h"
#include "Track.h"
+#include "TrackData.h"
#include
using namespace OpenRCT2;
using namespace OpenRCT2::Scripting;
+using namespace OpenRCT2::TrackMetaData;
enum
{
diff --git a/src/openrct2/ride/RideRatings.h b/src/openrct2/ride/RideRatings.h
index 466ce43331..1e3394b1f8 100644
--- a/src/openrct2/ride/RideRatings.h
+++ b/src/openrct2/ride/RideRatings.h
@@ -10,6 +10,7 @@
#pragma once
#include "../core/FixedPoint.hpp"
+#include "../core/Money.hpp"
#include "../world/Location.hpp"
#include "RideTypes.h"
diff --git a/src/openrct2/ride/TrackPaint.h b/src/openrct2/ride/TrackPaint.h
index c229f758b6..ccce2055ad 100644
--- a/src/openrct2/ride/TrackPaint.h
+++ b/src/openrct2/ride/TrackPaint.h
@@ -399,8 +399,6 @@ constexpr bool kDiagSpriteMap[kNumOrthogonalDirections][4] = {
extern const uint8_t mapLeftEighthTurnToOrthogonal[5];
-extern const size_t MiniGolfPeepAnimationLengths[];
-
ImageId GetStationColourScheme(PaintSession& session, const TrackElement& trackElement);
ImageId GetShopSupportColourScheme(PaintSession& session, const TrackElement& trackElement);
diff --git a/src/openrct2/ride/Vehicle.cpp b/src/openrct2/ride/Vehicle.cpp
index 68f2d81059..c117efc603 100644
--- a/src/openrct2/ride/Vehicle.cpp
+++ b/src/openrct2/ride/Vehicle.cpp
@@ -31,6 +31,7 @@
#include "../management/NewsItem.h"
#include "../math/Trigonometry.hpp"
#include "../object/SmallSceneryEntry.h"
+#include "../paint/vehicle/Vehicle.MiniGolf.h"
#include "../platform/Platform.h"
#include "../profiling/Profiling.h"
#include "../rct12/RCT12.h"
diff --git a/src/openrct2/ride/VehiclePaint.h b/src/openrct2/ride/VehiclePaint.h
deleted file mode 100644
index 2cd46ffc38..0000000000
--- a/src/openrct2/ride/VehiclePaint.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014-2024 OpenRCT2 developers
- *
- * For a complete list of all authors, please refer to contributors.md
- * Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
- *
- * OpenRCT2 is licensed under the GNU General Public License version 3.
- *****************************************************************************/
-
-#pragma once
-
-#include
-
-struct PaintSession;
-struct CarEntry;
-struct Vehicle;
-
-struct VehicleBoundBox
-{
- int8_t offset_x;
- int8_t offset_y;
- int8_t offset_z;
- uint8_t length_x;
- uint8_t length_y;
- uint8_t length_z;
-};
-
-extern const VehicleBoundBox VehicleBoundboxes[16][224];
-
-void VehicleVisualDefault(
- PaintSession& session, int32_t imageDirection, int32_t z, const Vehicle* vehicle, const CarEntry* carEntry);
-void VehicleVisualRotoDrop(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry);
-void VehicleVisualObservationTower(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry);
-void VehicleVisualRiverRapids(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry);
-void VehicleVisualReverser(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry);
-void VehicleVisualSplashBoatsOrWaterCoaster(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry);
-void VehicleVisualLaunchedFreefall(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry);
-void VehicleVisualSplashEffect(PaintSession& session, int32_t z, const Vehicle* vehicle, const CarEntry* carEntry);
-void VehicleVisualVirginiaReel(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry);
-void VehicleVisualSubmarine(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
- const CarEntry* carEntry);
-void VehicleVisualMiniGolfPlayer(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle);
-void VehicleVisualMiniGolfBall(
- PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle);
diff --git a/src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h b/src/openrct2/ride/rtd/coaster/AirPoweredVerticalCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h
rename to src/openrct2/ride/rtd/coaster/AirPoweredVerticalCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/AlpineCoaster.h b/src/openrct2/ride/rtd/coaster/AlpineCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/AlpineCoaster.h
rename to src/openrct2/ride/rtd/coaster/AlpineCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/BobsleighCoaster.h b/src/openrct2/ride/rtd/coaster/BobsleighCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/BobsleighCoaster.h
rename to src/openrct2/ride/rtd/coaster/BobsleighCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/ClassicMiniRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/ClassicStandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/ClassicStandUpRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/ClassicStandUpRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ClassicWoodenRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/ClassicWoodenRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h b/src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h
rename to src/openrct2/ride/rtd/coaster/CompactInvertedCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h
similarity index 98%
rename from src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h
index fff52a0850..173fd3df3f 100644
--- a/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h
+++ b/src/openrct2/ride/rtd/coaster/CorkscrewRollerCoaster.h
@@ -9,11 +9,11 @@
#pragma once
+#include "../../../paint/track/coaster/CorkscrewRollerCoaster.hpp"
#include "../../../sprites.h"
#include "../../RideData.h"
#include "../../ShopItem.h"
#include "../../Track.h"
-#include "../CorkscrewRollerCoaster.hpp"
// clang-format off
constexpr RideTypeDescriptor CorkscrewRollerCoasterRTD =
diff --git a/src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h b/src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/FlyingRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/GigaCoaster.h b/src/openrct2/ride/rtd/coaster/GigaCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/GigaCoaster.h
rename to src/openrct2/ride/rtd/coaster/GigaCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h b/src/openrct2/ride/rtd/coaster/HeartlineTwisterCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h
rename to src/openrct2/ride/rtd/coaster/HeartlineTwisterCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/HybridCoaster.h b/src/openrct2/ride/rtd/coaster/HybridCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/HybridCoaster.h
rename to src/openrct2/ride/rtd/coaster/HybridCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/HyperTwister.h b/src/openrct2/ride/rtd/coaster/HyperTwister.h
similarity index 98%
rename from src/openrct2/ride/coaster/meta/HyperTwister.h
rename to src/openrct2/ride/rtd/coaster/HyperTwister.h
index dbdb10bebc..4010055229 100644
--- a/src/openrct2/ride/coaster/meta/HyperTwister.h
+++ b/src/openrct2/ride/rtd/coaster/HyperTwister.h
@@ -10,10 +10,10 @@
#pragma once
#include "../../../paint/support/MetalSupports.h"
+#include "../../../paint/track/coaster/BolligerMabillardTrack.hpp"
#include "../../RideData.h"
#include "../../ShopItem.h"
#include "../../Track.h"
-#include "../BolligerMabillardTrack.hpp"
// clang-format off
constexpr RideTypeDescriptor HyperTwisterRTD =
diff --git a/src/openrct2/ride/coaster/meta/Hypercoaster.h b/src/openrct2/ride/rtd/coaster/Hypercoaster.h
similarity index 98%
rename from src/openrct2/ride/coaster/meta/Hypercoaster.h
rename to src/openrct2/ride/rtd/coaster/Hypercoaster.h
index 446b175305..f7b81dc379 100644
--- a/src/openrct2/ride/coaster/meta/Hypercoaster.h
+++ b/src/openrct2/ride/rtd/coaster/Hypercoaster.h
@@ -9,10 +9,10 @@
#pragma once
+#include "../../../paint/track/coaster/CorkscrewRollerCoaster.hpp"
#include "../../RideData.h"
#include "../../ShopItem.h"
#include "../../Track.h"
-#include "../CorkscrewRollerCoaster.hpp"
// clang-format off
constexpr RideTypeDescriptor HypercoasterRTD =
diff --git a/src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h
rename to src/openrct2/ride/rtd/coaster/InvertedHairpinCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h
rename to src/openrct2/ride/rtd/coaster/InvertedImpulseCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/InvertedRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h b/src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/JuniorRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/LIMLaunchedRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h
similarity index 99%
rename from src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h
index 2beb13e5f6..9c3e31d405 100644
--- a/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h
+++ b/src/openrct2/ride/rtd/coaster/LayDownRollerCoaster.h
@@ -9,11 +9,11 @@
#pragma once
+#include "../../../paint/track/coaster/CorkscrewRollerCoaster.hpp"
#include "../../../sprites.h"
#include "../../RideData.h"
#include "../../ShopItem.h"
#include "../../Track.h"
-#include "../CorkscrewRollerCoaster.hpp"
// clang-format off
constexpr RideTypeDescriptor LayDownRollerCoasterRTD =
diff --git a/src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h b/src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/LoopingRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/MineRide.h b/src/openrct2/ride/rtd/coaster/MineRide.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/MineRide.h
rename to src/openrct2/ride/rtd/coaster/MineRide.h
diff --git a/src/openrct2/ride/coaster/meta/MineTrainCoaster.h b/src/openrct2/ride/rtd/coaster/MineTrainCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/MineTrainCoaster.h
rename to src/openrct2/ride/rtd/coaster/MineTrainCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/MiniRollerCoaster.h b/src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/MiniRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/MiniRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h b/src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h
rename to src/openrct2/ride/rtd/coaster/MiniSuspendedCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h b/src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/MultiDimensionRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h b/src/openrct2/ride/rtd/coaster/ReverseFreefallCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h
rename to src/openrct2/ride/rtd/coaster/ReverseFreefallCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h b/src/openrct2/ride/rtd/coaster/ReverserRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/ReverserRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SideFrictionRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/SideFrictionRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/SingleRailRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/SpinningWildMouse.h b/src/openrct2/ride/rtd/coaster/SpinningWildMouse.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/SpinningWildMouse.h
rename to src/openrct2/ride/rtd/coaster/SpinningWildMouse.h
diff --git a/src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h b/src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/SpiralRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h b/src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/StandUpRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/SteelWildMouse.h b/src/openrct2/ride/rtd/coaster/SteelWildMouse.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/SteelWildMouse.h
rename to src/openrct2/ride/rtd/coaster/SteelWildMouse.h
diff --git a/src/openrct2/ride/coaster/meta/Steeplechase.h b/src/openrct2/ride/rtd/coaster/Steeplechase.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/Steeplechase.h
rename to src/openrct2/ride/rtd/coaster/Steeplechase.h
diff --git a/src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h b/src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h
rename to src/openrct2/ride/rtd/coaster/SuspendedSwingingCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h
similarity index 98%
rename from src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h
index 1b9b1d7642..912817beb8 100644
--- a/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h
+++ b/src/openrct2/ride/rtd/coaster/TwisterRollerCoaster.h
@@ -10,11 +10,11 @@
#pragma once
#include "../../../paint/support/MetalSupports.h"
+#include "../../../paint/track/coaster/BolligerMabillardTrack.hpp"
#include "../../../sprites.h"
#include "../../RideData.h"
#include "../../ShopItem.h"
#include "../../Track.h"
-#include "../BolligerMabillardTrack.hpp"
// clang-format off
constexpr RideTypeDescriptor TwisterRollerCoasterRTD =
diff --git a/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h b/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h
similarity index 98%
rename from src/openrct2/ride/coaster/meta/VerticalDropCoaster.h
rename to src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h
index 23b830d08b..a362137e87 100644
--- a/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h
+++ b/src/openrct2/ride/rtd/coaster/VerticalDropCoaster.h
@@ -10,11 +10,11 @@
#pragma once
#include "../../../paint/support/MetalSupports.h"
+#include "../../../paint/track/coaster/BolligerMabillardTrack.hpp"
#include "../../../sprites.h"
#include "../../RideData.h"
#include "../../ShopItem.h"
#include "../../Track.h"
-#include "../BolligerMabillardTrack.hpp"
// clang-format off
constexpr RideTypeDescriptor VerticalDropCoasterRTD =
diff --git a/src/openrct2/ride/coaster/meta/VirginiaReel.h b/src/openrct2/ride/rtd/coaster/VirginiaReel.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/VirginiaReel.h
rename to src/openrct2/ride/rtd/coaster/VirginiaReel.h
diff --git a/src/openrct2/ride/coaster/meta/WaterCoaster.h b/src/openrct2/ride/rtd/coaster/WaterCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/WaterCoaster.h
rename to src/openrct2/ride/rtd/coaster/WaterCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h b/src/openrct2/ride/rtd/coaster/WoodenRollerCoaster.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h
rename to src/openrct2/ride/rtd/coaster/WoodenRollerCoaster.h
diff --git a/src/openrct2/ride/coaster/meta/WoodenWildMouse.h b/src/openrct2/ride/rtd/coaster/WoodenWildMouse.h
similarity index 100%
rename from src/openrct2/ride/coaster/meta/WoodenWildMouse.h
rename to src/openrct2/ride/rtd/coaster/WoodenWildMouse.h
diff --git a/src/openrct2/ride/gentle/meta/CarRide.h b/src/openrct2/ride/rtd/gentle/CarRide.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/CarRide.h
rename to src/openrct2/ride/rtd/gentle/CarRide.h
diff --git a/src/openrct2/ride/gentle/meta/Circus.h b/src/openrct2/ride/rtd/gentle/Circus.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/Circus.h
rename to src/openrct2/ride/rtd/gentle/Circus.h
diff --git a/src/openrct2/ride/gentle/meta/CrookedHouse.h b/src/openrct2/ride/rtd/gentle/CrookedHouse.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/CrookedHouse.h
rename to src/openrct2/ride/rtd/gentle/CrookedHouse.h
diff --git a/src/openrct2/ride/gentle/meta/Dodgems.h b/src/openrct2/ride/rtd/gentle/Dodgems.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/Dodgems.h
rename to src/openrct2/ride/rtd/gentle/Dodgems.h
diff --git a/src/openrct2/ride/gentle/meta/FerrisWheel.h b/src/openrct2/ride/rtd/gentle/FerrisWheel.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/FerrisWheel.h
rename to src/openrct2/ride/rtd/gentle/FerrisWheel.h
diff --git a/src/openrct2/ride/gentle/meta/FlyingSaucers.h b/src/openrct2/ride/rtd/gentle/FlyingSaucers.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/FlyingSaucers.h
rename to src/openrct2/ride/rtd/gentle/FlyingSaucers.h
diff --git a/src/openrct2/ride/gentle/meta/GhostTrain.h b/src/openrct2/ride/rtd/gentle/GhostTrain.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/GhostTrain.h
rename to src/openrct2/ride/rtd/gentle/GhostTrain.h
diff --git a/src/openrct2/ride/gentle/meta/HauntedHouse.h b/src/openrct2/ride/rtd/gentle/HauntedHouse.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/HauntedHouse.h
rename to src/openrct2/ride/rtd/gentle/HauntedHouse.h
diff --git a/src/openrct2/ride/gentle/meta/Maze.h b/src/openrct2/ride/rtd/gentle/Maze.h
similarity index 99%
rename from src/openrct2/ride/gentle/meta/Maze.h
rename to src/openrct2/ride/rtd/gentle/Maze.h
index 5c9ed1a42d..6bd6c9686f 100644
--- a/src/openrct2/ride/gentle/meta/Maze.h
+++ b/src/openrct2/ride/rtd/gentle/Maze.h
@@ -12,6 +12,7 @@
#include "../../../sprites.h"
#include "../../RideAudio.h"
#include "../../RideData.h"
+#include "../../RideRatings.h"
#include "../../ShopItem.h"
#include "../../Track.h"
diff --git a/src/openrct2/ride/gentle/meta/MerryGoRound.h b/src/openrct2/ride/rtd/gentle/MerryGoRound.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/MerryGoRound.h
rename to src/openrct2/ride/rtd/gentle/MerryGoRound.h
diff --git a/src/openrct2/ride/gentle/meta/MiniGolf.h b/src/openrct2/ride/rtd/gentle/MiniGolf.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/MiniGolf.h
rename to src/openrct2/ride/rtd/gentle/MiniGolf.h
diff --git a/src/openrct2/ride/gentle/meta/MiniHelicopters.h b/src/openrct2/ride/rtd/gentle/MiniHelicopters.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/MiniHelicopters.h
rename to src/openrct2/ride/rtd/gentle/MiniHelicopters.h
diff --git a/src/openrct2/ride/gentle/meta/MonorailCycles.h b/src/openrct2/ride/rtd/gentle/MonorailCycles.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/MonorailCycles.h
rename to src/openrct2/ride/rtd/gentle/MonorailCycles.h
diff --git a/src/openrct2/ride/gentle/meta/MonsterTrucks.h b/src/openrct2/ride/rtd/gentle/MonsterTrucks.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/MonsterTrucks.h
rename to src/openrct2/ride/rtd/gentle/MonsterTrucks.h
diff --git a/src/openrct2/ride/gentle/meta/ObservationTower.h b/src/openrct2/ride/rtd/gentle/ObservationTower.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/ObservationTower.h
rename to src/openrct2/ride/rtd/gentle/ObservationTower.h
diff --git a/src/openrct2/ride/gentle/meta/SpaceRings.h b/src/openrct2/ride/rtd/gentle/SpaceRings.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/SpaceRings.h
rename to src/openrct2/ride/rtd/gentle/SpaceRings.h
diff --git a/src/openrct2/ride/gentle/meta/SpiralSlide.h b/src/openrct2/ride/rtd/gentle/SpiralSlide.h
similarity index 100%
rename from src/openrct2/ride/gentle/meta/SpiralSlide.h
rename to src/openrct2/ride/rtd/gentle/SpiralSlide.h
diff --git a/src/openrct2/ride/shops/meta/CashMachine.h b/src/openrct2/ride/rtd/shops/CashMachine.h
similarity index 100%
rename from src/openrct2/ride/shops/meta/CashMachine.h
rename to src/openrct2/ride/rtd/shops/CashMachine.h
diff --git a/src/openrct2/ride/shops/meta/DrinkStall.h b/src/openrct2/ride/rtd/shops/DrinkStall.h
similarity index 100%
rename from src/openrct2/ride/shops/meta/DrinkStall.h
rename to src/openrct2/ride/rtd/shops/DrinkStall.h
diff --git a/src/openrct2/ride/shops/meta/FirstAid.h b/src/openrct2/ride/rtd/shops/FirstAid.h
similarity index 100%
rename from src/openrct2/ride/shops/meta/FirstAid.h
rename to src/openrct2/ride/rtd/shops/FirstAid.h
diff --git a/src/openrct2/ride/shops/meta/FoodStall.h b/src/openrct2/ride/rtd/shops/FoodStall.h
similarity index 100%
rename from src/openrct2/ride/shops/meta/FoodStall.h
rename to src/openrct2/ride/rtd/shops/FoodStall.h
diff --git a/src/openrct2/ride/shops/meta/InformationKiosk.h b/src/openrct2/ride/rtd/shops/InformationKiosk.h
similarity index 100%
rename from src/openrct2/ride/shops/meta/InformationKiosk.h
rename to src/openrct2/ride/rtd/shops/InformationKiosk.h
diff --git a/src/openrct2/ride/shops/meta/Shop.h b/src/openrct2/ride/rtd/shops/Shop.h
similarity index 100%
rename from src/openrct2/ride/shops/meta/Shop.h
rename to src/openrct2/ride/rtd/shops/Shop.h
diff --git a/src/openrct2/ride/shops/meta/Toilets.h b/src/openrct2/ride/rtd/shops/Toilets.h
similarity index 100%
rename from src/openrct2/ride/shops/meta/Toilets.h
rename to src/openrct2/ride/rtd/shops/Toilets.h
diff --git a/src/openrct2/ride/thrill/meta/3DCinema.h b/src/openrct2/ride/rtd/thrill/3DCinema.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/3DCinema.h
rename to src/openrct2/ride/rtd/thrill/3DCinema.h
diff --git a/src/openrct2/ride/thrill/meta/Enterprise.h b/src/openrct2/ride/rtd/thrill/Enterprise.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/Enterprise.h
rename to src/openrct2/ride/rtd/thrill/Enterprise.h
diff --git a/src/openrct2/ride/thrill/meta/GoKarts.h b/src/openrct2/ride/rtd/thrill/GoKarts.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/GoKarts.h
rename to src/openrct2/ride/rtd/thrill/GoKarts.h
diff --git a/src/openrct2/ride/thrill/meta/LaunchedFreefall.h b/src/openrct2/ride/rtd/thrill/LaunchedFreefall.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/LaunchedFreefall.h
rename to src/openrct2/ride/rtd/thrill/LaunchedFreefall.h
diff --git a/src/openrct2/ride/thrill/meta/MagicCarpet.h b/src/openrct2/ride/rtd/thrill/MagicCarpet.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/MagicCarpet.h
rename to src/openrct2/ride/rtd/thrill/MagicCarpet.h
diff --git a/src/openrct2/ride/thrill/meta/MotionSimulator.h b/src/openrct2/ride/rtd/thrill/MotionSimulator.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/MotionSimulator.h
rename to src/openrct2/ride/rtd/thrill/MotionSimulator.h
diff --git a/src/openrct2/ride/thrill/meta/RotoDrop.h b/src/openrct2/ride/rtd/thrill/RotoDrop.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/RotoDrop.h
rename to src/openrct2/ride/rtd/thrill/RotoDrop.h
diff --git a/src/openrct2/ride/thrill/meta/SwingingInverterShip.h b/src/openrct2/ride/rtd/thrill/SwingingInverterShip.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/SwingingInverterShip.h
rename to src/openrct2/ride/rtd/thrill/SwingingInverterShip.h
diff --git a/src/openrct2/ride/thrill/meta/SwingingShip.h b/src/openrct2/ride/rtd/thrill/SwingingShip.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/SwingingShip.h
rename to src/openrct2/ride/rtd/thrill/SwingingShip.h
diff --git a/src/openrct2/ride/thrill/meta/TopSpin.h b/src/openrct2/ride/rtd/thrill/TopSpin.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/TopSpin.h
rename to src/openrct2/ride/rtd/thrill/TopSpin.h
diff --git a/src/openrct2/ride/thrill/meta/Twist.h b/src/openrct2/ride/rtd/thrill/Twist.h
similarity index 100%
rename from src/openrct2/ride/thrill/meta/Twist.h
rename to src/openrct2/ride/rtd/thrill/Twist.h
diff --git a/src/openrct2/ride/transport/meta/Chairlift.h b/src/openrct2/ride/rtd/transport/Chairlift.h
similarity index 100%
rename from src/openrct2/ride/transport/meta/Chairlift.h
rename to src/openrct2/ride/rtd/transport/Chairlift.h
diff --git a/src/openrct2/ride/transport/meta/Lift.h b/src/openrct2/ride/rtd/transport/Lift.h
similarity index 100%
rename from src/openrct2/ride/transport/meta/Lift.h
rename to src/openrct2/ride/rtd/transport/Lift.h
diff --git a/src/openrct2/ride/transport/meta/MiniatureRailway.h b/src/openrct2/ride/rtd/transport/MiniatureRailway.h
similarity index 100%
rename from src/openrct2/ride/transport/meta/MiniatureRailway.h
rename to src/openrct2/ride/rtd/transport/MiniatureRailway.h
diff --git a/src/openrct2/ride/transport/meta/Monorail.h b/src/openrct2/ride/rtd/transport/Monorail.h
similarity index 100%
rename from src/openrct2/ride/transport/meta/Monorail.h
rename to src/openrct2/ride/rtd/transport/Monorail.h
diff --git a/src/openrct2/ride/transport/meta/SuspendedMonorail.h b/src/openrct2/ride/rtd/transport/SuspendedMonorail.h
similarity index 100%
rename from src/openrct2/ride/transport/meta/SuspendedMonorail.h
rename to src/openrct2/ride/rtd/transport/SuspendedMonorail.h
diff --git a/src/openrct2/ride/water/meta/BoatHire.h b/src/openrct2/ride/rtd/water/BoatHire.h
similarity index 100%
rename from src/openrct2/ride/water/meta/BoatHire.h
rename to src/openrct2/ride/rtd/water/BoatHire.h
diff --git a/src/openrct2/ride/water/meta/DinghySlide.h b/src/openrct2/ride/rtd/water/DinghySlide.h
similarity index 100%
rename from src/openrct2/ride/water/meta/DinghySlide.h
rename to src/openrct2/ride/rtd/water/DinghySlide.h
diff --git a/src/openrct2/ride/water/meta/LogFlume.h b/src/openrct2/ride/rtd/water/LogFlume.h
similarity index 100%
rename from src/openrct2/ride/water/meta/LogFlume.h
rename to src/openrct2/ride/rtd/water/LogFlume.h
diff --git a/src/openrct2/ride/water/meta/RiverRafts.h b/src/openrct2/ride/rtd/water/RiverRafts.h
similarity index 100%
rename from src/openrct2/ride/water/meta/RiverRafts.h
rename to src/openrct2/ride/rtd/water/RiverRafts.h
diff --git a/src/openrct2/ride/water/meta/RiverRapids.h b/src/openrct2/ride/rtd/water/RiverRapids.h
similarity index 100%
rename from src/openrct2/ride/water/meta/RiverRapids.h
rename to src/openrct2/ride/rtd/water/RiverRapids.h
diff --git a/src/openrct2/ride/water/meta/SplashBoats.h b/src/openrct2/ride/rtd/water/SplashBoats.h
similarity index 100%
rename from src/openrct2/ride/water/meta/SplashBoats.h
rename to src/openrct2/ride/rtd/water/SplashBoats.h
diff --git a/src/openrct2/ride/water/meta/SubmarineRide.h b/src/openrct2/ride/rtd/water/SubmarineRide.h
similarity index 100%
rename from src/openrct2/ride/water/meta/SubmarineRide.h
rename to src/openrct2/ride/rtd/water/SubmarineRide.h