Split RTD, track and vehicle drawing

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2024-07-31 20:10:55 +00:00
1 parent e782635498
commit e5a6cccd5c
190 files changed
+2085 -1877

No files matched your search

@@ -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;
+1 -1
View File
@@ -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"
+182 -171
View File
@@ -371,8 +371,13 @@
<ClInclude Include="paint\tile_element\Paint.TileElement.h" />
<ClInclude Include="paint\tile_element\Segment.h" />
<ClInclude Include="paint\tile_element\Paint.Tunnel.h" />
<ClInclude Include="paint\track\coaster\BolligerMabillardTrack.hpp" />
<ClInclude Include="paint\track\coaster\CorkscrewRollerCoaster.hpp" />
<ClInclude Include="paint\track\coaster\WoodenRollerCoaster.h" />
<ClInclude Include="paint\track\Segment.h" />
<ClInclude Include="paint\track\Support.h" />
<ClCompile Include="paint\vehicle\Vehicle.MiniGolf.h" />
<ClCompile Include="paint\vehicle\VehiclePaint.h" />
<ClInclude Include="paint\VirtualFloor.h" />
<ClInclude Include="ParkImporter.h" />
<ClInclude Include="park\Legacy.h" />
@@ -407,69 +412,8 @@
<ClInclude Include="rct2\T6Exporter.h" />
<ClInclude Include="ReplayManager.h" />
<ClInclude Include="ride\CableLift.h" />
<ClInclude Include="ride\coaster\BolligerMabillardTrack.hpp" />
<ClInclude Include="ride\coaster\CorkscrewRollerCoaster.hpp" />
<ClInclude Include="ride\coaster\meta\AirPoweredVerticalCoaster.h" />
<ClInclude Include="ride\coaster\meta\AlpineCoaster.h" />
<ClInclude Include="ride\coaster\meta\BobsleighCoaster.h" />
<ClInclude Include="ride\coaster\meta\ClassicMiniRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\ClassicStandUpRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\ClassicWoodenRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\CompactInvertedCoaster.h" />
<ClInclude Include="ride\coaster\meta\CorkscrewRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\FlyingRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\GigaCoaster.h" />
<ClInclude Include="ride\coaster\meta\HeartlineTwisterCoaster.h" />
<ClInclude Include="ride\coaster\meta\HybridCoaster.h" />
<ClInclude Include="ride\coaster\meta\Hypercoaster.h" />
<ClInclude Include="ride\coaster\meta\HyperTwister.h" />
<ClInclude Include="ride\coaster\meta\InvertedHairpinCoaster.h" />
<ClInclude Include="ride\coaster\meta\InvertedImpulseCoaster.h" />
<ClInclude Include="ride\coaster\meta\InvertedRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\JuniorRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\LayDownRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\LIMLaunchedRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\LoopingRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\MineRide.h" />
<ClInclude Include="ride\coaster\meta\MineTrainCoaster.h" />
<ClInclude Include="ride\coaster\meta\MiniRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\MiniSuspendedCoaster.h" />
<ClInclude Include="ride\coaster\meta\MultiDimensionRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\ReverseFreefallCoaster.h" />
<ClInclude Include="ride\coaster\meta\ReverserRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\SideFrictionRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\SingleRailRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\SpinningWildMouse.h" />
<ClInclude Include="ride\coaster\meta\SpiralRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\StandUpRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\SteelWildMouse.h" />
<ClInclude Include="ride\coaster\meta\Steeplechase.h" />
<ClInclude Include="ride\coaster\meta\SuspendedSwingingCoaster.h" />
<ClInclude Include="ride\coaster\meta\TwisterRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\VerticalDropCoaster.h" />
<ClInclude Include="ride\coaster\meta\VirginiaReel.h" />
<ClInclude Include="ride\coaster\meta\WaterCoaster.h" />
<ClInclude Include="ride\coaster\meta\WoodenRollerCoaster.h" />
<ClInclude Include="ride\coaster\meta\WoodenWildMouse.h" />
<ClInclude Include="ride\coaster\WoodenRollerCoaster.h" />
<ClInclude Include="ride\gentle\Maze.h" />
<ClInclude Include="ride\gentle\meta\CarRide.h" />
<ClInclude Include="ride\gentle\meta\Circus.h" />
<ClInclude Include="ride\gentle\meta\CrookedHouse.h" />
<ClInclude Include="ride\gentle\meta\Dodgems.h" />
<ClInclude Include="ride\gentle\meta\FerrisWheel.h" />
<ClInclude Include="ride\gentle\meta\FlyingSaucers.h" />
<ClInclude Include="ride\gentle\meta\GhostTrain.h" />
<ClInclude Include="ride\gentle\meta\HauntedHouse.h" />
<ClInclude Include="ride\gentle\meta\Maze.h" />
<ClInclude Include="ride\gentle\meta\MerryGoRound.h" />
<ClInclude Include="ride\gentle\meta\MiniGolf.h" />
<ClInclude Include="ride\gentle\meta\MiniHelicopters.h" />
<ClInclude Include="ride\gentle\meta\MonorailCycles.h" />
<ClInclude Include="ride\gentle\meta\MonsterTrucks.h" />
<ClInclude Include="ride\gentle\meta\ObservationTower.h" />
<ClInclude Include="ride\gentle\meta\SpaceRings.h" />
<ClInclude Include="ride\gentle\meta\SpiralSlide.h" />
<ClInclude Include="ride\CarEntry.h" />
<ClInclude Include="ride\MazeCost.h" />
<ClInclude Include="ride\Ride.h" />
<ClInclude Include="ride\RideAudio.h" />
<ClInclude Include="ride\RideColour.h" />
@@ -479,51 +423,108 @@
<ClInclude Include="ride\RideRatings.h" />
<ClInclude Include="ride\RideStringIds.h" />
<ClInclude Include="ride\RideTypes.h" />
<ClInclude Include="ride\ShopItem.h" />
<ClInclude Include="ride\shops\meta\CashMachine.h" />
<ClInclude Include="ride\shops\meta\DrinkStall.h" />
<ClInclude Include="ride\shops\meta\FirstAid.h" />
<ClInclude Include="ride\shops\meta\FoodStall.h" />
<ClInclude Include="ride\shops\meta\InformationKiosk.h" />
<ClInclude Include="ride\shops\meta\Shop.h" />
<ClInclude Include="ride\shops\meta\Toilets.h" />
<ClInclude Include="ride\rtd\coaster\AirPoweredVerticalCoaster.h" />
<ClInclude Include="ride\rtd\coaster\AlpineCoaster.h" />
<ClInclude Include="ride\rtd\coaster\BobsleighCoaster.h" />
<ClInclude Include="ride\rtd\coaster\ClassicMiniRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\ClassicStandUpRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\ClassicWoodenRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\CompactInvertedCoaster.h" />
<ClInclude Include="ride\rtd\coaster\CorkscrewRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\FlyingRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\GigaCoaster.h" />
<ClInclude Include="ride\rtd\coaster\HeartlineTwisterCoaster.h" />
<ClInclude Include="ride\rtd\coaster\HybridCoaster.h" />
<ClInclude Include="ride\rtd\coaster\Hypercoaster.h" />
<ClInclude Include="ride\rtd\coaster\HyperTwister.h" />
<ClInclude Include="ride\rtd\coaster\InvertedHairpinCoaster.h" />
<ClInclude Include="ride\rtd\coaster\InvertedImpulseCoaster.h" />
<ClInclude Include="ride\rtd\coaster\InvertedRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\JuniorRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\LayDownRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\LIMLaunchedRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\LoopingRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\MineRide.h" />
<ClInclude Include="ride\rtd\coaster\MineTrainCoaster.h" />
<ClInclude Include="ride\rtd\coaster\MiniRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\MiniSuspendedCoaster.h" />
<ClInclude Include="ride\rtd\coaster\MultiDimensionRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\ReverseFreefallCoaster.h" />
<ClInclude Include="ride\rtd\coaster\ReverserRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\SideFrictionRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\SingleRailRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\SpinningWildMouse.h" />
<ClInclude Include="ride\rtd\coaster\SpiralRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\StandUpRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\SteelWildMouse.h" />
<ClInclude Include="ride\rtd\coaster\Steeplechase.h" />
<ClInclude Include="ride\rtd\coaster\SuspendedSwingingCoaster.h" />
<ClInclude Include="ride\rtd\coaster\TwisterRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\VerticalDropCoaster.h" />
<ClInclude Include="ride\rtd\coaster\VirginiaReel.h" />
<ClInclude Include="ride\rtd\coaster\WaterCoaster.h" />
<ClInclude Include="ride\rtd\coaster\WoodenRollerCoaster.h" />
<ClInclude Include="ride\rtd\coaster\WoodenWildMouse.h" />
<ClInclude Include="ride\rtd\gentle\CarRide.h" />
<ClInclude Include="ride\rtd\gentle\Circus.h" />
<ClInclude Include="ride\rtd\gentle\CrookedHouse.h" />
<ClInclude Include="ride\rtd\gentle\Dodgems.h" />
<ClInclude Include="ride\rtd\gentle\FerrisWheel.h" />
<ClInclude Include="ride\rtd\gentle\FlyingSaucers.h" />
<ClInclude Include="ride\rtd\gentle\GhostTrain.h" />
<ClInclude Include="ride\rtd\gentle\HauntedHouse.h" />
<ClInclude Include="ride\rtd\gentle\Maze.h" />
<ClInclude Include="ride\rtd\gentle\MerryGoRound.h" />
<ClInclude Include="ride\rtd\gentle\MiniGolf.h" />
<ClInclude Include="ride\rtd\gentle\MiniHelicopters.h" />
<ClInclude Include="ride\rtd\gentle\MonorailCycles.h" />
<ClInclude Include="ride\rtd\gentle\MonsterTrucks.h" />
<ClInclude Include="ride\rtd\gentle\ObservationTower.h" />
<ClInclude Include="ride\rtd\gentle\SpaceRings.h" />
<ClInclude Include="ride\rtd\gentle\SpiralSlide.h" />
<ClInclude Include="ride\rtd\shops\CashMachine.h" />
<ClInclude Include="ride\rtd\shops\DrinkStall.h" />
<ClInclude Include="ride\rtd\shops\FirstAid.h" />
<ClInclude Include="ride\rtd\shops\FoodStall.h" />
<ClInclude Include="ride\rtd\shops\InformationKiosk.h" />
<ClInclude Include="ride\rtd\shops\Shop.h" />
<ClInclude Include="ride\rtd\shops\Toilets.h" />
<ClInclude Include="ride\rtd\thrill\3DCinema.h" />
<ClInclude Include="ride\rtd\thrill\Enterprise.h" />
<ClInclude Include="ride\rtd\thrill\GoKarts.h" />
<ClInclude Include="ride\rtd\thrill\LaunchedFreefall.h" />
<ClInclude Include="ride\rtd\thrill\MagicCarpet.h" />
<ClInclude Include="ride\rtd\thrill\MotionSimulator.h" />
<ClInclude Include="ride\rtd\thrill\RotoDrop.h" />
<ClInclude Include="ride\rtd\thrill\SwingingInverterShip.h" />
<ClInclude Include="ride\rtd\thrill\SwingingShip.h" />
<ClInclude Include="ride\rtd\thrill\TopSpin.h" />
<ClInclude Include="ride\rtd\thrill\Twist.h" />
<ClInclude Include="ride\rtd\transport\Chairlift.h" />
<ClInclude Include="ride\rtd\transport\Lift.h" />
<ClInclude Include="ride\rtd\transport\MiniatureRailway.h" />
<ClInclude Include="ride\rtd\transport\Monorail.h" />
<ClInclude Include="ride\rtd\transport\SuspendedMonorail.h" />
<ClInclude Include="ride\rtd\water\BoatHire.h" />
<ClInclude Include="ride\rtd\water\DinghySlide.h" />
<ClInclude Include="ride\rtd\water\LogFlume.h" />
<ClInclude Include="ride\rtd\water\RiverRafts.h" />
<ClInclude Include="ride\rtd\water\RiverRapids.h" />
<ClInclude Include="ride\rtd\water\SplashBoats.h" />
<ClInclude Include="ride\rtd\water\SubmarineRide.h" />
<ClInclude Include="ride\Station.h" />
<ClInclude Include="ride\thrill\meta\3DCinema.h" />
<ClInclude Include="ride\thrill\meta\Enterprise.h" />
<ClInclude Include="ride\thrill\meta\GoKarts.h" />
<ClInclude Include="ride\thrill\meta\LaunchedFreefall.h" />
<ClInclude Include="ride\thrill\meta\MagicCarpet.h" />
<ClInclude Include="ride\thrill\meta\MotionSimulator.h" />
<ClInclude Include="ride\thrill\meta\RotoDrop.h" />
<ClInclude Include="ride\thrill\meta\SwingingInverterShip.h" />
<ClInclude Include="ride\thrill\meta\SwingingShip.h" />
<ClInclude Include="ride\thrill\meta\TopSpin.h" />
<ClInclude Include="ride\thrill\meta\Twist.h" />
<ClInclude Include="ride\ShopItem.h" />
<ClInclude Include="ride\Track.h" />
<ClInclude Include="ride\TrackData.h" />
<ClInclude Include="ride\TrackDesign.h" />
<ClInclude Include="ride\TrackDesignRepository.h" />
<ClInclude Include="ride\TrackPaint.h" />
<ClInclude Include="ride\TrainManager.h" />
<ClInclude Include="ride\transport\meta\Chairlift.h" />
<ClInclude Include="ride\transport\meta\Lift.h" />
<ClInclude Include="ride\transport\meta\MiniatureRailway.h" />
<ClInclude Include="ride\transport\meta\Monorail.h" />
<ClInclude Include="ride\transport\meta\SuspendedMonorail.h" />
<ClInclude Include="ride\Vehicle.h" />
<ClInclude Include="ride\VehicleColour.h" />
<ClInclude Include="ride\VehicleData.h" />
<ClInclude Include="ride\CarEntry.h" />
<ClInclude Include="ride\VehiclePaint.h" />
<ClInclude Include="ride\VehicleRiderControl.h" />
<ClInclude Include="ride\VehicleSubpositionData.h" />
<ClInclude Include="ride\water\meta\BoatHire.h" />
<ClInclude Include="ride\water\meta\DinghySlide.h" />
<ClInclude Include="ride\water\meta\LogFlume.h" />
<ClInclude Include="ride\water\meta\RiverRafts.h" />
<ClInclude Include="ride\water\meta\RiverRapids.h" />
<ClInclude Include="ride\water\meta\SplashBoats.h" />
<ClInclude Include="ride\water\meta\SubmarineRide.h" />
<ClInclude Include="scenario\Scenario.h" />
<ClInclude Include="scenario\ScenarioRepository.h" />
<ClInclude Include="scenario\ScenarioSources.h" />
@@ -890,6 +891,90 @@
<ClCompile Include="paint\tile_element\Paint.TileElement.cpp" />
<ClCompile Include="paint\tile_element\Paint.Wall.cpp" />
<ClCompile Include="paint\tile_element\Paint.Tunnel.cpp" />
<ClCompile Include="paint\track\coaster\AirPoweredVerticalCoaster.cpp" />
<ClCompile Include="paint\track\coaster\AlpineCoaster.cpp" />
<ClCompile Include="paint\track\coaster\BobsleighCoaster.cpp" />
<ClCompile Include="paint\track\coaster\ClassicStandUpRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\ClassicWoodenRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\CompactInvertedCoaster.cpp" />
<ClCompile Include="paint\track\coaster\FlyingRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\GigaCoaster.cpp" />
<ClCompile Include="paint\track\coaster\HeartlineTwisterCoaster.cpp" />
<ClCompile Include="paint\track\coaster\HybridCoaster.cpp" />
<ClCompile Include="paint\track\coaster\InvertedHairpinCoaster.cpp" />
<ClCompile Include="paint\track\coaster\InvertedImpulseCoaster.cpp" />
<ClCompile Include="paint\track\coaster\InvertedRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\JuniorRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\LayDownRollerCoasterInverted.cpp" />
<ClCompile Include="paint\track\coaster\LimLaunchedRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\LoopingRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\MineRide.cpp" />
<ClCompile Include="paint\track\coaster\MineTrainCoaster.cpp" />
<ClCompile Include="paint\track\coaster\MiniRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\MiniSuspendedCoaster.cpp" />
<ClCompile Include="paint\track\coaster\MultiDimensionRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\ReverseFreefallCoaster.cpp" />
<ClCompile Include="paint\track\coaster\ReverserRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\SideFrictionRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\SingleRailRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\StandUpRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\Steeplechase.cpp" />
<ClCompile Include="paint\track\coaster\SuspendedSwingingCoaster.cpp" />
<ClCompile Include="paint\track\coaster\VirginiaReel.cpp" />
<ClCompile Include="paint\track\coaster\WildMouse.cpp" />
<ClCompile Include="paint\track\coaster\WoodenRollerCoaster.cpp" />
<ClCompile Include="paint\track\coaster\WoodenWildMouse.cpp" />
<ClCompile Include="paint\track\gentle\CarRide.cpp" />
<ClCompile Include="paint\track\gentle\Circus.cpp" />
<ClCompile Include="paint\track\gentle\CrookedHouse.cpp" />
<ClCompile Include="paint\track\gentle\Dodgems.cpp" />
<ClCompile Include="paint\track\gentle\FerrisWheel.cpp" />
<ClCompile Include="paint\track\gentle\FlyingSaucers.cpp" />
<ClCompile Include="paint\track\gentle\GhostTrain.cpp" />
<ClCompile Include="paint\track\gentle\HauntedHouse.cpp" />
<ClCompile Include="paint\track\gentle\Maze.cpp" />
<ClCompile Include="paint\track\gentle\MerryGoRound.cpp" />
<ClCompile Include="paint\track\gentle\MiniGolf.cpp" />
<ClCompile Include="paint\track\gentle\MiniHelicopters.cpp" />
<ClCompile Include="paint\track\gentle\MonorailCycles.cpp" />
<ClCompile Include="paint\track\gentle\ObservationTower.cpp" />
<ClCompile Include="paint\track\gentle\SpaceRings.cpp" />
<ClCompile Include="paint\track\gentle\SpiralSlide.cpp" />
<ClCompile Include="paint\track\shops\Facility.cpp" />
<ClCompile Include="paint\track\shops\Shop.cpp" />
<ClCompile Include="paint\track\thrill\3dCinema.cpp" />
<ClCompile Include="paint\track\thrill\Enterprise.cpp" />
<ClCompile Include="paint\track\thrill\GoKarts.cpp" />
<ClCompile Include="paint\track\thrill\LaunchedFreefall.cpp" />
<ClCompile Include="paint\track\thrill\MagicCarpet.cpp" />
<ClCompile Include="paint\track\thrill\MotionSimulator.cpp" />
<ClCompile Include="paint\track\thrill\SwingingShip.cpp" />
<ClCompile Include="paint\track\thrill\RotoDrop.cpp" />
<ClCompile Include="paint\track\thrill\SwingingInverterShip.cpp" />
<ClCompile Include="paint\track\thrill\TopSpin.cpp" />
<ClCompile Include="paint\track\thrill\Twist.cpp" />
<ClCompile Include="paint\track\transport\Chairlift.cpp" />
<ClCompile Include="paint\track\transport\Lift.cpp" />
<ClCompile Include="paint\track\transport\MiniatureRailway.cpp" />
<ClCompile Include="paint\track\transport\Monorail.cpp" />
<ClCompile Include="paint\track\transport\SuspendedMonorail.cpp" />
<ClCompile Include="paint\track\water\BoatHire.cpp" />
<ClCompile Include="paint\track\water\DinghySlide.cpp" />
<ClCompile Include="paint\track\water\DinghySlideCovered.cpp" />
<ClCompile Include="paint\track\water\LogFlume.cpp" />
<ClCompile Include="paint\track\water\RiverRapids.cpp" />
<ClCompile Include="paint\track\water\SplashBoats.cpp" />
<ClCompile Include="paint\track\water\SubmarineRide.cpp" />
<ClCompile Include="paint\vehicle\VehiclePaint.cpp" />
<ClCompile Include="paint\vehicle\Vehicle.LaunchedFreefall.cpp" />
<ClCompile Include="paint\vehicle\Vehicle.MiniGolf.cpp" />
<ClCompile Include="paint\vehicle\Vehicle.ObservationTower.cpp" />
<ClCompile Include="paint\vehicle\Vehicle.ReverserRollerCoaster.cpp" />
<ClCompile Include="paint\vehicle\Vehicle.RiverRapids.cpp" />
<ClCompile Include="paint\vehicle\Vehicle.RotoDrop.cpp" />
<ClCompile Include="paint\vehicle\Vehicle.SplashBoats.cpp" />
<ClCompile Include="paint\vehicle\Vehicle.Submarine.cpp" />
<ClCompile Include="paint\vehicle\Vehicle.VirginaReel.cpp" />
<ClCompile Include="paint\VirtualFloor.cpp" />
<ClCompile Include="ParkImporter.cpp" />
<ClCompile Include="park\Legacy.cpp" />
@@ -924,75 +1009,14 @@
<ClCompile Include="ReplayManager.cpp" />
<ClCompile Include="ride\CableLift.cpp" />
<ClCompile Include="ride\CarEntry.cpp" />
<ClCompile Include="ride\coaster\AirPoweredVerticalCoaster.cpp" />
<ClCompile Include="ride\coaster\AlpineCoaster.cpp" />
<ClCompile Include="ride\coaster\BobsleighCoaster.cpp" />
<ClCompile Include="ride\coaster\ClassicStandUpRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\ClassicWoodenRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\CompactInvertedCoaster.cpp" />
<ClCompile Include="ride\coaster\FlyingRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\GigaCoaster.cpp" />
<ClCompile Include="ride\coaster\HeartlineTwisterCoaster.cpp" />
<ClCompile Include="ride\coaster\HybridCoaster.cpp" />
<ClCompile Include="ride\coaster\InvertedHairpinCoaster.cpp" />
<ClCompile Include="ride\coaster\InvertedImpulseCoaster.cpp" />
<ClCompile Include="ride\coaster\InvertedRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\JuniorRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\LayDownRollerCoasterInverted.cpp" />
<ClCompile Include="ride\coaster\LimLaunchedRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\LoopingRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\MineRide.cpp" />
<ClCompile Include="ride\coaster\MineTrainCoaster.cpp" />
<ClCompile Include="ride\coaster\MiniRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\MiniSuspendedCoaster.cpp" />
<ClCompile Include="ride\coaster\MultiDimensionRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\ReverseFreefallCoaster.cpp" />
<ClCompile Include="ride\coaster\ReverserRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\SideFrictionRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\SingleRailRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\StandUpRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\Steeplechase.cpp" />
<ClCompile Include="ride\coaster\SuspendedSwingingCoaster.cpp" />
<ClCompile Include="ride\coaster\VirginiaReel.cpp" />
<ClCompile Include="ride\coaster\WildMouse.cpp" />
<ClCompile Include="ride\coaster\WoodenRollerCoaster.cpp" />
<ClCompile Include="ride\coaster\WoodenWildMouse.cpp" />
<ClCompile Include="ride\gentle\CarRide.cpp" />
<ClCompile Include="ride\gentle\Circus.cpp" />
<ClCompile Include="ride\gentle\CrookedHouse.cpp" />
<ClCompile Include="ride\gentle\Dodgems.cpp" />
<ClCompile Include="ride\gentle\FerrisWheel.cpp" />
<ClCompile Include="ride\gentle\FlyingSaucers.cpp" />
<ClCompile Include="ride\gentle\GhostTrain.cpp" />
<ClCompile Include="ride\gentle\HauntedHouse.cpp" />
<ClCompile Include="ride\gentle\Maze.cpp" />
<ClCompile Include="ride\gentle\MerryGoRound.cpp" />
<ClCompile Include="ride\gentle\MiniGolf.cpp" />
<ClCompile Include="ride\gentle\MiniHelicopters.cpp" />
<ClCompile Include="ride\gentle\MonorailCycles.cpp" />
<ClCompile Include="ride\gentle\ObservationTower.cpp" />
<ClCompile Include="ride\gentle\SpaceRings.cpp" />
<ClCompile Include="ride\gentle\SpiralSlide.cpp" />
<ClCompile Include="ride\MazeCost.cpp" />
<ClCompile Include="ride\Ride.cpp" />
<ClCompile Include="ride\RideAudio.cpp" />
<ClCompile Include="ride\RideConstruction.cpp" />
<ClCompile Include="ride\RideData.cpp" />
<ClCompile Include="ride\RideRatings.cpp" />
<ClCompile Include="ride\ShopItem.cpp" />
<ClCompile Include="ride\shops\Facility.cpp" />
<ClCompile Include="ride\shops\Shop.cpp" />
<ClCompile Include="ride\Station.cpp" />
<ClCompile Include="ride\thrill\3dCinema.cpp" />
<ClCompile Include="ride\thrill\Enterprise.cpp" />
<ClCompile Include="ride\thrill\GoKarts.cpp" />
<ClCompile Include="ride\thrill\LaunchedFreefall.cpp" />
<ClCompile Include="ride\thrill\MagicCarpet.cpp" />
<ClCompile Include="ride\thrill\MotionSimulator.cpp" />
<ClCompile Include="ride\thrill\SwingingShip.cpp" />
<ClCompile Include="ride\thrill\RotoDrop.cpp" />
<ClCompile Include="ride\thrill\SwingingInverterShip.cpp" />
<ClCompile Include="ride\thrill\TopSpin.cpp" />
<ClCompile Include="ride\thrill\Twist.cpp" />
<ClCompile Include="ride\Track.cpp" />
<ClCompile Include="ride\TrackData.cpp" />
<ClCompile Include="ride\TrackDesign.cpp" />
@@ -1000,23 +1024,10 @@
<ClCompile Include="ride\TrackDesignSave.cpp" />
<ClCompile Include="ride\TrackPaint.cpp" />
<ClCompile Include="ride\TrainManager.cpp" />
<ClCompile Include="ride\transport\Chairlift.cpp" />
<ClCompile Include="ride\transport\Lift.cpp" />
<ClCompile Include="ride\transport\MiniatureRailway.cpp" />
<ClCompile Include="ride\transport\Monorail.cpp" />
<ClCompile Include="ride\transport\SuspendedMonorail.cpp" />
<ClCompile Include="ride\Vehicle.cpp" />
<ClCompile Include="ride\VehicleData.cpp" />
<ClCompile Include="ride\VehiclePaint.cpp" />
<ClCompile Include="ride\VehicleRiderControl.cpp" />
<ClCompile Include="ride\VehicleSubpositionData.cpp" />
<ClCompile Include="ride\water\BoatHire.cpp" />
<ClCompile Include="ride\water\DinghySlide.cpp" />
<ClCompile Include="ride\water\DinghySlideCovered.cpp" />
<ClCompile Include="ride\water\LogFlume.cpp" />
<ClCompile Include="ride\water\RiverRapids.cpp" />
<ClCompile Include="ride\water\SplashBoats.cpp" />
<ClCompile Include="ride\water\SubmarineRide.cpp" />
<ClCompile Include="scenario\Scenario.cpp" />
<ClCompile Include="scenario\ScenarioRepository.cpp" />
<ClCompile Include="scenario\ScenarioSources.cpp" />
+1 -1
View File
@@ -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 <cassert>
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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 <cstdint>
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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 <algorithm>
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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>(vehicle->prev_vehicle_on_ride);
Vehicle* v2 = GetEntity<Vehicle>(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,
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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 <cassert>
@@ -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,
@@ -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;
@@ -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;
@@ -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 <cstdint>
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
}
@@ -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;
@@ -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 <iterator>
@@ -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<Guest>(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 } });
}
@@ -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;
@@ -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;
@@ -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 <cassert>
@@ -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,
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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 <cassert>
@@ -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,
@@ -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;
@@ -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;
@@ -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 <cassert>
#include <cstring>
@@ -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,
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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 <iterator>
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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,
@@ -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>(vehicle->next_vehicle_on_ride)
: GetEntity<Vehicle>(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
@@ -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 <cassert>
@@ -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)
@@ -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 <cstdint>
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
@@ -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 <cstdint>
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<Guest>(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
@@ -9,6 +9,9 @@
#pragma once
#include "../RideData.h"
#include <cstddef>
money64 MazeCalculateCost(money64 constructionCost, const Ride& ride, const CoordsXYZ& loc);
namespace OpenRCT2
{
extern const size_t MiniGolfPeepAnimationLengths[];
}
@@ -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 <cstdint>
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
@@ -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 <cstdint>
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>(vehicle->prev_vehicle_on_ride);
Vehicle* v2 = GetEntity<Vehicle>(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
@@ -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 <cstdint>
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
@@ -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 <cstdint>
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
@@ -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 <cstdint>
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>(vehicle->next_vehicle_on_ride)
: GetEntity<Vehicle>(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
@@ -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 <cstdint>
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
@@ -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 <cstdint>
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
@@ -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 <iterator>
+64
View File
@@ -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 <cstdint>
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
+33
View File
@@ -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
+19
View File
@@ -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);
}
+89 -89
View File
@@ -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 <iterator>
+2
View File
@@ -24,11 +24,13 @@
#include "RideData.h"
#include "Station.h"
#include "Track.h"
#include "TrackData.h"
#include <iterator>
using namespace OpenRCT2;
using namespace OpenRCT2::Scripting;
using namespace OpenRCT2::TrackMetaData;
enum
{
+1
View File
@@ -10,6 +10,7 @@
#pragma once
#include "../core/FixedPoint.hpp"
#include "../core/Money.hpp"
#include "../world/Location.hpp"
#include "RideTypes.h"
-2
View File
@@ -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);
+1
View File
@@ -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"
Loaded 100 of 190 files, more files were not shown because too many files have changed in this diff. Show more