diff --git a/src/openrct2/ride/RideRatings.cpp b/src/openrct2/ride/RideRatings.cpp index 843aa70610..4ab096081e 100644 --- a/src/openrct2/ride/RideRatings.cpp +++ b/src/openrct2/ride/RideRatings.cpp @@ -87,8 +87,8 @@ static void ride_ratings_update_state_3(RideRatingUpdateState& state); static void ride_ratings_update_state_4(RideRatingUpdateState& state); static void ride_ratings_update_state_5(RideRatingUpdateState& state); static void ride_ratings_begin_proximity_loop(RideRatingUpdateState& state); -static void ride_ratings_calculate(RideRatingUpdateState& state, Ride& ride); -static void ride_ratings_calculate_value(Ride& ride); +static void RideRatingsCalculate(RideRatingUpdateState& state, Ride& ride); +static void RideRatingsCalculateValue(Ride& ride); static void ride_ratings_score_close_proximity(RideRatingUpdateState& state, TileElement* inputTileElement); static void ride_ratings_add(RatingTuple* rating, int32_t excitement, int32_t intensity, int32_t nausea); @@ -303,8 +303,8 @@ static void ride_ratings_update_state_3(RideRatingUpdateState& state) return; } - ride_ratings_calculate(state, *ride); - ride_ratings_calculate_value(*ride); + RideRatingsCalculate(state, *ride); + RideRatingsCalculateValue(*ride); WindowInvalidateByNumber(WindowClass::Ride, state.CurrentRide.ToUnderlying()); state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE; @@ -742,7 +742,7 @@ static void ride_ratings_score_close_proximity(RideRatingUpdateState& state, Til } } -static void ride_ratings_calculate(RideRatingUpdateState& state, Ride& ride) +static void RideRatingsCalculate(RideRatingUpdateState& state, Ride& ride) { auto calcFunc = RideRatingsGetCalculateFunc(ride.type); if (calcFunc != nullptr) @@ -795,7 +795,7 @@ static void ride_ratings_calculate(RideRatingUpdateState& state, Ride& ride) #endif } -static void ride_ratings_calculate_value(Ride& ride) +static void RideRatingsCalculateValue(Ride& ride) { struct row { @@ -1745,7 +1745,7 @@ static void ride_ratings_apply_first_length_penalty( #pragma region Ride rating calculation functions -void ride_ratings_calculate_spiral_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSpiralRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1791,7 +1791,7 @@ void ride_ratings_calculate_spiral_roller_coaster(Ride& ride, RideRatingUpdateSt ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_stand_up_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateStandUpRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1829,7 +1829,7 @@ void ride_ratings_calculate_stand_up_roller_coaster(Ride& ride, RideRatingUpdate ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_suspended_swinging_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSuspendedSwingingCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1869,7 +1869,7 @@ void ride_ratings_calculate_suspended_swinging_coaster(Ride& ride, RideRatingUpd ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_inverted_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateInvertedRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1912,7 +1912,7 @@ void ride_ratings_calculate_inverted_roller_coaster(Ride& ride, RideRatingUpdate ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_junior_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateJuniorRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1950,7 +1950,7 @@ void ride_ratings_calculate_junior_roller_coaster(Ride& ride, RideRatingUpdateSt ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_miniature_railway(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMiniatureRailway(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -1985,7 +1985,7 @@ void ride_ratings_calculate_miniature_railway(Ride& ride, RideRatingUpdateState& ride.sheltered_eighths = shelteredEighths.TotalShelteredEighths; } -void ride_ratings_calculate_monorail(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMonorail(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2020,7 +2020,7 @@ void ride_ratings_calculate_monorail(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = shelteredEighths.TotalShelteredEighths; } -void ride_ratings_calculate_mini_suspended_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMiniSuspendedCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2059,7 +2059,7 @@ void ride_ratings_calculate_mini_suspended_coaster(Ride& ride, RideRatingUpdateS ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_boat_hire(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateBoatHire(Ride& ride, RideRatingUpdateState& state) { ride.unreliability_factor = 7; set_unreliability_factor(ride); @@ -2091,7 +2091,7 @@ void ride_ratings_calculate_boat_hire(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = 0; } -void ride_ratings_calculate_wooden_wild_mouse(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateWoodenWildMouse(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2132,7 +2132,7 @@ void ride_ratings_calculate_wooden_wild_mouse(Ride& ride, RideRatingUpdateState& ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_steeplechase(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSteeplechase(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2172,7 +2172,7 @@ void ride_ratings_calculate_steeplechase(Ride& ride, RideRatingUpdateState& stat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_car_ride(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateCarRide(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2206,7 +2206,7 @@ void ride_ratings_calculate_car_ride(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_launched_freefall(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateLaunchedFreefall(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2257,7 +2257,7 @@ void ride_ratings_calculate_launched_freefall(Ride& ride, RideRatingUpdateState& ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_bobsleigh_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateBobsleighCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2295,7 +2295,7 @@ void ride_ratings_calculate_bobsleigh_coaster(Ride& ride, RideRatingUpdateState& ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_observation_tower(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateObservationTower(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2324,7 +2324,7 @@ void ride_ratings_calculate_observation_tower(Ride& ride, RideRatingUpdateState& ride.excitement /= 4; } -void ride_ratings_calculate_looping_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateLoopingRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2370,7 +2370,7 @@ void ride_ratings_calculate_looping_roller_coaster(Ride& ride, RideRatingUpdateS ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_dinghy_slide(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateDinghySlide(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2408,7 +2408,7 @@ void ride_ratings_calculate_dinghy_slide(Ride& ride, RideRatingUpdateState& stat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mine_train_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMineTrainCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2448,7 +2448,7 @@ void ride_ratings_calculate_mine_train_coaster(Ride& ride, RideRatingUpdateState ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_chairlift(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateChairlift(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2490,7 +2490,7 @@ void ride_ratings_calculate_chairlift(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = shelteredEighths.TotalShelteredEighths; } -void ride_ratings_calculate_corkscrew_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateCorkscrewRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2536,7 +2536,7 @@ void ride_ratings_calculate_corkscrew_roller_coaster(Ride& ride, RideRatingUpdat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_maze(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMaze(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2562,7 +2562,7 @@ void ride_ratings_calculate_maze(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = 0; } -void ride_ratings_calculate_spiral_slide(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSpiralSlide(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2591,7 +2591,7 @@ void ride_ratings_calculate_spiral_slide(Ride& ride, RideRatingUpdateState& stat ride.sheltered_eighths = 2; } -void ride_ratings_calculate_go_karts(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateGoKarts(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2632,7 +2632,7 @@ void ride_ratings_calculate_go_karts(Ride& ride, RideRatingUpdateState& state) ride.excitement /= 2; } -void ride_ratings_calculate_log_flume(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateLogFlume(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2664,7 +2664,7 @@ void ride_ratings_calculate_log_flume(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_river_rapids(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateRiverRapids(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -2697,7 +2697,7 @@ void ride_ratings_calculate_river_rapids(Ride& ride, RideRatingUpdateState& stat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_dodgems(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateDodgems(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2732,7 +2732,7 @@ void ride_ratings_calculate_dodgems(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = 7; } -void ride_ratings_calculate_swinging_ship(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSwingingShip(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2757,7 +2757,7 @@ void ride_ratings_calculate_swinging_ship(Ride& ride, RideRatingUpdateState& sta ride.sheltered_eighths = 0; } -void ride_ratings_calculate_inverter_ship(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateInverterShip(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2782,25 +2782,25 @@ void ride_ratings_calculate_inverter_ship(Ride& ride, RideRatingUpdateState& sta ride.sheltered_eighths = 0; } -void ride_ratings_calculate_food_stall(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateFoodStall(Ride& ride, RideRatingUpdateState& state) { ride.upkeep_cost = ride_compute_upkeep(state, ride); ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_drink_stall(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateDrinkStall(Ride& ride, RideRatingUpdateState& state) { ride.upkeep_cost = ride_compute_upkeep(state, ride); ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_shop(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateShop(Ride& ride, RideRatingUpdateState& state) { ride.upkeep_cost = ride_compute_upkeep(state, ride); ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_merry_go_round(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMerryGoRound(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2822,19 +2822,19 @@ void ride_ratings_calculate_merry_go_round(Ride& ride, RideRatingUpdateState& st ride.sheltered_eighths = 7; } -void ride_ratings_calculate_information_kiosk(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateInformationKiosk(Ride& ride, RideRatingUpdateState& state) { ride.upkeep_cost = ride_compute_upkeep(state, ride); ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_toilets(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateToilets(Ride& ride, RideRatingUpdateState& state) { ride.upkeep_cost = ride_compute_upkeep(state, ride); ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_ferris_wheel(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateFerrisWheel(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2856,7 +2856,7 @@ void ride_ratings_calculate_ferris_wheel(Ride& ride, RideRatingUpdateState& stat ride.sheltered_eighths = 0; } -void ride_ratings_calculate_motion_simulator(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMotionSimulator(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2889,7 +2889,7 @@ void ride_ratings_calculate_motion_simulator(Ride& ride, RideRatingUpdateState& ride.sheltered_eighths = 7; } -void ride_ratings_calculate_3d_cinema(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculate3dCinema(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2929,7 +2929,7 @@ void ride_ratings_calculate_3d_cinema(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths |= 7; } -void ride_ratings_calculate_top_spin(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateTopSpin(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2971,7 +2971,7 @@ void ride_ratings_calculate_top_spin(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = 0; } -void ride_ratings_calculate_space_rings(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSpaceRings(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -2993,7 +2993,7 @@ void ride_ratings_calculate_space_rings(Ride& ride, RideRatingUpdateState& state ride.sheltered_eighths = 0; } -void ride_ratings_calculate_reverse_freefall_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateReverseFreefallCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3023,7 +3023,7 @@ void ride_ratings_calculate_reverse_freefall_coaster(Ride& ride, RideRatingUpdat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_lift(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateLift(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3054,7 +3054,7 @@ void ride_ratings_calculate_lift(Ride& ride, RideRatingUpdateState& state) ride.excitement /= 4; } -void ride_ratings_calculate_vertical_drop_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateVerticalDropRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3092,13 +3092,13 @@ void ride_ratings_calculate_vertical_drop_roller_coaster(Ride& ride, RideRatingU ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_cash_machine(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateCashMachine(Ride& ride, RideRatingUpdateState& state) { ride.upkeep_cost = ride_compute_upkeep(state, ride); ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_twist(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateTwist(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3120,7 +3120,7 @@ void ride_ratings_calculate_twist(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = 0; } -void ride_ratings_calculate_haunted_house(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateHauntedHouse(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3144,7 +3144,7 @@ void ride_ratings_calculate_haunted_house(Ride& ride, RideRatingUpdateState& sta ride.sheltered_eighths = 7; } -void ride_ratings_calculate_flying_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateFlyingRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3189,7 +3189,7 @@ void ride_ratings_calculate_flying_roller_coaster(Ride& ride, RideRatingUpdateSt ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_virginia_reel(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateVirginiaReel(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3226,7 +3226,7 @@ void ride_ratings_calculate_virginia_reel(Ride& ride, RideRatingUpdateState& sta ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_splash_boats(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSplashBoats(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3258,7 +3258,7 @@ void ride_ratings_calculate_splash_boats(Ride& ride, RideRatingUpdateState& stat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mini_helicopters(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMiniHelicopters(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3292,7 +3292,7 @@ void ride_ratings_calculate_mini_helicopters(Ride& ride, RideRatingUpdateState& ride.sheltered_eighths = 6; } -void ride_ratings_calculate_lay_down_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateLayDownRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3342,7 +3342,7 @@ void ride_ratings_calculate_lay_down_roller_coaster(Ride& ride, RideRatingUpdate ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_suspended_monorail(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSuspendedMonorail(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3377,7 +3377,7 @@ void ride_ratings_calculate_suspended_monorail(Ride& ride, RideRatingUpdateState ride.sheltered_eighths = shelteredEighths.TotalShelteredEighths; } -void ride_ratings_calculate_reverser_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateReverserRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3425,7 +3425,7 @@ void ride_ratings_calculate_reverser_roller_coaster(Ride& ride, RideRatingUpdate ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_heartline_twister_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateHeartlineTwisterCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3469,7 +3469,7 @@ void ride_ratings_calculate_heartline_twister_coaster(Ride& ride, RideRatingUpda ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mini_golf(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMiniGolf(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3507,13 +3507,13 @@ void ride_ratings_calculate_mini_golf(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_first_aid(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateFirstAid(Ride& ride, RideRatingUpdateState& state) { ride.upkeep_cost = ride_compute_upkeep(state, ride); ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME; } -void ride_ratings_calculate_circus(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateCircus(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3537,7 +3537,7 @@ void ride_ratings_calculate_circus(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = 7; } -void ride_ratings_calculate_ghost_train(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateGhostTrain(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3570,7 +3570,7 @@ void ride_ratings_calculate_ghost_train(Ride& ride, RideRatingUpdateState& state ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_twister_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateTwisterRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3616,7 +3616,7 @@ void ride_ratings_calculate_twister_roller_coaster(Ride& ride, RideRatingUpdateS ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_wooden_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateWoodenRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3656,7 +3656,7 @@ void ride_ratings_calculate_wooden_roller_coaster(Ride& ride, RideRatingUpdateSt ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_side_friction_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSideFrictionRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3695,7 +3695,7 @@ void ride_ratings_calculate_side_friction_roller_coaster(Ride& ride, RideRatingU ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_wild_mouse(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateWildMouse(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3735,7 +3735,7 @@ void ride_ratings_calculate_wild_mouse(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_multi_dimension_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMultiDimensionRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3780,7 +3780,7 @@ void ride_ratings_calculate_multi_dimension_roller_coaster(Ride& ride, RideRatin ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_giga_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateGigaCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3826,7 +3826,7 @@ void ride_ratings_calculate_giga_coaster(Ride& ride, RideRatingUpdateState& stat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_roto_drop(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateRotoDrop(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3854,7 +3854,7 @@ void ride_ratings_calculate_roto_drop(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_flying_saucers(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateFlyingSaucers(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3892,7 +3892,7 @@ void ride_ratings_calculate_flying_saucers(Ride& ride, RideRatingUpdateState& st ride.sheltered_eighths = 0; } -void ride_ratings_calculate_crooked_house(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateCrookedHouse(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -3916,7 +3916,7 @@ void ride_ratings_calculate_crooked_house(Ride& ride, RideRatingUpdateState& sta ride.sheltered_eighths = 7; } -void ride_ratings_calculate_monorail_cycles(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMonorailCycles(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3950,7 +3950,7 @@ void ride_ratings_calculate_monorail_cycles(Ride& ride, RideRatingUpdateState& s ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_compact_inverted_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateCompactInvertedCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -3993,7 +3993,7 @@ void ride_ratings_calculate_compact_inverted_coaster(Ride& ride, RideRatingUpdat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_water_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateWaterCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4034,7 +4034,7 @@ void ride_ratings_calculate_water_coaster(Ride& ride, RideRatingUpdateState& sta ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_air_powered_vertical_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateAirPoweredVerticalCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4065,7 +4065,7 @@ void ride_ratings_calculate_air_powered_vertical_coaster(Ride& ride, RideRatingU ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_inverted_hairpin_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateInvertedHairpinCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4106,7 +4106,7 @@ void ride_ratings_calculate_inverted_hairpin_coaster(Ride& ride, RideRatingUpdat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_magic_carpet(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMagicCarpet(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -4131,7 +4131,7 @@ void ride_ratings_calculate_magic_carpet(Ride& ride, RideRatingUpdateState& stat ride.sheltered_eighths = 0; } -void ride_ratings_calculate_submarine_ride(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSubmarineRide(Ride& ride, RideRatingUpdateState& state) { ride.unreliability_factor = 7; set_unreliability_factor(ride); @@ -4156,7 +4156,7 @@ void ride_ratings_calculate_submarine_ride(Ride& ride, RideRatingUpdateState& st ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_river_rafts(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateRiverRafts(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4186,7 +4186,7 @@ void ride_ratings_calculate_river_rafts(Ride& ride, RideRatingUpdateState& state ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_enterprise(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateEnterprise(Ride& ride, RideRatingUpdateState& state) { ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED; ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS; @@ -4215,7 +4215,7 @@ void ride_ratings_calculate_enterprise(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = 3; } -void ride_ratings_calculate_inverted_impulse_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateInvertedImpulseCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4252,7 +4252,7 @@ void ride_ratings_calculate_inverted_impulse_coaster(Ride& ride, RideRatingUpdat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mini_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMiniRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4291,7 +4291,7 @@ void ride_ratings_calculate_mini_roller_coaster(Ride& ride, RideRatingUpdateStat ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_mine_ride(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateMineRide(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4327,7 +4327,7 @@ void ride_ratings_calculate_mine_ride(Ride& ride, RideRatingUpdateState& state) ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_lim_launched_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateLimLaunchedRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4373,7 +4373,7 @@ void ride_ratings_calculate_lim_launched_roller_coaster(Ride& ride, RideRatingUp ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_classic_mini_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateClassicMiniRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4411,7 +4411,7 @@ void ride_ratings_calculate_classic_mini_roller_coaster(Ride& ride, RideRatingUp ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_hybrid_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateHybridCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4456,7 +4456,7 @@ void ride_ratings_calculate_hybrid_coaster(Ride& ride, RideRatingUpdateState& st ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_single_rail_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateSingleRailRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4502,7 +4502,7 @@ void ride_ratings_calculate_single_rail_roller_coaster(Ride& ride, RideRatingUpd ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_alpine_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateAlpineCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; @@ -4536,7 +4536,7 @@ void ride_ratings_calculate_alpine_coaster(Ride& ride, RideRatingUpdateState& st ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths; } -void ride_ratings_calculate_classic_wooden_roller_coaster(Ride& ride, RideRatingUpdateState& state) +void RideRatingsCalculateClassicWoodenRollerCoaster(Ride& ride, RideRatingUpdateState& state) { if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED)) return; diff --git a/src/openrct2/ride/RideRatings.h b/src/openrct2/ride/RideRatings.h index 17a3a57a44..7ca932121d 100644 --- a/src/openrct2/ride/RideRatings.h +++ b/src/openrct2/ride/RideRatings.h @@ -62,90 +62,90 @@ void RideRatingsUpdateAll(); using ride_ratings_calculation = void (*)(Ride& ride, RideRatingUpdateState& state); ride_ratings_calculation RideRatingsGetCalculateFunc(ride_type_t rideType); -void ride_ratings_calculate_spiral_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_stand_up_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_suspended_swinging_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_inverted_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_junior_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_miniature_railway(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_monorail(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_mini_suspended_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_boat_hire(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_wooden_wild_mouse(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_steeplechase(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_car_ride(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_launched_freefall(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_bobsleigh_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_observation_tower(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_looping_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_dinghy_slide(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_mine_train_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_chairlift(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_corkscrew_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_maze(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_spiral_slide(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_go_karts(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_log_flume(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_river_rapids(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_dodgems(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_swinging_ship(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_inverter_ship(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_food_stall(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_shop(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_merry_go_round(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_information_kiosk(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_toilets(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_ferris_wheel(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_motion_simulator(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_3d_cinema(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_top_spin(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_space_rings(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_reverse_freefall_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_lift(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_vertical_drop_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_cash_machine(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_twist(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_haunted_house(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_first_aid(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_circus(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_ghost_train(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_twister_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_wooden_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_side_friction_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_wild_mouse(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_multi_dimension_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_flying_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_virginia_reel(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_splash_boats(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_mini_helicopters(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_lay_down_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_suspended_monorail(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_reverser_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_heartline_twister_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_mini_golf(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_giga_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_roto_drop(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_flying_saucers(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_crooked_house(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_monorail_cycles(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_compact_inverted_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_water_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_air_powered_vertical_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_inverted_hairpin_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_magic_carpet(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_submarine_ride(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_river_rafts(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_enterprise(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_inverted_impulse_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_mini_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_mine_ride(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_lim_launched_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_classic_mini_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_hybrid_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_single_rail_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_alpine_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_classic_wooden_roller_coaster(Ride& ride, RideRatingUpdateState& state); -void ride_ratings_calculate_drink_stall(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSpiralRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateStandUpRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSuspendedSwingingCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateInvertedRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateJuniorRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMiniatureRailway(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMonorail(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMiniSuspendedCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateBoatHire(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateWoodenWildMouse(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSteeplechase(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateCarRide(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateLaunchedFreefall(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateBobsleighCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateObservationTower(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateLoopingRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateDinghySlide(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMineTrainCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateChairlift(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateCorkscrewRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMaze(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSpiralSlide(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateGoKarts(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateLogFlume(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateRiverRapids(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateDodgems(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSwingingShip(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateInverterShip(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateFoodStall(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateShop(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMerryGoRound(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateInformationKiosk(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateToilets(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateFerrisWheel(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMotionSimulator(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculate3dCinema(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateTopSpin(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSpaceRings(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateReverseFreefallCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateLift(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateVerticalDropRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateCashMachine(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateTwist(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateHauntedHouse(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateFirstAid(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateCircus(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateGhostTrain(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateTwisterRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateWoodenRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSideFrictionRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateWildMouse(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMultiDimensionRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateFlyingRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateVirginiaReel(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSplashBoats(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMiniHelicopters(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateLayDownRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSuspendedMonorail(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateReverserRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateHeartlineTwisterCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMiniGolf(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateGigaCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateRotoDrop(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateFlyingSaucers(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateCrookedHouse(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMonorailCycles(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateCompactInvertedCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateWaterCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateAirPoweredVerticalCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateInvertedHairpinCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMagicCarpet(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSubmarineRide(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateRiverRafts(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateEnterprise(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateInvertedImpulseCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMiniRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateMineRide(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateLimLaunchedRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateClassicMiniRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateHybridCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateSingleRailRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateAlpineCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateClassicWoodenRollerCoaster(Ride& ride, RideRatingUpdateState& state); +void RideRatingsCalculateDrinkStall(Ride& ride, RideRatingUpdateState& state); // Special Track Element Adjustment functions for RTDs void SpecialTrackElementRatingsAjustment_Default(const Ride& ride, int32_t& excitement, int32_t& intensity, int32_t& nausea); diff --git a/src/openrct2/ride/TrackPaint.cpp b/src/openrct2/ride/TrackPaint.cpp index 2e0734f3f9..31d5ceee93 100644 --- a/src/openrct2/ride/TrackPaint.cpp +++ b/src/openrct2/ride/TrackPaint.cpp @@ -231,7 +231,7 @@ enum SPR_STATION_COVER_OFFSET_TALL }; -bool track_paint_util_has_fence( +bool TrackPaintUtilHasFence( enum edge_t edge, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride, uint8_t rotation) { const auto* stationObject = ride.GetStationObject(); @@ -262,7 +262,7 @@ bool track_paint_util_has_fence( return (entranceLoc != station.Entrance && entranceLoc != station.Exit); } -void track_paint_util_paint_floor( +void TrackPaintUtilPaintFloor( PaintSession& session, uint8_t edges, ImageId colourFlags, uint16_t height, const uint32_t floorSprites[4], const StationObject* stationStyle) { @@ -291,26 +291,26 @@ void track_paint_util_paint_floor( PaintAddImageAsParent(session, colourFlags.WithIndex(imageId), { 0, 0, height }, { 32, 32, 1 }, { 0, 0, height }); } -void track_paint_util_paint_fences( +void TrackPaintUtilPaintFences( PaintSession& session, uint8_t edges, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride, const ImageId colourFlags, uint16_t height, const uint32_t fenceSprites[4], uint8_t rotation) { - if (edges & EDGE_NW && track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, rotation)) + if (edges & EDGE_NW && TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, rotation)) { PaintAddImageAsChild( session, colourFlags.WithIndex(fenceSprites[3]), { 0, 0, height }, { { 0, 2, height + 2 }, { 32, 1, 7 } }); } - if (edges & EDGE_NE && track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, rotation)) + if (edges & EDGE_NE && TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, rotation)) { PaintAddImageAsChild( session, colourFlags.WithIndex(fenceSprites[0]), { 0, 0, height }, { { 2, 0, height + 2 }, { 1, 32, 7 } }); } - if (edges & EDGE_SE && track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, rotation)) + if (edges & EDGE_SE && TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, rotation)) { PaintAddImageAsParent( session, colourFlags.WithIndex(fenceSprites[1]), { 0, 0, height }, { { 0, 30, height + 2 }, { 32, 1, 7 } }); } - if (edges & EDGE_SW && track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, rotation)) + if (edges & EDGE_SW && TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, rotation)) { PaintAddImageAsParent( session, colourFlags.WithIndex(fenceSprites[2]), { 0, 0, height }, { 1, 32, 7 }, { 30, 0, height + 2 }); @@ -318,7 +318,7 @@ void track_paint_util_paint_fences( } /* Supports are only placed every 2 tiles for flat pieces*/ -bool track_paint_util_should_paint_supports(const CoordsXY& position) +bool TrackPaintUtilShouldPaintSupports(const CoordsXY& position) { if ((position.x & (1 << 5)) == (position.y & (1 << 5))) return true; @@ -329,31 +329,31 @@ bool track_paint_util_should_paint_supports(const CoordsXY& position) return false; } -static void track_paint_util_draw_station_impl( +static void TrackPaintUtilDrawStationImpl( PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight, const TrackElement& trackElement, int32_t fenceOffsetA, int32_t fenceOffsetB); -void track_paint_util_draw_station( +void TrackPaintUtilDrawStation( PaintSession& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement) { - track_paint_util_draw_station_impl(session, ride, direction, height, height, trackElement, 5, 7); + TrackPaintUtilDrawStationImpl(session, ride, direction, height, height, trackElement, 5, 7); } -void track_paint_util_draw_station_2( +void TrackPaintUtilDrawStation2( PaintSession& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement, int32_t fenceOffsetA, int32_t fenceOffsetB) { - track_paint_util_draw_station_impl(session, ride, direction, height, height, trackElement, fenceOffsetA, fenceOffsetB); + TrackPaintUtilDrawStationImpl(session, ride, direction, height, height, trackElement, fenceOffsetA, fenceOffsetB); } -void track_paint_util_draw_station_3( +void TrackPaintUtilDrawStation3( PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight, const TrackElement& trackElement) { - track_paint_util_draw_station_impl(session, ride, direction, height, coverHeight, trackElement, 5, 7); + TrackPaintUtilDrawStationImpl(session, ride, direction, height, coverHeight, trackElement, 5, 7); } -static void track_paint_util_draw_station_impl( +static void TrackPaintUtilDrawStationImpl( PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight, const TrackElement& trackElement, int32_t fenceOffsetA, int32_t fenceOffsetB) { @@ -370,7 +370,7 @@ static void track_paint_util_draw_station_impl( if (direction == 0 || direction == 2) { // height += 5 (height + 5); - hasFence = track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, session.CurrentRotation); if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 0) { @@ -397,7 +397,7 @@ static void track_paint_util_draw_station_impl( } PaintAddImageAsParent(session, imageId, { 0, 0, height + fenceOffsetA }, { 32, 8, 1 }); // height -= 5 (height) - track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, coverHeight); + TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, coverHeight); // height += 5 (height + 5) if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 0) @@ -416,7 +416,7 @@ static void track_paint_util_draw_station_impl( PaintAddImageAsParent(session, imageId, { 0, 24, height + fenceOffsetA }, { 32, 8, 1 }); // height += 2 (height + 7) - hasFence = track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, session.CurrentRotation); if (hasFence) { if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 0) @@ -446,7 +446,7 @@ static void track_paint_util_draw_station_impl( PaintAddImageAsParent(session, imageId, { 31, 23, height + fenceOffsetB }, { 1, 8, 7 }); } // height -= 7 (height) - track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, coverHeight); + TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, coverHeight); // height += 7 (height + 7) if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 0) @@ -463,7 +463,7 @@ static void track_paint_util_draw_station_impl( else if (direction == 1 || direction == 3) { // height += 5 (height + 5); - hasFence = track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation); if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 3) { @@ -490,7 +490,7 @@ static void track_paint_util_draw_station_impl( } PaintAddImageAsParent(session, imageId, { 0, 0, height + fenceOffsetA }, { 8, 32, 1 }); // height -= 5 (height) - track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, coverHeight); + TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, coverHeight); // height += 5 (height + 5) if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 3) @@ -509,7 +509,7 @@ static void track_paint_util_draw_station_impl( PaintAddImageAsParent(session, imageId, { 24, 0, height + fenceOffsetA }, { 8, 32, 1 }); // height += 2 (height + 7) - hasFence = track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation); if (hasFence) { if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 3) @@ -540,7 +540,7 @@ static void track_paint_util_draw_station_impl( } // height -= 7 (height) - track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, coverHeight); + TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, coverHeight); // height += 7 (height + 7) if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 3) @@ -556,7 +556,7 @@ static void track_paint_util_draw_station_impl( } } -void track_paint_util_draw_station_inverted( +void TrackPaintUtilDrawStationInverted( PaintSession& session, const Ride& ride, Direction direction, int32_t height, const TrackElement& trackElement, uint8_t stationVariant) { @@ -573,7 +573,7 @@ void track_paint_util_draw_station_inverted( if (direction == 0 || direction == 2) { // height += 5 (height + 5); - hasFence = track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, session.CurrentRotation); if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 0) { @@ -600,7 +600,7 @@ void track_paint_util_draw_station_inverted( } PaintAddImageAsParent(session, imageId, { 0, 0, height + 6 }, { 32, 8, 1 }); // height -= 5 (height) - track_paint_util_draw_station_covers_2(session, EDGE_NW, hasFence, stationObj, height, stationVariant); + TrackPaintUtilDrawStationCovers2(session, EDGE_NW, hasFence, stationObj, height, stationVariant); // height += 5 (height + 5) if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 0) @@ -619,7 +619,7 @@ void track_paint_util_draw_station_inverted( PaintAddImageAsParent(session, imageId, { 0, 24, height + 6 }, { 32, 8, 1 }); // height += 2 (height + 7) - hasFence = track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, session.CurrentRotation); if (hasFence) { if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 0) @@ -649,7 +649,7 @@ void track_paint_util_draw_station_inverted( PaintAddImageAsParent(session, imageId, { 31, 23, height + 8 }, { 1, 8, 7 }); } // height -= 7 (height) - track_paint_util_draw_station_covers_2(session, EDGE_SE, hasFence, stationObj, height, stationVariant); + TrackPaintUtilDrawStationCovers2(session, EDGE_SE, hasFence, stationObj, height, stationVariant); // height += 7 (height + 7) if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 0) @@ -666,7 +666,7 @@ void track_paint_util_draw_station_inverted( else if (direction == 1 || direction == 3) { // height += 5 (height + 5); - hasFence = track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation); if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 3) { @@ -693,7 +693,7 @@ void track_paint_util_draw_station_inverted( } PaintAddImageAsParent(session, imageId, { 0, 0, height + 6 }, { 8, 32, 1 }); // height -= 5 (height) - track_paint_util_draw_station_covers_2(session, EDGE_NE, hasFence, stationObj, height, stationVariant); + TrackPaintUtilDrawStationCovers2(session, EDGE_NE, hasFence, stationObj, height, stationVariant); // height += 5 (height + 5) if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 3) @@ -712,7 +712,7 @@ void track_paint_util_draw_station_inverted( PaintAddImageAsParent(session, imageId, { 24, 0, height + 6 }, { 8, 32, 1 }); // height += 2 (height + 7) - hasFence = track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation); if (hasFence) { if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 3) @@ -743,7 +743,7 @@ void track_paint_util_draw_station_inverted( } // height -= 7 (height) - track_paint_util_draw_station_covers_2(session, EDGE_SW, hasFence, stationObj, height, stationVariant); + TrackPaintUtilDrawStationCovers2(session, EDGE_SW, hasFence, stationObj, height, stationVariant); // height += 7 (height + 7) if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 3) @@ -759,13 +759,13 @@ void track_paint_util_draw_station_inverted( } } -bool track_paint_util_draw_station_covers( +bool TrackPaintUtilDrawStationCovers( PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height) { - return track_paint_util_draw_station_covers_2(session, edge, hasFence, stationObject, height, STATION_VARIANT_BASIC); + return TrackPaintUtilDrawStationCovers2(session, edge, hasFence, stationObject, height, STATION_VARIANT_BASIC); } -bool track_paint_util_draw_station_covers_2( +bool TrackPaintUtilDrawStationCovers2( PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height, uint8_t stationVariant) { @@ -830,7 +830,7 @@ bool track_paint_util_draw_station_covers_2( return true; } -void track_paint_util_draw_narrow_station_platform( +void TrackPaintUtilDrawNarrowStationPlatform( PaintSession& session, const Ride& ride, Direction direction, int32_t height, int32_t zOffset, const TrackElement& trackElement) { @@ -841,45 +841,45 @@ void track_paint_util_draw_narrow_station_platform( if (direction & 1) { - bool hasFence = track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, session.CurrentRotation); + bool hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation); ImageId imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex( (hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NE : SPR_STATION_NARROW_EDGE_NE)); PaintAddImageAsParent(session, imageId, { 0, 0, height + zOffset }, { 8, 32, 1 }); - track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height); imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_NARROW_EDGE_SW); PaintAddImageAsParent(session, imageId, { 24, 0, height + zOffset }, { 8, 32, 1 }); - hasFence = track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation); if (hasFence) { imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_FENCE_NW_SE); PaintAddImageAsParent(session, imageId, { 31, 0, height + zOffset + 2 }, { 1, 32, 7 }); } - track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, height); } else { - bool hasFence = track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, session.CurrentRotation); + bool hasFence = TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, session.CurrentRotation); ImageId imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex( (hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NW : SPR_STATION_NARROW_EDGE_NW)); PaintAddImageAsParent(session, imageId, { 0, 0, height + zOffset }, { 32, 8, 1 }); - track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height); imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_NARROW_EDGE_SE); PaintAddImageAsParent(session, imageId, { 0, 24, height + zOffset }, { 32, 8, 1 }); - hasFence = track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, session.CurrentRotation); if (hasFence) { imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_FENCE_SW_NE); PaintAddImageAsParent(session, imageId, { 0, 31, height + zOffset + 2 }, { 32, 1, 7 }); } - track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, height); } } -void track_paint_util_draw_pier( +void TrackPaintUtilDrawPier( PaintSession& session, const Ride& ride, const StationObject* stationObj, const CoordsXY& position, Direction direction, int32_t height, const TrackElement& trackElement, uint8_t rotation) { @@ -891,50 +891,50 @@ void track_paint_util_draw_pier( if (direction & 1) { - hasFence = track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation); imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex( (hasFence ? SPR_STATION_PIER_EDGE_NE_FENCED : SPR_STATION_PIER_EDGE_NE)); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 1 }, { 2, 0, height }); - track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height); imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_PIER_EDGE_SW); PaintAddImageAsParent(session, imageId, { 24, 0, height }, { 8, 32, 1 }); - hasFence = track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation); if (hasFence) { imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_PIER_FENCE_SW); PaintAddImageAsParent(session, imageId, { 31, 0, height + 2 }, { 1, 32, 7 }); } - track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, height); } else { - hasFence = track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, rotation); + hasFence = TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, rotation); imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex( (hasFence ? SPR_STATION_PIER_EDGE_NW_FENCED : SPR_STATION_PIER_EDGE_NW)); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 1 }, { 0, 2, height }); - track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height); imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_PIER_EDGE_SE); PaintAddImageAsParent(session, imageId, { 0, 24, height }, { 32, 8, 1 }); - hasFence = track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, rotation); + hasFence = TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, rotation); if (hasFence) { imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_PIER_FENCE_SE); PaintAddImageAsParent(session, imageId, { 0, 31, height + 2 }, { 32, 1, 7 }); } - track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, height); } } -void track_paint_util_draw_station_metal_supports(PaintSession& session, Direction direction, uint16_t height, ImageId colour) +void TrackPaintUtilDrawStationMetalSupports(PaintSession& session, Direction direction, uint16_t height, ImageId colour) { - track_paint_util_draw_station_metal_supports_2(session, direction, height, colour, 3); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, colour, 3); } -void track_paint_util_draw_station_metal_supports_2( +void TrackPaintUtilDrawStationMetalSupports2( PaintSession& session, Direction direction, uint16_t height, ImageId colour, uint8_t type) { if (direction & 1) @@ -1002,7 +1002,7 @@ static constexpr const int8_t right_helix_up_small_quarter_tiles_sprite_map[] = 2, }; -void track_paint_util_right_helix_up_small_quarter_tiles_paint( +void TrackPaintUtilRightHelixUpSmallQuarterTilesPaint( PaintSession& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3][2], const CoordsXY offsets[4][3][2], const CoordsXY boundsLengths[4][3][2], const CoordsXYZ boundsOffsets[4][3][2]) @@ -1102,7 +1102,7 @@ constexpr CoordsXY defaultRightHelixUpLargeQuarterBoundLengths[4][5][2] = { static constexpr const int8_t right_helix_up_large_quarter_sprite_map[] = { 0, -1, 1, 2, -1, 3, 4, }; -void track_paint_util_right_helix_up_large_quarter_tiles_paint( +void TrackPaintUtilRightHelixUpLargeQuarterTilesPaint( PaintSession& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][5][2], const CoordsXY offsets[4][5][2], const CoordsXY boundsLengths[4][5][2], const CoordsXYZ boundsOffsets[4][5][2]) @@ -1279,7 +1279,7 @@ const uint8_t mapLeftEighthTurnToOrthogonal[] = { static constexpr const int8_t eighth_to_diag_sprite_map[] = { 0, 1, 2, -1, 3, }; -void track_paint_util_eighth_to_diag_tiles_paint( +void TrackPaintUtilEighthToDiagTilesPaint( PaintSession& session, const int8_t thickness[4][4], int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][4], const CoordsXY offsets[4][4], const CoordsXY boundsLengths[4][4], const CoordsXYZ boundsOffsets[4][4]) @@ -1321,7 +1321,7 @@ static constexpr const int8_t diag_sprite_map[4][4] = { { 0, -1, -1, -1 }, }; -void track_paint_util_diag_tiles_paint( +void TrackPaintUtilDiagTilesPaint( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4], const CoordsXY offsets[4], const CoordsXY boundsLengths[4], const CoordsXYZ boundsOffsets[4]) @@ -1443,7 +1443,7 @@ static constexpr const int8_t right_quarter_turn_5_tiles_sprite_map[] = { 0, -1, 1, 2, -1, 3, 4, }; -void track_paint_util_right_quarter_turn_5_tiles_paint( +void TrackPaintUtilRightQuarterTurn5TilesPaint( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][5], const CoordsXY offsets[4][5], const CoordsXY boundsLengths[4][5], const CoordsXYZ boundsOffsets[4][5]) @@ -1464,7 +1464,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint( { boundsLength.x, boundsLength.y, thickness }, { boundsOffset.x, boundsOffset.y, height + boundsOffset.z }); } -void track_paint_util_right_quarter_turn_5_tiles_paint_2( +void TrackPaintUtilRightQuarterTurn5TilesPaint2( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const SpriteBb sprites[][5]) { @@ -1483,7 +1483,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_2( { bbOffset.x, bbOffset.y, height + bbOffset.z }); } -void track_paint_util_right_quarter_turn_5_tiles_paint_3( +void TrackPaintUtilRightQuarterTurn5TilesPaint3( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const SpriteBb sprites[][5]) { @@ -1499,7 +1499,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_3( PaintAddImageAsParent(session, imageId, { offset.x, offset.y, height + offset.z }, spriteBB->bb_size); } -void track_paint_util_right_quarter_turn_5_tiles_tunnel( +void TrackPaintUtilRightQuarterTurn5TilesTunnel( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType) { if (direction == 0 && trackSequence == 0) @@ -1520,7 +1520,7 @@ void track_paint_util_right_quarter_turn_5_tiles_tunnel( } } -void track_paint_util_right_quarter_turn_5_tiles_wooden_supports( +void TrackPaintUtilRightQuarterTurn5TilesWoodenSupports( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence) { if (trackSequence != 1 && trackSequence != 4) @@ -1619,7 +1619,7 @@ static constexpr const int8_t right_quarter_turn_3_tiles_sprite_map[] = { 2, }; -void track_paint_util_right_quarter_turn_3_tiles_paint( +void TrackPaintUtilRightQuarterTurn3TilesPaint( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3], const CoordsXY offsets[4][3], const CoordsXY boundsLengths[4][3], const CoordsXYZ boundsOffsets[4][3]) @@ -1640,15 +1640,15 @@ void track_paint_util_right_quarter_turn_3_tiles_paint( { boundsOffset.x, boundsOffset.y, height + boundsOffset.z }); } -void track_paint_util_right_quarter_turn_3_tiles_paint_2( +void TrackPaintUtilRightQuarterTurn3TilesPaint2( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3]) { - track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset( + TrackPaintUtilRightQuarterTurn3TilesPaint2WithHeightOffset( session, thickness, height, direction, trackSequence, colourFlags, sprites, 0); } -void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset( +void TrackPaintUtilRightQuarterTurn3TilesPaint2WithHeightOffset( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3], int32_t heightOffset) { @@ -1736,7 +1736,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset( } } -void track_paint_util_right_quarter_turn_3_tiles_paint_3( +void TrackPaintUtilRightQuarterTurn3TilesPaint3( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const SpriteBb sprites[4][3]) { @@ -1753,7 +1753,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_3( { bbOffset.x, bbOffset.y, height + bbOffset.z }); } -void track_paint_util_right_quarter_turn_3_tiles_paint_4( +void TrackPaintUtilRightQuarterTurn3TilesPaint4( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const SpriteBb sprites[4][3]) { @@ -1769,7 +1769,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_4( PaintAddImageAsParent(session, imageId, { offset.x, offset.y, height + offset.z }, spriteBB->bb_size); } -void track_paint_util_right_quarter_turn_3_tiles_tunnel( +void TrackPaintUtilRightQuarterTurn3TilesTunnel( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType) { if (direction == 0 && trackSequence == 0) @@ -1793,7 +1793,7 @@ void track_paint_util_right_quarter_turn_3_tiles_tunnel( } } -void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel( +void TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3) { if (direction == 0 && trackSequence == 0) @@ -1814,7 +1814,7 @@ void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel( } } -void track_paint_util_right_quarter_turn_3_tiles_25_deg_down_tunnel( +void TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3) { if (direction == 0 && trackSequence == 0) @@ -1842,15 +1842,15 @@ static constexpr const int8_t left_quarter_turn_3_tiles_sprite_map[] = { 0, }; -void track_paint_util_left_quarter_turn_3_tiles_paint( +void TrackPaintUtilLeftQuarterTurn3TilesPaint( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3]) { - track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset( + TrackPaintUtilLeftQuarterTurn3TilesPaintWithHeightOffset( session, thickness, height, direction, trackSequence, colourFlags, sprites, 0); } -void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset( +void TrackPaintUtilLeftQuarterTurn3TilesPaintWithHeightOffset( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3], int32_t heightOffset) { @@ -1938,7 +1938,7 @@ void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset( } } -void track_paint_util_left_quarter_turn_3_tiles_tunnel( +void TrackPaintUtilLeftQuarterTurn3TilesTunnel( PaintSession& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence) { if (direction == 0 && trackSequence == 0) @@ -1962,7 +1962,7 @@ void track_paint_util_left_quarter_turn_3_tiles_tunnel( } } -void track_paint_util_left_quarter_turn_1_tile_paint( +void TrackPaintUtilLeftQuarterTurn1TilePaint( PaintSession& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction, const ImageId colourFlags, const uint32_t* sprites) { @@ -1989,15 +1989,15 @@ void track_paint_util_left_quarter_turn_1_tile_paint( } } -void track_paint_util_right_quarter_turn_1_tile_tunnel( +void TrackPaintUtilRightQuarterTurn1TileTunnel( PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset, uint8_t endTunnel) { - track_paint_util_left_quarter_turn_1_tile_tunnel( + TrackPaintUtilLeftQuarterTurn1TileTunnel( session, (direction + 3) % 4, baseHeight, endOffset, endTunnel, startOffset, startTunnel); } -void track_paint_util_left_quarter_turn_1_tile_tunnel( +void TrackPaintUtilLeftQuarterTurn1TileTunnel( PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset, uint8_t endTunnel) { @@ -2016,7 +2016,7 @@ void track_paint_util_left_quarter_turn_1_tile_tunnel( } } -void track_paint_util_spinning_tunnel_paint(PaintSession& session, int8_t thickness, int16_t height, Direction direction) +void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, int16_t height, Direction direction) { int32_t frame = gCurrentTicks >> 2 & 3; auto colourFlags = session.TrackColours[SCHEME_SUPPORTS]; @@ -2048,7 +2048,7 @@ void track_paint_util_spinning_tunnel_paint(PaintSession& session, int8_t thickn } } -void track_paint_util_onride_photo_small_paint( +void TrackPaintUtilOnridePhotoSmallPaint( PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement) { static constexpr const uint32_t imageIds[4][3] = { @@ -2086,7 +2086,7 @@ void track_paint_util_onride_photo_small_paint( } } -void track_paint_util_onride_photo_paint( +void TrackPaintUtilOnridePhotoPaint( PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement) { static constexpr const uint32_t imageIds[4][3] = { @@ -2137,7 +2137,7 @@ static constexpr const uint16_t RightVerticalLoopSegments[] = { SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, }; -void track_paint_util_right_vertical_loop_segments(PaintSession& session, Direction direction, uint8_t trackSequence) +void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence) { if (trackSequence > 9) { @@ -2149,7 +2149,7 @@ void track_paint_util_right_vertical_loop_segments(PaintSession& session, Direct session, PaintUtilRotateSegments(RightVerticalLoopSegments[trackSequence], direction), 0xFFFF, 0); } -void track_paint_util_left_corkscrew_up_supports(PaintSession& session, Direction direction, uint16_t height) +void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& session, Direction direction, uint16_t height) { // TODO: Figure out which of these looks best, and use one to keep a consistent world if (direction == 2) diff --git a/src/openrct2/ride/TrackPaint.h b/src/openrct2/ride/TrackPaint.h index 58669b848c..69e121cf40 100644 --- a/src/openrct2/ride/TrackPaint.h +++ b/src/openrct2/ride/TrackPaint.h @@ -279,198 +279,198 @@ extern const uint8_t mapLeftEighthTurnToOrthogonal[5]; extern const size_t MiniGolfPeepAnimationLengths[]; -bool track_paint_util_has_fence( +bool TrackPaintUtilHasFence( enum edge_t edge, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride, uint8_t rotation); -void track_paint_util_paint_floor( +void TrackPaintUtilPaintFloor( PaintSession& session, uint8_t edges, ImageId colourFlags, uint16_t height, const uint32_t floorSprites[4], const StationObject* stationStyle); -void track_paint_util_paint_fences( +void TrackPaintUtilPaintFences( PaintSession& session, uint8_t edges, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride, const ImageId colourFlags, uint16_t height, const uint32_t fenceSprites[4], uint8_t rotation); -bool track_paint_util_draw_station_covers( +bool TrackPaintUtilDrawStationCovers( PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height); -bool track_paint_util_draw_station_covers_2( +bool TrackPaintUtilDrawStationCovers2( PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height, uint8_t stationVariant); -void track_paint_util_draw_narrow_station_platform( +void TrackPaintUtilDrawNarrowStationPlatform( PaintSession& session, const Ride& ride, Direction direction, int32_t height, int32_t zOffset, const TrackElement& trackElement); -void track_paint_util_draw_station( +void TrackPaintUtilDrawStation( PaintSession& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement); -void track_paint_util_draw_station_2( +void TrackPaintUtilDrawStation2( PaintSession& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement, int32_t fenceOffsetA, int32_t fenceOffsetB); -void track_paint_util_draw_station_3( +void TrackPaintUtilDrawStation3( PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight, const TrackElement& trackElement); -void track_paint_util_draw_station_inverted( +void TrackPaintUtilDrawStationInverted( PaintSession& session, const Ride& ride, Direction direction, int32_t height, const TrackElement& trackElement, uint8_t stationVariant); -bool track_paint_util_should_paint_supports(const CoordsXY& position); -void track_paint_util_draw_pier( +bool TrackPaintUtilShouldPaintSupports(const CoordsXY& position); +void TrackPaintUtilDrawPier( PaintSession& session, const Ride& ride, const StationObject* stationObject, const CoordsXY& position, Direction direction, int32_t height, const TrackElement& trackElement, uint8_t rotation); -void track_paint_util_draw_station_metal_supports(PaintSession& session, Direction direction, uint16_t height, ImageId colour); -void track_paint_util_draw_station_metal_supports_2( +void TrackPaintUtilDrawStationMetalSupports(PaintSession& session, Direction direction, uint16_t height, ImageId colour); +void TrackPaintUtilDrawStationMetalSupports2( PaintSession& session, Direction direction, uint16_t height, ImageId colour, uint8_t type); -void track_paint_util_right_quarter_turn_5_tiles_paint( +void TrackPaintUtilRightQuarterTurn5TilesPaint( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][5], const CoordsXY offsets[4][5], const CoordsXY boundsLengths[4][5], const CoordsXYZ boundsOffsets[4][5]); -void track_paint_util_right_quarter_turn_5_tiles_paint_2( +void TrackPaintUtilRightQuarterTurn5TilesPaint2( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const SpriteBb sprites[][5]); -void track_paint_util_right_quarter_turn_5_tiles_paint_3( +void TrackPaintUtilRightQuarterTurn5TilesPaint3( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const SpriteBb sprites[][5]); -void track_paint_util_right_quarter_turn_5_tiles_tunnel( +void TrackPaintUtilRightQuarterTurn5TilesTunnel( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType); -void track_paint_util_right_quarter_turn_5_tiles_wooden_supports( +void TrackPaintUtilRightQuarterTurn5TilesWoodenSupports( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence); -void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel( +void TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3); -void track_paint_util_right_quarter_turn_3_tiles_25_deg_down_tunnel( +void TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3); -void track_paint_util_right_quarter_turn_3_tiles_paint( +void TrackPaintUtilRightQuarterTurn3TilesPaint( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3], const CoordsXY offsets[4][3], const CoordsXY boundsLengths[4][3], const CoordsXYZ boundsOffsets[4][3]); -void track_paint_util_right_quarter_turn_3_tiles_paint_2( +void TrackPaintUtilRightQuarterTurn3TilesPaint2( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3]); -void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset( +void TrackPaintUtilRightQuarterTurn3TilesPaint2WithHeightOffset( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3], int32_t heightOffset); -void track_paint_util_right_quarter_turn_3_tiles_paint_3( +void TrackPaintUtilRightQuarterTurn3TilesPaint3( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const SpriteBb sprites[4][3]); -void track_paint_util_right_quarter_turn_3_tiles_paint_4( +void TrackPaintUtilRightQuarterTurn3TilesPaint4( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const SpriteBb sprites[4][3]); -void track_paint_util_right_quarter_turn_3_tiles_tunnel( +void TrackPaintUtilRightQuarterTurn3TilesTunnel( PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType); -void track_paint_util_left_quarter_turn_3_tiles_paint( +void TrackPaintUtilLeftQuarterTurn3TilesPaint( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3]); -void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset( +void TrackPaintUtilLeftQuarterTurn3TilesPaintWithHeightOffset( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3], int32_t heightOffset); -void track_paint_util_left_quarter_turn_3_tiles_tunnel( +void TrackPaintUtilLeftQuarterTurn3TilesTunnel( PaintSession& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence); -void track_paint_util_left_quarter_turn_1_tile_paint( +void TrackPaintUtilLeftQuarterTurn1TilePaint( PaintSession& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction, const ImageId colourFlags, const uint32_t* sprites); -void track_paint_util_spinning_tunnel_paint(PaintSession& session, int8_t thickness, int16_t height, Direction direction); -void track_paint_util_onride_photo_small_paint( +void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, int16_t height, Direction direction); +void TrackPaintUtilOnridePhotoSmallPaint( PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement); -void track_paint_util_onride_photo_paint( +void TrackPaintUtilOnridePhotoPaint( PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement); -void track_paint_util_right_helix_up_small_quarter_tiles_paint( +void TrackPaintUtilRightHelixUpSmallQuarterTilesPaint( PaintSession& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][3][2], const CoordsXY offsets[4][3][2], const CoordsXY boundsLengths[4][3][2], const CoordsXYZ boundsOffsets[4][3][2]); -void track_paint_util_right_helix_up_large_quarter_tiles_paint( +void TrackPaintUtilRightHelixUpLargeQuarterTilesPaint( PaintSession& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][5][2], const CoordsXY offsets[4][5][2], const CoordsXY boundsLengths[4][5][2], const CoordsXYZ boundsOffsets[4][5][2]); -void track_paint_util_eighth_to_diag_tiles_paint( +void TrackPaintUtilEighthToDiagTilesPaint( PaintSession& session, const int8_t thickness[4][4], int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4][4], const CoordsXY offsets[4][4], const CoordsXY boundsLengths[4][4], const CoordsXYZ boundsOffsets[4][4]); -void track_paint_util_diag_tiles_paint( +void TrackPaintUtilDiagTilesPaint( PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags, const uint32_t sprites[4], const CoordsXY offsets[4], const CoordsXY boundsLengths[4], const CoordsXYZ boundsOffsets[4]); -void track_paint_util_left_quarter_turn_1_tile_tunnel( +void TrackPaintUtilLeftQuarterTurn1TileTunnel( PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset, uint8_t endTunnel); -void track_paint_util_right_quarter_turn_1_tile_tunnel( +void TrackPaintUtilRightQuarterTurn1TileTunnel( PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset, uint8_t endTunnel); -void track_paint_util_right_vertical_loop_segments(PaintSession& session, Direction direction, uint8_t trackSequence); +void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence); -void track_paint_util_left_corkscrew_up_supports(PaintSession& session, Direction direction, uint16_t height); +void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& session, Direction direction, uint16_t height); using TRACK_PAINT_FUNCTION = void (*)( PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height, const TrackElement& trackElement); using TRACK_PAINT_FUNCTION_GETTER = TRACK_PAINT_FUNCTION (*)(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_junior_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_monorail(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_mini_suspended_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_miniature_railway(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_boat_hire(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_wooden_wild_mouse(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionStandUpRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSuspendedSwingingRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionJuniorRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMonorail(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniSuspendedRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniatureRailway(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionBoatHire(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenWildMouse(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSteeplechase(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionCarRide(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_launched_freefall(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLaunchedFreefall(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionBobsleighRc(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionObservationTower(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_dinghy_slide(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_mine_train_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_chairlift(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLoopingRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionDinghySlide(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineTrainRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionChairlift(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionCorkscrewRc(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionMaze(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionSpiralSlide(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_log_flume(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_river_rapids(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionGoKarts(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLogFlume(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionRiverRapids(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionDodgems(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_swinging_ship(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_swinging_inverter_ship(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSwingingShip(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSwingingInverterShip(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionFerrisWheel(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_motionsimulator(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_3d_cinema(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_topspin(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMotionsimulator(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunction3dCinema(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionTopspin(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionSpaceRings(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_lift(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_shop(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionReverseFreefallRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLift(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionShop(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionMerryGoRound(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_facility(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_twist(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionFacility(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionTwist(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionHauntedHouse(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionCircus(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionGhostTrain(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_side_friction_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_wooden_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_wild_mouse(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_multi_dimension_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_virginia_reel(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_splash_boats(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSideFrictionRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionWildMouse(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMultiDimensionRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionFlyingRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionVirginiaReel(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSplashBoats(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniHelicopters(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_suspended_monorail(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_heartline_twister_rc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLayDownRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSuspendedMonorail(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionReverserRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionHeartlineTwisterRc(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniGolf(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_roto_drop(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionGigaRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionRotoDrop(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionFlyingSaucers(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionCrookedHouse(int32_t trackType); TRACK_PAINT_FUNCTION GetTrackPaintFunctionMonorailCycles(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_magic_carpet(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_submarine_ride(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_enterprise(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(int32_t trackType); -TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionCompactInvertedRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionWaterRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionAirPoweredVerticalRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedHairpinRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMagicCarpet(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSubmarineRide(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionEnterprise(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedImpulseRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniRc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineRide(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLimLaunchedRc(int32_t trackType); namespace HybridRC { TRACK_PAINT_FUNCTION GetTrackPaintFunction(int32_t trackType); @@ -483,4 +483,4 @@ namespace AlpineRC { TRACK_PAINT_FUNCTION GetTrackPaintFunction(int32_t trackType); } -TRACK_PAINT_FUNCTION get_track_paint_function_classic_wooden_rc(int32_t trackType); +TRACK_PAINT_FUNCTION GetTrackPaintFunctionClassicWoodenRc(int32_t trackType); diff --git a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp b/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp index 7f38a36c13..ab4cfb95c1 100644 --- a/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp +++ b/src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp @@ -218,7 +218,7 @@ static void air_powered_vertical_rc_track_station( WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 5, trackElement); + TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 5, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -261,10 +261,10 @@ static void air_powered_vertical_rc_track_right_quarter_turn_5( }, }; - track_paint_util_right_quarter_turn_5_tiles_paint_3( + TrackPaintUtilRightQuarterTurn5TilesPaint3( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); - track_paint_util_right_quarter_turn_5_tiles_wooden_supports(session, height, direction, trackSequence); - track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); + TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(session, height, direction, trackSequence); + TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); switch (trackSequence) { @@ -423,7 +423,7 @@ static void air_powered_vertical_rc_track_banked_right_quarter_turn_5( }, }; - track_paint_util_right_quarter_turn_5_tiles_paint_2( + TrackPaintUtilRightQuarterTurn5TilesPaint2( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); if (direction == 1 && trackSequence == 6) @@ -439,8 +439,8 @@ static void air_powered_vertical_rc_track_banked_right_quarter_turn_5( PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } }); } - track_paint_util_right_quarter_turn_5_tiles_wooden_supports(session, height, direction, trackSequence); - track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); + TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(session, height, direction, trackSequence); + TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); switch (trackSequence) { @@ -961,14 +961,14 @@ static void air_powered_vertical_rc_track_onride_photo( WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionAirPoweredVerticalRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/AlpineCoaster.cpp b/src/openrct2/ride/coaster/AlpineCoaster.cpp index e8b5d10605..ba5d53d1a4 100644 --- a/src/openrct2/ride/coaster/AlpineCoaster.cpp +++ b/src/openrct2/ride/coaster/AlpineCoaster.cpp @@ -55,7 +55,7 @@ namespace AlpineRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height, @@ -79,7 +79,7 @@ namespace AlpineRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height, @@ -118,8 +118,8 @@ namespace AlpineRC PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][2]), { 0, 0, height - 2 }, { 32, 28, 2 }, { 0, 2, height }); - track_paint_util_draw_station_metal_supports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 4, 7); + TrackPaintUtilDrawStationMetalSupports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS]); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 4, 7); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -156,7 +156,7 @@ namespace AlpineRC { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 8, height, @@ -188,7 +188,7 @@ namespace AlpineRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 8, height, @@ -237,7 +237,7 @@ namespace AlpineRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 3, height, @@ -269,7 +269,7 @@ namespace AlpineRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 3, height, @@ -318,7 +318,7 @@ namespace AlpineRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 6, height, @@ -350,7 +350,7 @@ namespace AlpineRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 6, height, @@ -2180,7 +2180,7 @@ namespace AlpineRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height, @@ -2227,7 +2227,7 @@ namespace AlpineRC { 32, 1, 26 }, { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height, @@ -2292,7 +2292,7 @@ namespace AlpineRC { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 3, height, @@ -2350,7 +2350,7 @@ namespace AlpineRC { 32, 1, 34 }, { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 3, height, @@ -2408,7 +2408,7 @@ namespace AlpineRC { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 6, height, @@ -2466,7 +2466,7 @@ namespace AlpineRC { 32, 1, 34 }, { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 6, height, @@ -2544,7 +2544,7 @@ namespace AlpineRC { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height, @@ -6789,7 +6789,7 @@ namespace AlpineRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height, diff --git a/src/openrct2/ride/coaster/BobsleighCoaster.cpp b/src/openrct2/ride/coaster/BobsleighCoaster.cpp index d1fa548fc7..1996480c21 100644 --- a/src/openrct2/ride/coaster/BobsleighCoaster.cpp +++ b/src/openrct2/ride/coaster/BobsleighCoaster.cpp @@ -58,7 +58,7 @@ static void bobsleigh_rc_track_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -86,7 +86,7 @@ static void bobsleigh_rc_track_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -114,8 +114,8 @@ static void bobsleigh_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -163,7 +163,7 @@ static void bobsleigh_rc_track_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -205,7 +205,7 @@ static void bobsleigh_rc_track_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -265,7 +265,7 @@ static void bobsleigh_rc_track_flat_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -307,7 +307,7 @@ static void bobsleigh_rc_track_flat_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -367,7 +367,7 @@ static void bobsleigh_rc_track_25_deg_up_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -409,7 +409,7 @@ static void bobsleigh_rc_track_25_deg_up_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -735,7 +735,7 @@ static void bobsleigh_rc_track_flat_to_left_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -785,7 +785,7 @@ static void bobsleigh_rc_track_flat_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -835,7 +835,7 @@ static void bobsleigh_rc_track_left_bank_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -885,7 +885,7 @@ static void bobsleigh_rc_track_right_bank_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1179,7 +1179,7 @@ static void bobsleigh_rc_track_left_bank_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1236,7 +1236,7 @@ static void bobsleigh_rc_track_right_bank_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1293,7 +1293,7 @@ static void bobsleigh_rc_track_25_deg_up_to_left_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1350,7 +1350,7 @@ static void bobsleigh_rc_track_25_deg_up_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1439,7 +1439,7 @@ static void bobsleigh_rc_track_left_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3757,7 +3757,7 @@ static void bobsleigh_rc_track_brakes( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3796,7 +3796,7 @@ static void bobsleigh_rc_track_block_brakes( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3863,13 +3863,13 @@ static void bobsleigh_rc_track_on_ride_photo( break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionBobsleighRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp b/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp index 445f244a76..e2c65fbe32 100644 --- a/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp +++ b/src/openrct2/ride/coaster/BolligerMabillardTrack.hpp @@ -49,7 +49,7 @@ static void bolliger_mabillard_track_flat( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction]), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -67,7 +67,7 @@ static void bolliger_mabillard_track_flat( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction]), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -107,10 +107,9 @@ static void bolliger_mabillard_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2( - session, direction, height, session.TrackColours[SCHEME_SUPPORTS], supportType); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], supportType); - track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 9, trackElement); + TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 9, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); @@ -147,7 +146,7 @@ static void bolliger_mabillard_track_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -177,7 +176,7 @@ static void bolliger_mabillard_track_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -225,7 +224,7 @@ static void bolliger_mabillard_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -255,7 +254,7 @@ static void bolliger_mabillard_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -303,7 +302,7 @@ static void bolliger_mabillard_track_flat_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -333,7 +332,7 @@ static void bolliger_mabillard_track_flat_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -387,7 +386,7 @@ static void bolliger_mabillard_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -423,7 +422,7 @@ static void bolliger_mabillard_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -477,7 +476,7 @@ static void bolliger_mabillard_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -513,7 +512,7 @@ static void bolliger_mabillard_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -561,7 +560,7 @@ static void bolliger_mabillard_track_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -591,7 +590,7 @@ static void bolliger_mabillard_track_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -880,7 +879,7 @@ static void bolliger_mabillard_track_flat_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -924,7 +923,7 @@ static void bolliger_mabillard_track_flat_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -968,7 +967,7 @@ static void bolliger_mabillard_track_left_bank_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1012,7 +1011,7 @@ static void bolliger_mabillard_track_right_bank_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1250,7 +1249,7 @@ static void bolliger_mabillard_track_left_bank_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1301,7 +1300,7 @@ static void bolliger_mabillard_track_right_bank_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1352,7 +1351,7 @@ static void bolliger_mabillard_track_25_deg_up_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1403,7 +1402,7 @@ static void bolliger_mabillard_track_25_deg_up_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1484,7 +1483,7 @@ static void bolliger_mabillard_track_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2689,7 +2688,7 @@ static void bolliger_mabillard_track_right_vertical_loop( break; } - track_paint_util_right_vertical_loop_segments(session, direction, trackSequence); + TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence); } template @@ -4417,7 +4416,7 @@ static void bolliger_mabillard_track_left_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4462,7 +4461,7 @@ static void bolliger_mabillard_track_right_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4505,7 +4504,7 @@ static void bolliger_mabillard_track_brakes( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4543,7 +4542,7 @@ static void bolliger_mabillard_track_25_deg_up_left_banked( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4588,7 +4587,7 @@ static void bolliger_mabillard_track_25_deg_up_right_banked( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4649,7 +4648,7 @@ static void bolliger_mabillard_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -9239,7 +9238,7 @@ static void bolliger_mabillard_track_block_brakes( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9847,7 +9846,7 @@ static void bolliger_mabillard_track_25_deg_up_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9895,7 +9894,7 @@ static void bolliger_mabillard_track_25_deg_up_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9943,7 +9942,7 @@ static void bolliger_mabillard_track_left_banked_25_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9991,7 +9990,7 @@ static void bolliger_mabillard_track_right_banked_25_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10072,7 +10071,7 @@ static void bolliger_mabillard_track_left_banked_flat_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10117,7 +10116,7 @@ static void bolliger_mabillard_track_right_banked_flat_to_right_banked_25_deg_up { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10162,7 +10161,7 @@ static void bolliger_mabillard_track_left_banked_25_deg_up_to_left_banked_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10207,7 +10206,7 @@ static void bolliger_mabillard_track_right_banked_25_deg_up_to_right_banked_flat { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10291,7 +10290,7 @@ static void bolliger_mabillard_track_flat_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10339,7 +10338,7 @@ static void bolliger_mabillard_track_flat_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10387,7 +10386,7 @@ static void bolliger_mabillard_track_left_banked_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10435,7 +10434,7 @@ static void bolliger_mabillard_track_right_banked_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -11012,7 +11011,7 @@ static void bolliger_mabillard_track_left_corkscrew_up( break; } - track_paint_util_left_corkscrew_up_supports(session, direction, height); + TrackPaintUtilLeftCorkscrewUpSupports(session, direction, height); if (direction == 0 || direction == 3) { @@ -11252,7 +11251,7 @@ static void bolliger_mabillard_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -11288,7 +11287,7 @@ static void bolliger_mabillard_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -11320,7 +11319,7 @@ static void bolliger_mabillard_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -11352,7 +11351,7 @@ static void bolliger_mabillard_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -11404,7 +11403,7 @@ static void bolliger_mabillard_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -11440,7 +11439,7 @@ static void bolliger_mabillard_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -11472,7 +11471,7 @@ static void bolliger_mabillard_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 13, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -11504,7 +11503,7 @@ static void bolliger_mabillard_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -12511,7 +12510,7 @@ void bolliger_mabillard_track_booster( { nw_se_offsetX, nw_se_offsetY, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -12985,7 +12984,7 @@ static void bolliger_mabillard_track_right_twist_up_to_down( } } -template TRACK_PAINT_FUNCTION get_track_paint_function_bolliger_mabillard(int32_t trackType) +template TRACK_PAINT_FUNCTION GetTrackPaintFunctionBolligerMabillard(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp b/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp index 63f2c93943..b97f953844 100644 --- a/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/ClassicWoodenRollerCoaster.cpp @@ -692,7 +692,7 @@ static void classic_wooden_rc_track_banked_right_quarter_turn_5( WoodenRcTrackPaintBb(session, &imageIds[direction][trackSequence][0], height); WoodenRcTrackPaintBb(session, &imageIds[direction][trackSequence][1], height); - track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); + TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); if (supportType[direction][trackSequence] != -1) { @@ -811,7 +811,7 @@ static void classic_wooden_rc_track_right_quarter_turn_3_bank( WoodenRcTrackPaintBb(session, &imageIds[direction][trackSequence][0], height); WoodenRcTrackPaintBb(session, &imageIds[direction][trackSequence][1], height); - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); if (supportType[direction][trackSequence] != -1) { @@ -1860,7 +1860,7 @@ static void classic_wooden_rc_track_diag_25_deg_down_to_right_bank( // Stylistically, this coaster is _very_ similar to the regular Wooden Roller Coaster. // The only difference is to which parts the colours are applied, and the degree of the banking. // As such, all non-banked pieces are simply drawn as regular wooden roller coaster pieces with a different paint scheme. -TRACK_PAINT_FUNCTION get_track_paint_function_classic_wooden_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionClassicWoodenRc(int32_t trackType) { if (!IsCsgLoaded()) { diff --git a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp b/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp index 17217501f6..ee87074984 100644 --- a/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp +++ b/src/openrct2/ride/coaster/CompactInvertedCoaster.cpp @@ -62,7 +62,7 @@ static void compact_inverted_rc_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]); @@ -93,8 +93,8 @@ static void compact_inverted_rc_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 29 }, { 32, 20, 3 }, { 0, 6, height + 29 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); - track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); + TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -160,7 +160,7 @@ static void compact_inverted_rc_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -324,7 +324,7 @@ static void compact_inverted_rc_track_flat_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -512,7 +512,7 @@ static void compact_inverted_rc_track_60_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -606,7 +606,7 @@ static void compact_inverted_rc_track_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -913,7 +913,7 @@ static void compact_inverted_rc_track_flat_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]); @@ -956,7 +956,7 @@ static void compact_inverted_rc_track_flat_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]); @@ -999,7 +999,7 @@ static void compact_inverted_rc_track_left_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]); @@ -1042,7 +1042,7 @@ static void compact_inverted_rc_track_right_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]); @@ -1278,7 +1278,7 @@ static void compact_inverted_rc_track_left_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1345,7 +1345,7 @@ static void compact_inverted_rc_track_right_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1412,7 +1412,7 @@ static void compact_inverted_rc_track_25_deg_up_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1479,7 +1479,7 @@ static void compact_inverted_rc_track_25_deg_up_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1578,7 +1578,7 @@ static void compact_inverted_rc_track_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]); @@ -4334,7 +4334,7 @@ static void compact_inverted_rc_track_left_quarter_turn_1_60_deg_up( { 2, 2, height + 104 }); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4379,8 +4379,7 @@ static void compact_inverted_rc_track_right_quarter_turn_1_60_deg_up( { 2, 2, height + 104 }); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel( - session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4426,7 +4425,7 @@ static void compact_inverted_rc_track_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]); @@ -5220,7 +5219,7 @@ static void compact_inverted_rc_track_on_ride_photo( { 0, 6, height + 29 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20); @@ -8866,7 +8865,7 @@ static void compact_inverted_rc_track_block_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]); @@ -8876,7 +8875,7 @@ static void compact_inverted_rc_track_block_brakes( PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionCompactInvertedRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp b/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp index c3e5cb53ba..21871ac837 100644 --- a/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/CorkscrewRollerCoaster.cpp @@ -60,7 +60,7 @@ static void corkscrew_rc_track_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -82,7 +82,7 @@ static void corkscrew_rc_track_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -121,8 +121,8 @@ static void corkscrew_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -158,7 +158,7 @@ static void corkscrew_rc_track_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -188,7 +188,7 @@ static void corkscrew_rc_track_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -236,7 +236,7 @@ static void corkscrew_rc_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -266,7 +266,7 @@ static void corkscrew_rc_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -314,7 +314,7 @@ static void corkscrew_rc_track_flat_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -344,7 +344,7 @@ static void corkscrew_rc_track_flat_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -398,7 +398,7 @@ static void corkscrew_rc_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -434,7 +434,7 @@ static void corkscrew_rc_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -488,7 +488,7 @@ static void corkscrew_rc_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -524,7 +524,7 @@ static void corkscrew_rc_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -572,7 +572,7 @@ static void corkscrew_rc_track_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -602,7 +602,7 @@ static void corkscrew_rc_track_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -886,7 +886,7 @@ static void corkscrew_rc_track_flat_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -930,7 +930,7 @@ static void corkscrew_rc_track_flat_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -974,7 +974,7 @@ static void corkscrew_rc_track_left_bank_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1018,7 +1018,7 @@ static void corkscrew_rc_track_right_bank_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1252,7 +1252,7 @@ static void corkscrew_rc_track_left_bank_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1303,7 +1303,7 @@ static void corkscrew_rc_track_right_bank_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1354,7 +1354,7 @@ static void corkscrew_rc_track_25_deg_up_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1405,7 +1405,7 @@ static void corkscrew_rc_track_25_deg_up_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1482,7 +1482,7 @@ static void corkscrew_rc_track_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2717,7 +2717,7 @@ static void corkscrew_rc_track_right_vertical_loop( break; } - track_paint_util_right_vertical_loop_segments(session, direction, trackSequence); + TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence); } /** rct2: 0x008A7D98 */ @@ -3347,7 +3347,7 @@ static void corkscrew_rc_track_left_corkscrew_up( break; } - track_paint_util_left_corkscrew_up_supports(session, direction, height); + TrackPaintUtilLeftCorkscrewUpSupports(session, direction, height); if (direction == 0 || direction == 3) { @@ -4824,7 +4824,7 @@ static void corkscrew_rc_track_left_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4869,7 +4869,7 @@ static void corkscrew_rc_track_right_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4910,7 +4910,7 @@ static void corkscrew_rc_track_brakes( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4964,7 +4964,7 @@ static void corkscrew_rc_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -5001,7 +5001,7 @@ static void corkscrew_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5037,7 +5037,7 @@ static void corkscrew_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5069,7 +5069,7 @@ static void corkscrew_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5101,7 +5101,7 @@ static void corkscrew_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5152,7 +5152,7 @@ static void corkscrew_rc_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5188,7 +5188,7 @@ static void corkscrew_rc_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5220,7 +5220,7 @@ static void corkscrew_rc_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 13, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5252,7 +5252,7 @@ static void corkscrew_rc_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8948,7 +8948,7 @@ static void corkscrew_rc_track_booster( { 32, 1, 26 }, { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9426,7 +9426,7 @@ static void corkscrew_rc_track_right_twist_up_to_down( } } -TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionCorkscrewRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp b/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp index 79c247f902..789cb62f92 100644 --- a/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/FlyingRollerCoaster.cpp @@ -51,7 +51,7 @@ static void flying_rc_track_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -74,7 +74,7 @@ static void flying_rc_track_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -126,7 +126,7 @@ static void flying_rc_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]); @@ -159,8 +159,8 @@ static void flying_rc_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 24 }, { 32, 20, 1 }, { 0, 6, height + 24 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); - track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); + TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); } else { @@ -186,8 +186,8 @@ static void flying_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][2]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); } PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -254,7 +254,7 @@ static void flying_rc_track_25_deg_up( break; } } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -328,7 +328,7 @@ static void flying_rc_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -393,7 +393,7 @@ static void flying_rc_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -508,7 +508,7 @@ static void flying_rc_track_flat_to_25_deg_up( break; } } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -582,7 +582,7 @@ static void flying_rc_track_flat_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -653,7 +653,7 @@ static void flying_rc_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -751,7 +751,7 @@ static void flying_rc_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -802,7 +802,7 @@ static void flying_rc_track_60_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -896,7 +896,7 @@ static void flying_rc_track_25_deg_up_to_flat( break; } } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -970,7 +970,7 @@ static void flying_rc_track_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1461,7 +1461,7 @@ static void flying_rc_track_flat_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1501,7 +1501,7 @@ static void flying_rc_track_flat_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]); @@ -1548,7 +1548,7 @@ static void flying_rc_track_flat_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1588,7 +1588,7 @@ static void flying_rc_track_flat_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]); @@ -1635,7 +1635,7 @@ static void flying_rc_track_left_bank_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1675,7 +1675,7 @@ static void flying_rc_track_left_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]); @@ -1722,7 +1722,7 @@ static void flying_rc_track_right_bank_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1762,7 +1762,7 @@ static void flying_rc_track_right_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]); @@ -2187,7 +2187,7 @@ static void flying_rc_track_left_bank_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2234,7 +2234,7 @@ static void flying_rc_track_left_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2305,7 +2305,7 @@ static void flying_rc_track_right_bank_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2352,7 +2352,7 @@ static void flying_rc_track_right_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2423,7 +2423,7 @@ static void flying_rc_track_25_deg_up_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2470,7 +2470,7 @@ static void flying_rc_track_25_deg_up_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2541,7 +2541,7 @@ static void flying_rc_track_25_deg_up_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2588,7 +2588,7 @@ static void flying_rc_track_25_deg_up_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2685,7 +2685,7 @@ static void flying_rc_track_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2725,7 +2725,7 @@ static void flying_rc_track_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]); @@ -6348,7 +6348,7 @@ static void flying_rc_track_left_quarter_turn_1_60_deg_up( } } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -6434,7 +6434,7 @@ static void flying_rc_track_right_quarter_turn_1_60_deg_up( break; } } - track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -6477,7 +6477,7 @@ static void flying_rc_track_brakes( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -6507,7 +6507,7 @@ static void flying_rc_track_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]); @@ -6536,7 +6536,7 @@ static void flying_rc_track_booster( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]); @@ -7309,7 +7309,7 @@ static void flying_rc_track_25_deg_up_left_banked( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -7354,7 +7354,7 @@ static void flying_rc_track_25_deg_up_left_banked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -7419,7 +7419,7 @@ static void flying_rc_track_25_deg_up_right_banked( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -7464,7 +7464,7 @@ static void flying_rc_track_25_deg_up_right_banked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -7553,7 +7553,7 @@ static void flying_rc_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -7607,7 +7607,7 @@ static void flying_rc_track_on_ride_photo( { 32, 20, 3 }, { 0, 6, height + 24 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20); @@ -15133,7 +15133,7 @@ static void flying_rc_track_block_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]); @@ -16315,7 +16315,7 @@ static void flying_rc_track_25_deg_up_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -16360,7 +16360,7 @@ static void flying_rc_track_25_deg_up_to_left_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -16428,7 +16428,7 @@ static void flying_rc_track_25_deg_up_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -16473,7 +16473,7 @@ static void flying_rc_track_25_deg_up_to_right_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -16541,7 +16541,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -16586,7 +16586,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -16654,7 +16654,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -16699,7 +16699,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -16798,7 +16798,7 @@ static void flying_rc_track_left_banked_flat_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -16843,7 +16843,7 @@ static void flying_rc_track_left_banked_flat_to_left_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -16908,7 +16908,7 @@ static void flying_rc_track_right_banked_flat_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -16953,7 +16953,7 @@ static void flying_rc_track_right_banked_flat_to_right_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -17018,7 +17018,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_left_banked_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -17063,7 +17063,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_left_banked_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -17128,7 +17128,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_right_banked_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -17173,7 +17173,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_right_banked_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -17277,7 +17277,7 @@ static void flying_rc_track_flat_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -17322,7 +17322,7 @@ static void flying_rc_track_flat_to_left_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -17390,7 +17390,7 @@ static void flying_rc_track_flat_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -17435,7 +17435,7 @@ static void flying_rc_track_flat_to_right_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -17503,7 +17503,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -17548,7 +17548,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -17616,7 +17616,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -17661,7 +17661,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -18693,7 +18693,7 @@ static void flying_rc_track_right_flying_large_half_loop_uninverted_down( flying_rc_track_right_flying_large_half_loop_inverted_up(session, ride, 6 - trackSequence, direction, height, trackElement); } -TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionFlyingRc(int32_t trackType) { switch (trackType) { @@ -19032,5 +19032,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int32_t trackType) case TrackElemType::RightFlyerLargeHalfLoopUninvertedDown: return flying_rc_track_right_flying_large_half_loop_uninverted_down; } - return get_track_paint_function_bolliger_mabillard(trackType); + return GetTrackPaintFunctionBolligerMabillard(trackType); } diff --git a/src/openrct2/ride/coaster/GigaCoaster.cpp b/src/openrct2/ride/coaster/GigaCoaster.cpp index abe2900df4..0dbcfe31bf 100644 --- a/src/openrct2/ride/coaster/GigaCoaster.cpp +++ b/src/openrct2/ride/coaster/GigaCoaster.cpp @@ -61,7 +61,7 @@ static void giga_rc_track_flat( { 6, 0, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -91,7 +91,7 @@ static void giga_rc_track_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -113,7 +113,7 @@ static void giga_rc_track_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -151,8 +151,8 @@ static void giga_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -188,7 +188,7 @@ static void giga_rc_track_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -218,7 +218,7 @@ static void giga_rc_track_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -248,7 +248,7 @@ static void giga_rc_track_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -296,7 +296,7 @@ static void giga_rc_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -326,7 +326,7 @@ static void giga_rc_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -374,7 +374,7 @@ static void giga_rc_track_flat_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -404,7 +404,7 @@ static void giga_rc_track_flat_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -434,7 +434,7 @@ static void giga_rc_track_flat_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -488,7 +488,7 @@ static void giga_rc_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -524,7 +524,7 @@ static void giga_rc_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -578,7 +578,7 @@ static void giga_rc_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -614,7 +614,7 @@ static void giga_rc_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -662,7 +662,7 @@ static void giga_rc_track_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -692,7 +692,7 @@ static void giga_rc_track_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -722,7 +722,7 @@ static void giga_rc_track_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1006,7 +1006,7 @@ static void giga_rc_track_flat_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1050,7 +1050,7 @@ static void giga_rc_track_flat_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1094,7 +1094,7 @@ static void giga_rc_track_left_bank_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1138,7 +1138,7 @@ static void giga_rc_track_right_bank_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1372,7 +1372,7 @@ static void giga_rc_track_left_bank_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1423,7 +1423,7 @@ static void giga_rc_track_right_bank_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1474,7 +1474,7 @@ static void giga_rc_track_25_deg_up_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1525,7 +1525,7 @@ static void giga_rc_track_25_deg_up_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1602,7 +1602,7 @@ static void giga_rc_track_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4015,7 +4015,7 @@ static void giga_rc_track_left_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4060,7 +4060,7 @@ static void giga_rc_track_right_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4107,7 +4107,7 @@ static void giga_rc_track_brakes( { 0, 0, height }, { 32, 1, 11 }, { 0, 27, height + 5 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4145,7 +4145,7 @@ static void giga_rc_track_25_deg_up_left_banked( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4190,7 +4190,7 @@ static void giga_rc_track_25_deg_up_right_banked( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4251,7 +4251,7 @@ static void giga_rc_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -4306,7 +4306,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4337,7 +4337,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4377,7 +4377,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4408,7 +4408,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4444,7 +4444,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4475,7 +4475,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4511,7 +4511,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4542,7 +4542,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4595,7 +4595,7 @@ static void giga_rc_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4631,7 +4631,7 @@ static void giga_rc_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4663,7 +4663,7 @@ static void giga_rc_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4695,7 +4695,7 @@ static void giga_rc_track_60_deg_up_to_flat_long_base( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4762,7 +4762,7 @@ static void giga_rc_track_cable_lift_hill( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4802,7 +4802,7 @@ static void giga_rc_track_cable_lift_hill( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4848,7 +4848,7 @@ static void giga_rc_track_cable_lift_hill( { 32, 1, 66 }, { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4888,7 +4888,7 @@ static void giga_rc_track_cable_lift_hill( { 32, 1, 98 }, { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8108,7 +8108,7 @@ static void giga_rc_track_block_brakes( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(_GigaCoasterBrakeImages[direction][isClosed][1]), { 0, 0, height }, { 32, 1, 11 }, { 0, 27, height + 5 }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8718,7 +8718,7 @@ static void giga_rc_track_25_deg_up_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8766,7 +8766,7 @@ static void giga_rc_track_25_deg_up_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8814,7 +8814,7 @@ static void giga_rc_track_left_banked_25_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8862,7 +8862,7 @@ static void giga_rc_track_right_banked_25_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8939,7 +8939,7 @@ static void giga_rc_track_left_banked_flat_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8984,7 +8984,7 @@ static void giga_rc_track_right_banked_flat_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9029,7 +9029,7 @@ static void giga_rc_track_left_banked_25_deg_up_to_left_banked_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9074,7 +9074,7 @@ static void giga_rc_track_right_banked_25_deg_up_to_right_banked_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9158,7 +9158,7 @@ static void giga_rc_track_flat_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9206,7 +9206,7 @@ static void giga_rc_track_flat_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9254,7 +9254,7 @@ static void giga_rc_track_left_banked_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9302,7 +9302,7 @@ static void giga_rc_track_right_banked_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9376,7 +9376,7 @@ static void giga_rc_track_booster( { nw_se_offsetX, nw_se_offsetY, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9386,7 +9386,7 @@ static void giga_rc_track_booster( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionGigaRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp b/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp index ef752856f8..433b84556c 100644 --- a/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp +++ b/src/openrct2/ride/coaster/HeartlineTwisterCoaster.cpp @@ -113,8 +113,8 @@ static void heartline_twister_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -1750,7 +1750,7 @@ static void heartline_twister_rc_track_right_heartline_roll( } } -TRACK_PAINT_FUNCTION get_track_paint_function_heartline_twister_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionHeartlineTwisterRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/HybridCoaster.cpp b/src/openrct2/ride/coaster/HybridCoaster.cpp index a32b4805fc..7bc8e07122 100644 --- a/src/openrct2/ride/coaster/HybridCoaster.cpp +++ b/src/openrct2/ride/coaster/HybridCoaster.cpp @@ -82,7 +82,7 @@ namespace HybridRC WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 10, trackElement); + TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 10, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); @@ -6252,7 +6252,7 @@ namespace HybridRC WoodenASupportsPaintSetup(session, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -6300,8 +6300,7 @@ namespace HybridRC WoodenASupportsPaintSetup(session, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel( - session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -10806,7 +10805,7 @@ namespace HybridRC PaintAddImageAsParentRotated( session, direction, GetTrackColour(session).WithIndex(SPR_G2_HYBRID_TRACK_FLAT + (direction & 1)), { 0, 0, height }, { 32, 20, 0 }, { 0, 6, height + 3 }); - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); diff --git a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp b/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp index 8da9293959..cefdfbcfa5 100644 --- a/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp +++ b/src/openrct2/ride/coaster/InvertedHairpinCoaster.cpp @@ -70,7 +70,7 @@ static void inverted_hairpin_rc_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 30, session.TrackColours[SCHEME_SUPPORTS]); @@ -101,8 +101,8 @@ static void inverted_hairpin_rc_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 24 }, { 32, 20, 1 }, { 0, 6, height + 24 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); - track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); + TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -168,7 +168,7 @@ static void inverted_hairpin_rc_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -332,7 +332,7 @@ static void inverted_hairpin_rc_track_flat_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -520,7 +520,7 @@ static void inverted_hairpin_rc_track_60_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -614,7 +614,7 @@ static void inverted_hairpin_rc_track_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1316,7 +1316,7 @@ static void inverted_hairpin_rc_track_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 30, session.TrackColours[SCHEME_SUPPORTS]); @@ -1349,7 +1349,7 @@ static void inverted_hairpin_rc_track_block_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 30, session.TrackColours[SCHEME_SUPPORTS]); @@ -1359,7 +1359,7 @@ static void inverted_hairpin_rc_track_block_brakes( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedHairpinRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp b/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp index ec8e4af2bc..14062fdda5 100644 --- a/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp +++ b/src/openrct2/ride/coaster/InvertedImpulseCoaster.cpp @@ -41,7 +41,7 @@ static void inverted_impulse_rc_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); @@ -72,8 +72,8 @@ static void inverted_impulse_rc_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 29 }, { 32, 20, 3 }, { 0, 6, height + 29 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); - track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); + TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -110,7 +110,7 @@ static void inverted_impulse_rc_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -757,7 +757,7 @@ static void inverted_impulse_rc_track_right_quarter_turn_1_90_deg_down( session, ride, trackSequence, (direction - 1) & 3, height, trackElement); } -TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedImpulseRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp b/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp index 159f3222ee..e0cff1c114 100644 --- a/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/InvertedRollerCoaster.cpp @@ -62,7 +62,7 @@ static void inverted_rc_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -92,8 +92,8 @@ static void inverted_rc_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 29 }, { 32, 20, 3 }, { 0, 6, height + 29 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); - track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); + TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -159,7 +159,7 @@ static void inverted_rc_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -294,7 +294,7 @@ static void inverted_rc_track_flat_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -412,7 +412,7 @@ static void inverted_rc_track_60_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -506,7 +506,7 @@ static void inverted_rc_track_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -811,7 +811,7 @@ static void inverted_rc_track_flat_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -853,7 +853,7 @@ static void inverted_rc_track_flat_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -895,7 +895,7 @@ static void inverted_rc_track_left_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -937,7 +937,7 @@ static void inverted_rc_track_right_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1169,7 +1169,7 @@ static void inverted_rc_track_left_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1236,7 +1236,7 @@ static void inverted_rc_track_right_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1303,7 +1303,7 @@ static void inverted_rc_track_25_deg_up_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1370,7 +1370,7 @@ static void inverted_rc_track_25_deg_up_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1469,7 +1469,7 @@ static void inverted_rc_track_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4192,7 +4192,7 @@ static void inverted_rc_track_left_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4237,8 +4237,7 @@ static void inverted_rc_track_right_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel( - session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4282,7 +4281,7 @@ static void inverted_rc_track_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5046,7 +5045,7 @@ static void inverted_rc_track_25_deg_up_left_banked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -5111,7 +5110,7 @@ static void inverted_rc_track_25_deg_up_right_banked( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -5189,7 +5188,7 @@ static void inverted_rc_track_on_ride_photo( { 0, 6, height + 29 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20); @@ -9018,7 +9017,7 @@ static void inverted_rc_track_block_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9646,7 +9645,7 @@ static void inverted_rc_track_25_deg_up_to_left_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -9711,7 +9710,7 @@ static void inverted_rc_track_25_deg_up_to_right_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -9776,7 +9775,7 @@ static void inverted_rc_track_left_banked_25_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -9841,7 +9840,7 @@ static void inverted_rc_track_right_banked_25_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -9942,7 +9941,7 @@ static void inverted_rc_track_left_banked_flat_to_left_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -10007,7 +10006,7 @@ static void inverted_rc_track_right_banked_flat_to_right_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -10072,7 +10071,7 @@ static void inverted_rc_track_left_banked_25_deg_up_to_left_banked_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -10137,7 +10136,7 @@ static void inverted_rc_track_right_banked_25_deg_up_to_right_banked_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -10238,7 +10237,7 @@ static void inverted_rc_track_flat_to_left_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -10303,7 +10302,7 @@ static void inverted_rc_track_flat_to_right_banked_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -10368,7 +10367,7 @@ static void inverted_rc_track_left_banked_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -10433,7 +10432,7 @@ static void inverted_rc_track_right_banked_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -10512,7 +10511,7 @@ static void inverted_rc_track_booster( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10521,7 +10520,7 @@ static void inverted_rc_track_booster( PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp index 36ae45ab22..3cdfdbd555 100644 --- a/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/JuniorRollerCoaster.cpp @@ -1820,7 +1820,7 @@ void JuniorRcPaintTrackFlat( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { 32, 20, 1 }); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height, @@ -1884,7 +1884,7 @@ void JuniorRcPaintStation( PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT); } - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -1902,7 +1902,7 @@ void JuniorRcPaintTrack25DegUp( uint8_t tunnelType[4] = { TUNNEL_1, TUNNEL_2, TUNNEL_2, TUNNEL_1 }; PaintUtilPushTunnelRotated(session, direction, height + tunnelHeights[direction], tunnelType[direction]); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t supportType = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1930,7 +1930,7 @@ void JuniorRcPaintTrackFlatTo25DegUp( PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t supportType = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; uint16_t ax = (direction == 0) ? 5 : 3; @@ -1972,7 +1972,7 @@ void JuniorRcPaintTrack25DegUpToFlat( PaintUtilPushTunnelLeft(session, tunnelHeight, tunnelType); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t supportType = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1994,7 +1994,7 @@ static void junior_rc_right_quarter_turn_5_tiles_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_right_quarter_turn_5_tiles_paint( + TrackPaintUtilRightQuarterTurn5TilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_flat_quarter_turn_5_tiles, defaultRightQuarterTurn5TilesOffsets, defaultRightQuarterTurn5TilesBoundLengths, defaultRightQuarterTurn5TilesBoundOffsets); @@ -2115,7 +2115,7 @@ static void junior_rc_flat_to_left_bank_paint_setup( } } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2163,7 +2163,7 @@ static void junior_rc_flat_to_right_bank_paint_setup( } } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2260,7 +2260,7 @@ static void junior_rc_banked_right_quarter_turn_5_tiles_paint_setup( { thickness = 26; } - track_paint_util_right_quarter_turn_5_tiles_paint( + TrackPaintUtilRightQuarterTurn5TilesPaint( session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_banked_quarter_turn_5_tiles, nullptr, junior_rc_banked_right_quarter_turn_5_tiles_bound_lengths, junior_rc_banked_right_quarter_turn_5_tiles_bound_offsets); @@ -2385,7 +2385,7 @@ static void junior_rc_left_bank_to_25_deg_up_paint_setup( } } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, edi, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2445,7 +2445,7 @@ static void junior_rc_right_bank_to_25_deg_up_paint_setup( } } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, edi, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2522,7 +2522,7 @@ static void junior_rc_25_deg_up_to_left_bank_paint_setup( } } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, edi, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2583,7 +2583,7 @@ static void junior_rc_25_deg_up_to_right_bank_paint_setup( } } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, edi, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2671,7 +2671,7 @@ static void junior_rc_left_bank_paint_setup( PaintUtilPushTunnelLeft(session, height, 0); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2696,7 +2696,7 @@ void JuniorRcPaintTrackLeftQuarterTurn5Tiles25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_right_quarter_turn_5_tiles_paint( + TrackPaintUtilRightQuarterTurn5TilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_left_quarter_turn_5_tiles_25_deg_up[EnumValue(chainType)], junior_rc_left_quarter_turn_5_tiles_25_deg_up_offsets, defaultRightQuarterTurn5TilesBoundLengths, nullptr); @@ -2774,7 +2774,7 @@ void JuniorRcPaintTrackRightQuarterTurn5Tiles25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_right_quarter_turn_5_tiles_paint( + TrackPaintUtilRightQuarterTurn5TilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_right_quarter_turn_5_tiles_25_deg_up[EnumValue(chainType)], defaultRightQuarterTurn5TilesOffsets, defaultRightQuarterTurn5TilesBoundLengths, nullptr); @@ -3093,11 +3093,11 @@ static void junior_rc_right_quarter_turn_3_tiles_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_right_quarter_turn_3_tiles_paint( + TrackPaintUtilRightQuarterTurn3TilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_flat_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, nullptr); - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0); static constexpr uint8_t supportType[2][4] = { { 1, 0, 0, 2 }, @@ -3197,11 +3197,11 @@ static void junior_rc_right_quarter_turn_3_tiles_bank_paint_setup( { 1, 1, 1, 1 }, }; - track_paint_util_right_quarter_turn_3_tiles_paint( + TrackPaintUtilRightQuarterTurn3TilesPaint( session, thickness[direction][trackSequence], height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_banked_quarter_turn_3_tiles, nullptr, junior_rc_right_quarter_turn_3_tiles_bank_bound_lengths, junior_rc_right_quarter_turn_3_tiles_bank_offsets); - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0); if (direction == 1 && trackSequence == 3) { @@ -3479,7 +3479,7 @@ static void junior_rc_right_half_banked_helix_up_small_paint_setup( direction++; direction &= 3; } - track_paint_util_right_helix_up_small_quarter_tiles_paint( + TrackPaintUtilRightHelixUpSmallQuarterTilesPaint( session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_right_half_banked_helix_up_small_quarter_tiles, nullptr, defaultRightHelixUpSmallQuarterBoundLengths, defaultRightHelixUpSmallQuarterBoundOffsets); @@ -3547,7 +3547,7 @@ static void junior_rc_right_half_banked_helix_down_small_paint_setup( direction++; direction &= 3; } - track_paint_util_right_helix_up_small_quarter_tiles_paint( + TrackPaintUtilRightHelixUpSmallQuarterTilesPaint( session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_right_half_banked_helix_down_small_quarter_tiles, nullptr, defaultRightHelixUpSmallQuarterBoundLengths, defaultRightHelixUpSmallQuarterBoundOffsets); @@ -3647,7 +3647,7 @@ static void junior_rc_right_half_banked_helix_up_large_paint_setup( direction++; direction &= 3; } - track_paint_util_right_helix_up_large_quarter_tiles_paint( + TrackPaintUtilRightHelixUpLargeQuarterTilesPaint( session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_right_half_banked_helix_up_large_quarter_tiles, nullptr, defaultRightHelixUpLargeQuarterBoundLengths, defaultRightHelixUpLargeQuarterBoundOffsets); @@ -3731,7 +3731,7 @@ static void junior_rc_right_half_banked_helix_down_large_paint_setup( direction++; direction &= 3; } - track_paint_util_right_helix_up_large_quarter_tiles_paint( + TrackPaintUtilRightHelixUpLargeQuarterTilesPaint( session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_right_half_banked_helix_down_large_quarter_tiles, nullptr, defaultRightHelixUpLargeQuarterBoundLengths, defaultRightHelixUpLargeQuarterBoundOffsets); @@ -3857,7 +3857,7 @@ static void junior_rc_brake_paint_setup( PaintUtilPushTunnelLeft(session, height, TUNNEL_0); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -3893,7 +3893,7 @@ static void junior_rc_block_brake_paint_setup( PaintUtilPushTunnelLeft(session, height, TUNNEL_0); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -3909,7 +3909,7 @@ static void junior_rc_left_eighth_to_diag_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_eighth_to_diag_tiles_paint( + TrackPaintUtilEighthToDiagTilesPaint( session, defaultEighthToDiagThickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_left_eight_to_diag, nullptr, defaultLeftEighthToDiagBoundLengths, defaultLeftEighthToDiagBoundOffsets); @@ -3971,7 +3971,7 @@ static void junior_rc_right_eighth_to_diag_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_eighth_to_diag_tiles_paint( + TrackPaintUtilEighthToDiagTilesPaint( session, defaultEighthToDiagThickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_right_eight_to_diag, nullptr, defaultRightEighthToDiagBoundLengths, defaultRightEighthToDiagBoundOffsets); @@ -4134,7 +4134,7 @@ static void junior_rc_left_eighth_to_diag_bank_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_eighth_to_diag_tiles_paint( + TrackPaintUtilEighthToDiagTilesPaint( session, junior_rc_left_eighth_to_diag_bank_thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_left_eight_to_diag_bank, nullptr, junior_rc_left_eighth_to_diag_bank_bound_lengths, junior_rc_left_eighth_to_diag_bank_bound_offsets); @@ -4277,7 +4277,7 @@ static void junior_rc_right_eighth_to_diag_bank_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_eighth_to_diag_tiles_paint( + TrackPaintUtilEighthToDiagTilesPaint( session, junior_rc_right_eighth_to_diag_bank_thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_right_eight_to_diag_bank, nullptr, junior_rc_right_eighth_to_diag_bank_bound_lengths, junior_rc_right_eighth_to_diag_bank_bound_offsets); @@ -4372,7 +4372,7 @@ void JuniorRcPaintTrackDiagFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4392,7 +4392,7 @@ void JuniorRcPaintTrackDiag25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4412,7 +4412,7 @@ void JuniorRcPaintTrackDiagFlatTo25DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_flat_to_25_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4436,7 +4436,7 @@ void JuniorRcPaintTrackDiagFlatTo60DegUp( // There is no specific chain for the Water Coaster, use the Junior RC chain instead chainType = std::min(JuniorRcChainType::FrictionWheels, chainType); - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_flat_to_60_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4457,7 +4457,7 @@ void JuniorRcPaintTrackDiag25DegUpToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_up_to_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4481,7 +4481,7 @@ void JuniorRcPaintTrackDiag60DegUpToFlat( // There is no specific chain for the Water Coaster, use the Junior RC chain instead chainType = std::min(JuniorRcChainType::FrictionWheels, chainType); - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_60_deg_up_to_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4502,7 +4502,7 @@ void JuniorRcPaintTrackDiag25DegDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4523,7 +4523,7 @@ void JuniorRcPaintTrackDiagFlatTo25DegDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_flat_to_25_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4547,7 +4547,7 @@ void JuniorRcPaintTrackDiagFlatTo60DegDown( // There is no specific chain for the Water Coaster, use the Junior RC chain instead chainType = std::min(JuniorRcChainType::FrictionWheels, chainType); - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_flat_to_60_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4568,7 +4568,7 @@ void JuniorRcPaintTrackDiag25DegDownToFlat( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_down_to_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4592,7 +4592,7 @@ void JuniorRcPaintTrackDiag60DegDownToFlat( // There is no specific chain for the Water Coaster, use the Junior RC chain instead chainType = std::min(JuniorRcChainType::FrictionWheels, chainType); - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_60_deg_down_to_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4731,7 +4731,7 @@ static void junior_rc_diag_flat_to_left_bank_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_flat_to_left_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4758,7 +4758,7 @@ static void junior_rc_diag_flat_to_right_bank_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_flat_to_right_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4785,7 +4785,7 @@ static void junior_rc_diag_left_bank_to_flat_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_left_bank_to_flat, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4812,7 +4812,7 @@ static void junior_rc_diag_right_bank_to_flat_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_right_bank_to_flat, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4839,7 +4839,7 @@ static void junior_rc_diag_left_bank_to_25_deg_up_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_left_bank_to_25_deg_up, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4866,7 +4866,7 @@ static void junior_rc_diag_right_bank_to_25_deg_up_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_right_bank_to_25_deg_up, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4893,7 +4893,7 @@ static void junior_rc_diag_25_deg_up_to_left_bank_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_up_to_left_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4920,7 +4920,7 @@ static void junior_rc_diag_25_deg_up_to_right_bank_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_up_to_right_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4947,7 +4947,7 @@ static void junior_rc_diag_left_bank_to_25_deg_down_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_left_bank_to_25_deg_down, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -4974,7 +4974,7 @@ static void junior_rc_diag_right_bank_to_25_deg_down_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_right_bank_to_25_deg_down, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -5001,7 +5001,7 @@ static void junior_rc_diag_25_deg_down_to_left_bank_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_down_to_left_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -5028,7 +5028,7 @@ static void junior_rc_diag_25_deg_down_to_right_bank_paint_setup( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_down_to_right_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -5070,7 +5070,7 @@ static void junior_rc_diag_left_bank_paint_setup( const TrackElement& trackElement) { uint8_t thickness = direction == 0 ? 0 : 1; - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_left_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, junior_rc_diag_left_bank_bound_offsets); @@ -5093,7 +5093,7 @@ static void junior_rc_diag_right_bank_paint_setup( const TrackElement& trackElement) { uint8_t thickness = direction == 2 ? 0 : 1; - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_right_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, junior_rc_diag_right_bank_bound_offsets); @@ -5167,7 +5167,7 @@ void JuniorRcPaintTrack60DegUp( } static constexpr int8_t support[4] = { 35, 29, 25, 32 }; - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction], height, @@ -5259,7 +5259,7 @@ void JuniorRcPaintTrack25DegUpTo60DegUp( } static constexpr int8_t support[4] = { 12, 12, 12, 14 }; - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction], height, @@ -5329,7 +5329,7 @@ void JuniorRcPaintTrack60DegUpTo25DegUp( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 20, height, @@ -5362,7 +5362,7 @@ void JuniorRcPaintTrackDiag60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_60_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -5382,7 +5382,7 @@ void JuniorRcPaintTrackDiag60DegDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_60_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -5403,7 +5403,7 @@ void JuniorRcPaintTrackDiag25DegUpTo60DegUp( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_up_to_60_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -5434,7 +5434,7 @@ void JuniorRcPaintTrackDiag60DegUpTo25DegUp( } else { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_60_deg_up_to_25_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -5466,7 +5466,7 @@ void JuniorRcPaintTrackDiag25DegDownTo60DegDown( } else { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_25_deg_down_to_60_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -5488,7 +5488,7 @@ void JuniorRcPaintTrackDiag60DegDownTo25DegDown( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height, const TrackElement& trackElement, JuniorRcChainType chainType) { - track_paint_util_diag_tiles_paint( + TrackPaintUtilDiagTilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_diag_60_deg_down_to_25_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr); @@ -5643,7 +5643,7 @@ static void junior_rc_flat_to_60_deg_up_paint_setup( } static constexpr int8_t support[4] = { 12, 12, 12, 14 }; - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction], height - 7, @@ -5704,7 +5704,7 @@ static void junior_rc_60_deg_up_to_flat_paint_setup( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 20, height - 5, @@ -5820,7 +5820,7 @@ static void junior_rc_booster_paint_setup( PaintUtilPushTunnelLeft(session, height, TUNNEL_0); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { uint8_t supportType = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK; MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -5881,14 +5881,14 @@ static void junior_rc_track_on_ride_photo( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { 32, 20, 1 }, { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3 + photoCameraOffset, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3 + photoCameraOffset, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48 + photoCameraOffset, 0x20); } /* 0x008AAA0C */ -TRACK_PAINT_FUNCTION get_track_paint_function_junior_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionJuniorRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp b/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp index 1a5270c492..bdce1ad3a0 100644 --- a/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LayDownRollerCoaster.cpp @@ -50,7 +50,7 @@ static void lay_down_rc_track_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -73,7 +73,7 @@ static void lay_down_rc_track_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -125,7 +125,7 @@ static void lay_down_rc_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); @@ -159,8 +159,8 @@ static void lay_down_rc_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 24 }, { 32, 20, 1 }, { 0, 6, height + 24 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); - track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); + TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9); } else @@ -187,8 +187,8 @@ static void lay_down_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][2]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); } PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); @@ -227,7 +227,7 @@ static void lay_down_rc_track_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -258,7 +258,7 @@ static void lay_down_rc_track_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -333,7 +333,7 @@ static void lay_down_rc_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -400,7 +400,7 @@ static void lay_down_rc_track_60_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -431,7 +431,7 @@ static void lay_down_rc_track_60_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -520,7 +520,7 @@ static void lay_down_rc_track_flat_to_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -551,7 +551,7 @@ static void lay_down_rc_track_flat_to_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -626,7 +626,7 @@ static void lay_down_rc_track_flat_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -699,7 +699,7 @@ static void lay_down_rc_track_25_deg_up_to_60_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -736,7 +736,7 @@ static void lay_down_rc_track_25_deg_up_to_60_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -837,7 +837,7 @@ static void lay_down_rc_track_60_deg_up_to_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -874,7 +874,7 @@ static void lay_down_rc_track_60_deg_up_to_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -926,7 +926,7 @@ static void lay_down_rc_track_60_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -993,7 +993,7 @@ static void lay_down_rc_track_25_deg_up_to_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1024,7 +1024,7 @@ static void lay_down_rc_track_25_deg_up_to_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1099,7 +1099,7 @@ static void lay_down_rc_track_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1590,7 +1590,7 @@ static void lay_down_rc_track_flat_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1630,7 +1630,7 @@ static void lay_down_rc_track_flat_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); @@ -1677,7 +1677,7 @@ static void lay_down_rc_track_flat_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1717,7 +1717,7 @@ static void lay_down_rc_track_flat_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); @@ -1764,7 +1764,7 @@ static void lay_down_rc_track_left_bank_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1804,7 +1804,7 @@ static void lay_down_rc_track_left_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); @@ -1851,7 +1851,7 @@ static void lay_down_rc_track_right_bank_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1891,7 +1891,7 @@ static void lay_down_rc_track_right_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); @@ -2316,7 +2316,7 @@ static void lay_down_rc_track_left_bank_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2363,7 +2363,7 @@ static void lay_down_rc_track_left_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2434,7 +2434,7 @@ static void lay_down_rc_track_right_bank_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2481,7 +2481,7 @@ static void lay_down_rc_track_right_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2552,7 +2552,7 @@ static void lay_down_rc_track_25_deg_up_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2599,7 +2599,7 @@ static void lay_down_rc_track_25_deg_up_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2670,7 +2670,7 @@ static void lay_down_rc_track_25_deg_up_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2717,7 +2717,7 @@ static void lay_down_rc_track_25_deg_up_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2814,7 +2814,7 @@ static void lay_down_rc_track_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2854,7 +2854,7 @@ static void lay_down_rc_track_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); @@ -4824,7 +4824,7 @@ static void lay_down_rc_track_right_vertical_loop( break; } - track_paint_util_right_vertical_loop_segments(session, direction, trackSequence); + TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence); } /** rct2: 0x00824BBC */ @@ -7032,7 +7032,7 @@ static void lay_down_rc_track_left_quarter_turn_1_60_deg_up( break; } } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -7119,7 +7119,7 @@ static void lay_down_rc_track_right_quarter_turn_1_60_deg_up( } } - track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -7162,7 +7162,7 @@ static void lay_down_rc_track_brakes( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -7192,7 +7192,7 @@ static void lay_down_rc_track_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); @@ -7257,7 +7257,7 @@ static void lay_down_rc_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -7311,7 +7311,7 @@ static void lay_down_rc_track_on_ride_photo( { 32, 20, 3 }, { 0, 6, height + 24 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20); @@ -15182,7 +15182,7 @@ static void lay_down_rc_track_block_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]); @@ -16078,7 +16078,7 @@ static void lay_down_rc_track_half_loop_uninverted_down( lay_down_rc_track_half_loop_inverted_up(session, ride, 3 - trackSequence, direction, height, trackElement); } -TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLayDownRc(int32_t trackType) { switch (trackType) { @@ -16315,5 +16315,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int32_t trackType) case TrackElemType::FlyerHalfLoopUninvertedDown: return lay_down_rc_track_half_loop_uninverted_down; } - return get_track_paint_function_corkscrew_rc(trackType); + return GetTrackPaintFunctionCorkscrewRc(trackType); } diff --git a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp b/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp index cddb365609..e91e91468a 100644 --- a/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LimLaunchedRollerCoaster.cpp @@ -58,8 +58,8 @@ static void lim_launched_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -584,7 +584,7 @@ static void lim_launched_rc_track_right_vertical_loop( break; } - track_paint_util_right_vertical_loop_segments(session, direction, trackSequence); + TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence); } /** rct2: 0x008A6D10 */ @@ -1211,7 +1211,7 @@ static void lim_launched_rc_track_left_corkscrew_up( break; } - track_paint_util_left_corkscrew_up_supports(session, direction, height); + TrackPaintUtilLeftCorkscrewUpSupports(session, direction, height); if (direction == 0 || direction == 3) { @@ -1438,7 +1438,7 @@ static void lim_launched_rc_track_brakes( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1753,7 +1753,7 @@ static void lim_launched_rc_track_block_brakes( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(_LimLauncherBlockBrakeImages[direction][isClosed]), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2442,7 +2442,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up_long_base( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2482,7 +2482,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up_long_base( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2518,7 +2518,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up_long_base( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 10, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2554,7 +2554,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up_long_base( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 19, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2607,7 +2607,7 @@ static void lim_launched_rc_track_60_deg_up_to_flat_long_base( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 24, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2647,7 +2647,7 @@ static void lim_launched_rc_track_60_deg_up_to_flat_long_base( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2683,7 +2683,7 @@ static void lim_launched_rc_track_60_deg_up_to_flat_long_base( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 13, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2719,7 +2719,7 @@ static void lim_launched_rc_track_60_deg_up_to_flat_long_base( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5684,7 +5684,7 @@ static void lim_launched_rc_track_booster( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5694,7 +5694,7 @@ static void lim_launched_rc_track_booster( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLimLaunchedRc(int32_t trackType) { switch (trackType) { @@ -5828,7 +5828,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType) case TrackElemType::FlatToRightBankedDown25: case TrackElemType::LeftBankedDown25ToFlat: case TrackElemType::RightBankedDown25ToFlat: - return get_track_paint_function_looping_rc(trackType); + return GetTrackPaintFunctionLoopingRc(trackType); case TrackElemType::EndStation: case TrackElemType::BeginStation: case TrackElemType::MiddleStation: diff --git a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp index 82cfa1f66a..93d17f28a9 100644 --- a/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/LoopingRollerCoaster.cpp @@ -54,7 +54,7 @@ static void looping_rc_track_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -76,7 +76,7 @@ static void looping_rc_track_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -111,8 +111,8 @@ static void looping_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -148,7 +148,7 @@ static void looping_rc_track_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -178,7 +178,7 @@ static void looping_rc_track_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -226,7 +226,7 @@ static void looping_rc_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -256,7 +256,7 @@ static void looping_rc_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -304,7 +304,7 @@ static void looping_rc_track_flat_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -334,7 +334,7 @@ static void looping_rc_track_flat_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -388,7 +388,7 @@ static void looping_rc_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -424,7 +424,7 @@ static void looping_rc_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -478,7 +478,7 @@ static void looping_rc_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -514,7 +514,7 @@ static void looping_rc_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -562,7 +562,7 @@ static void looping_rc_track_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -592,7 +592,7 @@ static void looping_rc_track_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -876,7 +876,7 @@ static void looping_rc_track_flat_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -920,7 +920,7 @@ static void looping_rc_track_flat_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -964,7 +964,7 @@ static void looping_rc_track_left_bank_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1008,7 +1008,7 @@ static void looping_rc_track_right_bank_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1242,7 +1242,7 @@ static void looping_rc_track_left_bank_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1293,7 +1293,7 @@ static void looping_rc_track_right_bank_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1344,7 +1344,7 @@ static void looping_rc_track_25_deg_up_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1395,7 +1395,7 @@ static void looping_rc_track_25_deg_up_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1472,7 +1472,7 @@ static void looping_rc_track_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2737,7 +2737,7 @@ static void looping_rc_track_right_vertical_loop( break; } - track_paint_util_right_vertical_loop_segments(session, direction, trackSequence); + TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence); } /** rct2: 0x008A6630 */ @@ -4455,7 +4455,7 @@ static void looping_rc_track_left_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4500,7 +4500,7 @@ static void looping_rc_track_right_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4547,7 +4547,7 @@ static void looping_rc_track_brakes( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4585,7 +4585,7 @@ static void looping_rc_track_25_deg_up_left_banked( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4630,7 +4630,7 @@ static void looping_rc_track_25_deg_up_right_banked( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4695,7 +4695,7 @@ static void looping_rc_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -8351,7 +8351,7 @@ static void looping_rc_track_block_brakes( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8963,7 +8963,7 @@ static void looping_rc_track_25_deg_up_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9011,7 +9011,7 @@ static void looping_rc_track_25_deg_up_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9059,7 +9059,7 @@ static void looping_rc_track_left_banked_25_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9107,7 +9107,7 @@ static void looping_rc_track_right_banked_25_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9188,7 +9188,7 @@ static void looping_rc_track_left_banked_flat_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9233,7 +9233,7 @@ static void looping_rc_track_right_banked_flat_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9278,7 +9278,7 @@ static void looping_rc_track_left_banked_25_deg_up_to_left_banked_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9323,7 +9323,7 @@ static void looping_rc_track_right_banked_25_deg_up_to_right_banked_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9407,7 +9407,7 @@ static void looping_rc_track_flat_to_left_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9455,7 +9455,7 @@ static void looping_rc_track_flat_to_right_banked_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9503,7 +9503,7 @@ static void looping_rc_track_left_banked_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9551,7 +9551,7 @@ static void looping_rc_track_right_banked_25_deg_up_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9619,7 +9619,7 @@ static void looping_rc_track_booster( { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9629,7 +9629,7 @@ static void looping_rc_track_booster( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLoopingRc(int32_t trackType) { switch (trackType) { @@ -9907,5 +9907,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int32_t trackType) case TrackElemType::Booster: return looping_rc_track_booster; } - return get_track_paint_function_lim_launched_rc(trackType); + return GetTrackPaintFunctionLimLaunchedRc(trackType); } diff --git a/src/openrct2/ride/coaster/MineRide.cpp b/src/openrct2/ride/coaster/MineRide.cpp index f123d62432..ffac4602f6 100644 --- a/src/openrct2/ride/coaster/MineRide.cpp +++ b/src/openrct2/ride/coaster/MineRide.cpp @@ -30,7 +30,7 @@ static void mine_ride_track_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19338), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -40,7 +40,7 @@ static void mine_ride_track_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19339), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -69,8 +69,8 @@ static void mine_ride_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -87,7 +87,7 @@ static void mine_ride_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19388), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -96,7 +96,7 @@ static void mine_ride_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19389), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -106,7 +106,7 @@ static void mine_ride_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19390), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -115,7 +115,7 @@ static void mine_ride_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19391), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -146,7 +146,7 @@ static void mine_ride_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19380), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -155,7 +155,7 @@ static void mine_ride_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19381), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -164,7 +164,7 @@ static void mine_ride_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19382), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -173,7 +173,7 @@ static void mine_ride_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19383), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -203,7 +203,7 @@ static void mine_ride_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19384), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -212,7 +212,7 @@ static void mine_ride_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19385), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -222,7 +222,7 @@ static void mine_ride_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19386), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -231,7 +231,7 @@ static void mine_ride_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19387), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -483,7 +483,7 @@ static void mine_ride_track_flat_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19348), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -495,7 +495,7 @@ static void mine_ride_track_flat_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19349), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -504,7 +504,7 @@ static void mine_ride_track_flat_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19342), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -513,7 +513,7 @@ static void mine_ride_track_flat_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19343), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -536,7 +536,7 @@ static void mine_ride_track_flat_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19344), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -545,7 +545,7 @@ static void mine_ride_track_flat_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19345), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -557,7 +557,7 @@ static void mine_ride_track_flat_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19350), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -569,7 +569,7 @@ static void mine_ride_track_flat_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19351), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -595,7 +595,7 @@ static void mine_ride_track_left_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19350), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -607,7 +607,7 @@ static void mine_ride_track_left_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19351), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -616,7 +616,7 @@ static void mine_ride_track_left_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19344), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -625,7 +625,7 @@ static void mine_ride_track_left_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19345), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -648,7 +648,7 @@ static void mine_ride_track_right_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19342), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -657,7 +657,7 @@ static void mine_ride_track_right_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19343), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -669,7 +669,7 @@ static void mine_ride_track_right_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19348), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -681,7 +681,7 @@ static void mine_ride_track_right_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19349), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -907,7 +907,7 @@ static void mine_ride_track_left_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19356), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -919,7 +919,7 @@ static void mine_ride_track_left_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19357), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -928,7 +928,7 @@ static void mine_ride_track_left_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19354), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -937,7 +937,7 @@ static void mine_ride_track_left_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19355), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -967,7 +967,7 @@ static void mine_ride_track_right_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19358), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -976,7 +976,7 @@ static void mine_ride_track_right_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19359), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -988,7 +988,7 @@ static void mine_ride_track_right_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19362), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1000,7 +1000,7 @@ static void mine_ride_track_right_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19363), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1033,7 +1033,7 @@ static void mine_ride_track_25_deg_up_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19368), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1045,7 +1045,7 @@ static void mine_ride_track_25_deg_up_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19369), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1055,7 +1055,7 @@ static void mine_ride_track_25_deg_up_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19366), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1064,7 +1064,7 @@ static void mine_ride_track_25_deg_up_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19367), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1095,7 +1095,7 @@ static void mine_ride_track_25_deg_up_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19370), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1104,7 +1104,7 @@ static void mine_ride_track_25_deg_up_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19371), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1117,7 +1117,7 @@ static void mine_ride_track_25_deg_up_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19374), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1129,7 +1129,7 @@ static void mine_ride_track_25_deg_up_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19375), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1192,7 +1192,7 @@ static void mine_ride_track_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19376), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1201,7 +1201,7 @@ static void mine_ride_track_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19377), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1210,7 +1210,7 @@ static void mine_ride_track_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19378), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1219,7 +1219,7 @@ static void mine_ride_track_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19379), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3189,7 +3189,7 @@ static void mine_ride_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -5423,7 +5423,7 @@ static void mine_ride_track_diag_right_bank( } } -TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineRide(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/MineTrainCoaster.cpp b/src/openrct2/ride/coaster/MineTrainCoaster.cpp index e1278d9b58..c1c68e474e 100644 --- a/src/openrct2/ride/coaster/MineTrainCoaster.cpp +++ b/src/openrct2/ride/coaster/MineTrainCoaster.cpp @@ -118,8 +118,8 @@ static void mine_train_rc_track_station( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 0, height }, { 32, 20, 1 }, { 0, 0, height }); } - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -4176,7 +4176,7 @@ static void mine_train_rc_track_on_ride_photo( WoodenASupportsPaintSetup(session, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]); break; } - track_paint_util_onride_photo_paint(session, direction, height + 2, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 2, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -7515,7 +7515,7 @@ static void mine_train_rc_track_block_brakes( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_mine_train_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineTrainRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp b/src/openrct2/ride/coaster/MiniRollerCoaster.cpp index 49753682f4..d2045c71f1 100644 --- a/src/openrct2/ride/coaster/MiniRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/MiniRollerCoaster.cpp @@ -43,7 +43,7 @@ static void mini_rc_track_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19044), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -52,7 +52,7 @@ static void mini_rc_track_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19045), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -62,7 +62,7 @@ static void mini_rc_track_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19046), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -71,7 +71,7 @@ static void mini_rc_track_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19047), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -88,7 +88,7 @@ static void mini_rc_track_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18738), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -98,7 +98,7 @@ static void mini_rc_track_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18739), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -139,8 +139,8 @@ static void mini_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -159,7 +159,7 @@ static void mini_rc_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19056), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -169,7 +169,7 @@ static void mini_rc_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19057), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -179,7 +179,7 @@ static void mini_rc_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19058), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -189,7 +189,7 @@ static void mini_rc_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19059), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -205,7 +205,7 @@ static void mini_rc_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18796), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -215,7 +215,7 @@ static void mini_rc_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18797), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -225,7 +225,7 @@ static void mini_rc_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18798), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -235,7 +235,7 @@ static void mini_rc_track_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18799), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -267,7 +267,7 @@ static void mini_rc_track_60_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18812), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 38, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -276,7 +276,7 @@ static void mini_rc_track_60_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18813), { 0, 0, height }, { 32, 1, 98 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 38, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -286,7 +286,7 @@ static void mini_rc_track_60_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18814), { 0, 0, height }, { 32, 1, 98 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 38, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -295,7 +295,7 @@ static void mini_rc_track_60_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18815), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 38, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -328,7 +328,7 @@ static void mini_rc_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19048), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -337,7 +337,7 @@ static void mini_rc_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19049), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -347,7 +347,7 @@ static void mini_rc_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19050), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -356,7 +356,7 @@ static void mini_rc_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19051), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -372,7 +372,7 @@ static void mini_rc_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18788), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -381,7 +381,7 @@ static void mini_rc_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18789), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -391,7 +391,7 @@ static void mini_rc_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18790), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -400,7 +400,7 @@ static void mini_rc_track_flat_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18791), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -432,7 +432,7 @@ static void mini_rc_track_25_deg_up_to_60_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18800), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -444,7 +444,7 @@ static void mini_rc_track_25_deg_up_to_60_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18804), { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -457,7 +457,7 @@ static void mini_rc_track_25_deg_up_to_60_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18805), { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -466,7 +466,7 @@ static void mini_rc_track_25_deg_up_to_60_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18803), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -497,7 +497,7 @@ static void mini_rc_track_60_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18806), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 26, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -509,7 +509,7 @@ static void mini_rc_track_60_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18810), { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 26, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -522,7 +522,7 @@ static void mini_rc_track_60_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18811), { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 26, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -531,7 +531,7 @@ static void mini_rc_track_60_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18809), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 26, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -564,7 +564,7 @@ static void mini_rc_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19052), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -574,7 +574,7 @@ static void mini_rc_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19053), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -584,7 +584,7 @@ static void mini_rc_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19054), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -594,7 +594,7 @@ static void mini_rc_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19055), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -610,7 +610,7 @@ static void mini_rc_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18792), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -620,7 +620,7 @@ static void mini_rc_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18793), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -630,7 +630,7 @@ static void mini_rc_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18794), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -640,7 +640,7 @@ static void mini_rc_track_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18795), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -917,7 +917,7 @@ static void mini_rc_track_flat_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18756), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -929,7 +929,7 @@ static void mini_rc_track_flat_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18757), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -938,7 +938,7 @@ static void mini_rc_track_flat_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18750), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -947,7 +947,7 @@ static void mini_rc_track_flat_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18751), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -970,7 +970,7 @@ static void mini_rc_track_flat_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18752), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -979,7 +979,7 @@ static void mini_rc_track_flat_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18753), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -991,7 +991,7 @@ static void mini_rc_track_flat_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18758), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1003,7 +1003,7 @@ static void mini_rc_track_flat_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18759), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1029,7 +1029,7 @@ static void mini_rc_track_left_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18758), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1041,7 +1041,7 @@ static void mini_rc_track_left_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18759), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1050,7 +1050,7 @@ static void mini_rc_track_left_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18752), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1059,7 +1059,7 @@ static void mini_rc_track_left_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18753), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1082,7 +1082,7 @@ static void mini_rc_track_right_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18750), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1091,7 +1091,7 @@ static void mini_rc_track_right_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18751), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1103,7 +1103,7 @@ static void mini_rc_track_right_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18756), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1115,7 +1115,7 @@ static void mini_rc_track_right_bank_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18757), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1341,7 +1341,7 @@ static void mini_rc_track_left_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18764), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1353,7 +1353,7 @@ static void mini_rc_track_left_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18765), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1362,7 +1362,7 @@ static void mini_rc_track_left_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18762), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1371,7 +1371,7 @@ static void mini_rc_track_left_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18763), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1401,7 +1401,7 @@ static void mini_rc_track_right_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18766), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1410,7 +1410,7 @@ static void mini_rc_track_right_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18767), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1422,7 +1422,7 @@ static void mini_rc_track_right_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18770), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1434,7 +1434,7 @@ static void mini_rc_track_right_bank_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18771), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1467,7 +1467,7 @@ static void mini_rc_track_25_deg_up_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18776), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1479,7 +1479,7 @@ static void mini_rc_track_25_deg_up_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18777), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1489,7 +1489,7 @@ static void mini_rc_track_25_deg_up_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18774), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1498,7 +1498,7 @@ static void mini_rc_track_25_deg_up_to_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18775), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1529,7 +1529,7 @@ static void mini_rc_track_25_deg_up_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18778), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1538,7 +1538,7 @@ static void mini_rc_track_25_deg_up_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18779), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1551,7 +1551,7 @@ static void mini_rc_track_25_deg_up_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18782), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1563,7 +1563,7 @@ static void mini_rc_track_25_deg_up_to_right_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18783), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1626,7 +1626,7 @@ static void mini_rc_track_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18784), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1635,7 +1635,7 @@ static void mini_rc_track_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18785), { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1644,7 +1644,7 @@ static void mini_rc_track_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18786), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1653,7 +1653,7 @@ static void mini_rc_track_left_bank( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18787), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4235,7 +4235,7 @@ static void mini_rc_track_left_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4280,7 +4280,7 @@ static void mini_rc_track_right_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -4313,7 +4313,7 @@ static void mini_rc_track_brakes( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18740), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4323,7 +4323,7 @@ static void mini_rc_track_brakes( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(18741), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4346,7 +4346,7 @@ static void mini_rc_track_25_deg_up_left_banked( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19222), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4355,7 +4355,7 @@ static void mini_rc_track_25_deg_up_left_banked( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19223), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4365,7 +4365,7 @@ static void mini_rc_track_25_deg_up_left_banked( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19224), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4374,7 +4374,7 @@ static void mini_rc_track_25_deg_up_left_banked( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19225), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4405,7 +4405,7 @@ static void mini_rc_track_25_deg_up_right_banked( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19226), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4414,7 +4414,7 @@ static void mini_rc_track_25_deg_up_right_banked( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19227), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4424,7 +4424,7 @@ static void mini_rc_track_25_deg_up_right_banked( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19228), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4433,7 +4433,7 @@ static void mini_rc_track_25_deg_up_right_banked( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19229), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -4497,7 +4497,7 @@ static void mini_rc_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -7712,14 +7712,14 @@ static void mini_rc_track_block_brakes( { case 0: case 2: - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } break; case 1: case 3: - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8360,7 +8360,7 @@ static void mini_rc_track_25_deg_up_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19230), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8372,7 +8372,7 @@ static void mini_rc_track_25_deg_up_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19238), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8382,7 +8382,7 @@ static void mini_rc_track_25_deg_up_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19232), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8391,7 +8391,7 @@ static void mini_rc_track_25_deg_up_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19233), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8422,7 +8422,7 @@ static void mini_rc_track_25_deg_up_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19234), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8431,7 +8431,7 @@ static void mini_rc_track_25_deg_up_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19235), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8444,7 +8444,7 @@ static void mini_rc_track_25_deg_up_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19239), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8453,7 +8453,7 @@ static void mini_rc_track_25_deg_up_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19237), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8484,7 +8484,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19240), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8496,7 +8496,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19248), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8506,7 +8506,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19242), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8515,7 +8515,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19243), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8546,7 +8546,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19244), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8555,7 +8555,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19245), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8568,7 +8568,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19249), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8577,7 +8577,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19247), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8640,7 +8640,7 @@ static void mini_rc_track_left_banked_flat_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19250), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8649,7 +8649,7 @@ static void mini_rc_track_left_banked_flat_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19251), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8658,7 +8658,7 @@ static void mini_rc_track_left_banked_flat_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19252), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8667,7 +8667,7 @@ static void mini_rc_track_left_banked_flat_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19253), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8697,7 +8697,7 @@ static void mini_rc_track_right_banked_flat_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19254), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8706,7 +8706,7 @@ static void mini_rc_track_right_banked_flat_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19255), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8715,7 +8715,7 @@ static void mini_rc_track_right_banked_flat_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19256), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8724,7 +8724,7 @@ static void mini_rc_track_right_banked_flat_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19257), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8754,7 +8754,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_left_banked_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19258), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8763,7 +8763,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_left_banked_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19259), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8773,7 +8773,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_left_banked_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19260), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8782,7 +8782,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_left_banked_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19261), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8813,7 +8813,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_right_banked_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19262), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8822,7 +8822,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_right_banked_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19263), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8832,7 +8832,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_right_banked_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19264), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8841,7 +8841,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_right_banked_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19265), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -8908,7 +8908,7 @@ static void mini_rc_track_flat_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19202), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8920,7 +8920,7 @@ static void mini_rc_track_flat_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19210), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8929,7 +8929,7 @@ static void mini_rc_track_flat_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19204), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8938,7 +8938,7 @@ static void mini_rc_track_flat_to_left_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19205), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8968,7 +8968,7 @@ static void mini_rc_track_flat_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19206), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8977,7 +8977,7 @@ static void mini_rc_track_flat_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19207), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8989,7 +8989,7 @@ static void mini_rc_track_flat_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19211), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8998,7 +8998,7 @@ static void mini_rc_track_flat_to_right_banked_25_deg_up( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19209), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9028,7 +9028,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19212), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9040,7 +9040,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19220), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -9050,7 +9050,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19214), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9059,7 +9059,7 @@ static void mini_rc_track_left_banked_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19215), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -9090,7 +9090,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19216), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9099,7 +9099,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19217), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -9112,7 +9112,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19221), { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9121,7 +9121,7 @@ static void mini_rc_track_right_banked_25_deg_up_to_flat( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19219), { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -9390,7 +9390,7 @@ static void mini_rc_track_booster( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(SPR_G2_MINI_RC_BOOSTER_NE_SW), { ne_sw_offsetX, ne_sw_offsetY, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9400,7 +9400,7 @@ static void mini_rc_track_booster( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(SPR_G2_MINI_RC_BOOSTER_NW_SE), { nw_se_offsetX, nw_se_offsetY, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -9412,7 +9412,7 @@ static void mini_rc_track_booster( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp b/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp index 8651f727db..0d77b43d83 100644 --- a/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp +++ b/src/openrct2/ride/coaster/MiniSuspendedCoaster.cpp @@ -62,7 +62,7 @@ static void mini_suspended_rc_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -104,8 +104,8 @@ static void mini_suspended_rc_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 24 }, { 32, 20, 1 }, { 0, 2, height }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); - track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); + TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -171,7 +171,7 @@ static void mini_suspended_rc_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -265,7 +265,7 @@ static void mini_suspended_rc_track_flat_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -359,7 +359,7 @@ static void mini_suspended_rc_track_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2506,7 +2506,7 @@ static void mini_suspended_rc_track_diag_25_deg_down_to_flat( } } -TRACK_PAINT_FUNCTION get_track_paint_function_mini_suspended_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniSuspendedRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp b/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp index ee5dc2ce06..8e29894565 100644 --- a/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/MultiDimensionRollerCoaster.cpp @@ -57,7 +57,7 @@ static void multi_dimension_rc_track_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -80,7 +80,7 @@ static void multi_dimension_rc_track_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -110,7 +110,7 @@ static void multi_dimension_rc_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]); @@ -147,30 +147,30 @@ static void multi_dimension_rc_track_station( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 0, height }, { 32, 26, 1 }, { 0, 3, height + 3 }); } - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11); const auto* stationObj = ride.GetStationObject(); bool hasFence; if (direction == 0 || direction == 2) { - hasFence = track_paint_util_has_fence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation); - track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height); + hasFence = TrackPaintUtilHasFence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation); + TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height); } else { - hasFence = track_paint_util_has_fence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation); - track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height); + hasFence = TrackPaintUtilHasFence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation); + TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height); } if (direction == 0 || direction == 2) { - hasFence = track_paint_util_has_fence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation); - track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height); + hasFence = TrackPaintUtilHasFence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation); + TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, height); } else { - hasFence = track_paint_util_has_fence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation); - track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height); + hasFence = TrackPaintUtilHasFence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation); + TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, height); } PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -210,7 +210,7 @@ static void multi_dimension_rc_track_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -241,7 +241,7 @@ static void multi_dimension_rc_track_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -286,7 +286,7 @@ static void multi_dimension_rc_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -351,7 +351,7 @@ static void multi_dimension_rc_track_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 24, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -438,7 +438,7 @@ static void multi_dimension_rc_track_flat_to_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -469,7 +469,7 @@ static void multi_dimension_rc_track_flat_to_25_deg_up( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -514,7 +514,7 @@ static void multi_dimension_rc_track_flat_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -585,7 +585,7 @@ static void multi_dimension_rc_track_25_deg_up_to_60_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -682,7 +682,7 @@ static void multi_dimension_rc_track_60_deg_up_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -732,7 +732,7 @@ static void multi_dimension_rc_track_60_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -799,7 +799,7 @@ static void multi_dimension_rc_track_25_deg_up_to_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -830,7 +830,7 @@ static void multi_dimension_rc_track_25_deg_up_to_flat( { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -875,7 +875,7 @@ static void multi_dimension_rc_track_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1365,7 +1365,7 @@ static void multi_dimension_rc_track_flat_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1404,7 +1404,7 @@ static void multi_dimension_rc_track_flat_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]); @@ -1451,7 +1451,7 @@ static void multi_dimension_rc_track_flat_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1490,7 +1490,7 @@ static void multi_dimension_rc_track_flat_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]); @@ -1537,7 +1537,7 @@ static void multi_dimension_rc_track_left_bank_to_flat( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1576,7 +1576,7 @@ static void multi_dimension_rc_track_left_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]); @@ -1623,7 +1623,7 @@ static void multi_dimension_rc_track_right_bank_to_flat( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -1662,7 +1662,7 @@ static void multi_dimension_rc_track_right_bank_to_flat( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]); @@ -2087,7 +2087,7 @@ static void multi_dimension_rc_track_left_bank_to_25_deg_up( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2133,7 +2133,7 @@ static void multi_dimension_rc_track_left_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2204,7 +2204,7 @@ static void multi_dimension_rc_track_right_bank_to_25_deg_up( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2250,7 +2250,7 @@ static void multi_dimension_rc_track_right_bank_to_25_deg_up( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2321,7 +2321,7 @@ static void multi_dimension_rc_track_25_deg_up_to_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2367,7 +2367,7 @@ static void multi_dimension_rc_track_25_deg_up_to_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2438,7 +2438,7 @@ static void multi_dimension_rc_track_25_deg_up_to_right_bank( { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2484,7 +2484,7 @@ static void multi_dimension_rc_track_25_deg_up_to_right_bank( session, PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -2581,7 +2581,7 @@ static void multi_dimension_rc_track_left_bank( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -2620,7 +2620,7 @@ static void multi_dimension_rc_track_left_bank( session, PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]); @@ -5007,7 +5007,7 @@ static void multi_dimension_rc_track_brakes( { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -5036,7 +5036,7 @@ static void multi_dimension_rc_track_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]); @@ -5101,7 +5101,7 @@ static void multi_dimension_rc_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -5155,7 +5155,7 @@ static void multi_dimension_rc_track_on_ride_photo( { 32, 20, 3 }, { 0, 6, height + 24 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20); @@ -12476,7 +12476,7 @@ static void multi_dimension_rc_track_block_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]); @@ -13076,7 +13076,7 @@ static void multi_dimension_rc_track_multidim_inverted_90_deg_up_to_flat_quarter } } -TRACK_PAINT_FUNCTION get_track_paint_function_multi_dimension_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMultiDimensionRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp b/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp index ab400364d3..7323cc947b 100644 --- a/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp +++ b/src/openrct2/ride/coaster/ReverseFreefallCoaster.cpp @@ -250,7 +250,7 @@ static void paint_reverse_freefall_rc_station( PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT); } - track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 5, trackElement); + TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 5, trackElement); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -414,14 +414,14 @@ static void paint_reverse_freefall_rc_onride_photo( WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionReverseFreefallRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp b/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp index f3936bd087..780eca2b50 100644 --- a/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/ReverserRollerCoaster.cpp @@ -113,7 +113,7 @@ static void reverser_rc_track_station( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 0, height }, { 32, 27, 2 }, { 0, 2, height }); WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -1458,7 +1458,7 @@ static void reverser_rc_track_right_reverser( } } -TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionReverserRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp b/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp index 4d7861281d..2b4a1889ca 100644 --- a/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/SideFrictionRollerCoaster.cpp @@ -159,7 +159,7 @@ static void side_friction_rc_track_station( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction]), { 0, 0, height }, { 32, 27, 2 }, { 0, 2, height }); WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -3431,7 +3431,7 @@ static void side_friction_rc_track_diag_60_deg_down_to_25_deg_down( session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement); }; -TRACK_PAINT_FUNCTION get_track_paint_function_side_friction_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSideFrictionRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp b/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp index db9ff8ace2..fe0e811814 100644 --- a/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/SingleRailRollerCoaster.cpp @@ -59,7 +59,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -81,7 +81,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -118,8 +118,8 @@ namespace SingleRailRC PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][2]), { 0, 0, height - 2 }, { 32, 28, 2 }, { 0, 2, height }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 4, 7); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 4, 7); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -158,7 +158,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -190,7 +190,7 @@ namespace SingleRailRC { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -241,7 +241,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -271,7 +271,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -322,7 +322,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -352,7 +352,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -411,7 +411,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -447,7 +447,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -506,7 +506,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -542,7 +542,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -593,7 +593,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -623,7 +623,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -768,7 +768,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 36, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -3631,7 +3631,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3680,7 +3680,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3743,7 +3743,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3799,7 +3799,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3855,7 +3855,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3911,7 +3911,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -3987,7 +3987,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -6579,7 +6579,7 @@ namespace SingleRailRC { 0, 0, height }, { 28, 28, 1 }, { 2, 2, height + 99 }); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -6631,7 +6631,7 @@ namespace SingleRailRC { 0, 0, height }, { 28, 28, 1 }, { 2, 2, height + 99 }); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -6803,7 +6803,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -6855,7 +6855,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -6907,7 +6907,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -6959,7 +6959,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7035,7 +7035,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7083,7 +7083,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7131,7 +7131,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7179,7 +7179,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7255,7 +7255,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7303,7 +7303,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7369,7 +7369,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7421,7 +7421,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7473,7 +7473,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -7525,7 +7525,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10516,7 +10516,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -10569,7 +10569,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 0 }, { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -10609,7 +10609,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -10650,7 +10650,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -10687,7 +10687,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 10, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -10724,7 +10724,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 19, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -10778,7 +10778,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 24, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -10819,7 +10819,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -10856,7 +10856,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 13, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -10893,7 +10893,7 @@ namespace SingleRailRC { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -10949,7 +10949,7 @@ namespace SingleRailRC { 32, 20, 3 }, { 0, 6, height }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } diff --git a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp b/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp index 043355b003..b0fbdaba07 100644 --- a/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/StandUpRollerCoaster.cpp @@ -56,7 +56,7 @@ static void stand_up_rc_track_flat( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25454), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -76,7 +76,7 @@ static void stand_up_rc_track_flat( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25230), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -115,8 +115,8 @@ static void stand_up_rc_track_station( PaintAddImageAsParentRotated( session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height }, { 32, 32, 1 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -148,7 +148,7 @@ static void stand_up_rc_track_25_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25399), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -174,7 +174,7 @@ static void stand_up_rc_track_25_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25245), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -220,7 +220,7 @@ static void stand_up_rc_track_60_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25400), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -248,7 +248,7 @@ static void stand_up_rc_track_60_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25246), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -292,7 +292,7 @@ static void stand_up_rc_track_flat_to_25_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25403), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -318,7 +318,7 @@ static void stand_up_rc_track_flat_to_25_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25249), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -370,7 +370,7 @@ static void stand_up_rc_track_25_deg_up_to_60_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25404), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -404,7 +404,7 @@ static void stand_up_rc_track_25_deg_up_to_60_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25250), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -456,7 +456,7 @@ static void stand_up_rc_track_60_deg_up_to_25_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25406), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -490,7 +490,7 @@ static void stand_up_rc_track_60_deg_up_to_25_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25252), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -534,7 +534,7 @@ static void stand_up_rc_track_25_deg_up_to_flat( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25405), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -560,7 +560,7 @@ static void stand_up_rc_track_25_deg_up_to_flat( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25251), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -834,7 +834,7 @@ static void stand_up_rc_track_flat_to_left_bank( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25283), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -868,7 +868,7 @@ static void stand_up_rc_track_flat_to_right_bank( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25285), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -902,7 +902,7 @@ static void stand_up_rc_track_left_bank_to_flat( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25284), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -936,7 +936,7 @@ static void stand_up_rc_track_right_bank_to_flat( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25286), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1160,7 +1160,7 @@ static void stand_up_rc_track_left_bank_to_25_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25318), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1201,7 +1201,7 @@ static void stand_up_rc_track_right_bank_to_25_deg_up( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25322), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1242,7 +1242,7 @@ static void stand_up_rc_track_25_deg_up_to_left_bank( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25314), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1283,7 +1283,7 @@ static void stand_up_rc_track_25_deg_up_to_right_bank( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25310), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1356,7 +1356,7 @@ static void stand_up_rc_track_left_bank( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25326), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -2871,7 +2871,7 @@ static void stand_up_rc_track_right_vertical_loop( break; } - track_paint_util_right_vertical_loop_segments(session, direction, trackSequence); + TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence); } /** rct2: 0x008A73B4 */ @@ -3628,7 +3628,7 @@ static void stand_up_rc_track_left_corkscrew_up( break; } - track_paint_util_left_corkscrew_up_supports(session, direction, height); + TrackPaintUtilLeftCorkscrewUpSupports(session, direction, height); if (direction == 0 || direction == 3) { @@ -5081,7 +5081,7 @@ static void stand_up_rc_track_brakes( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25570), { 0, 6, height }, { 32, 20, 3 }); break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -5135,7 +5135,7 @@ static void stand_up_rc_track_on_ride_photo( { 0, 6, height + 3 }); break; } - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -8759,7 +8759,7 @@ static void stand_up_rc_track_block_brakes( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(_StandUpBlockBrakeImages[direction][isClosed]), { 0, 6, height }, { 32, 20, 3 }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -8769,7 +8769,7 @@ static void stand_up_rc_track_block_brakes( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionStandUpRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/Steeplechase.cpp b/src/openrct2/ride/coaster/Steeplechase.cpp index 7c5dcea8af..490725e0b5 100644 --- a/src/openrct2/ride/coaster/Steeplechase.cpp +++ b/src/openrct2/ride/coaster/Steeplechase.cpp @@ -84,8 +84,8 @@ static void steeplechase_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 6, height }, { 32, 20, 3 }, { 0, 0, height }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -2390,7 +2390,7 @@ static void steeplechase_track_block_brakes( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSteeplechase(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp b/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp index 64809c9c4e..e0f6ee8980 100644 --- a/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp +++ b/src/openrct2/ride/coaster/SuspendedSwingingCoaster.cpp @@ -62,7 +62,7 @@ static void suspended_swinging_rc_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -92,8 +92,8 @@ static void suspended_swinging_rc_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 29 }, { 32, 20, 3 }, { 0, 6, height + 29 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); - track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0); + TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -159,7 +159,7 @@ static void suspended_swinging_rc_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -294,7 +294,7 @@ static void suspended_swinging_rc_track_flat_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -447,7 +447,7 @@ static void suspended_swinging_rc_track_60_deg_up_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -541,7 +541,7 @@ static void suspended_swinging_rc_track_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1893,7 +1893,7 @@ static void suspended_swinging_rc_track_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4436,7 +4436,7 @@ static void suspended_swinging_rc_track_block_brakes( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]); } @@ -4445,7 +4445,7 @@ static void suspended_swinging_rc_track_block_brakes( PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSuspendedSwingingRc(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/VirginiaReel.cpp b/src/openrct2/ride/coaster/VirginiaReel.cpp index 3f20534c22..c2ad996ac7 100644 --- a/src/openrct2/ride/coaster/VirginiaReel.cpp +++ b/src/openrct2/ride/coaster/VirginiaReel.cpp @@ -452,7 +452,7 @@ static void paint_virginia_reel_station( } WoodenASupportsPaintSetup(session, (direction & 1), 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -470,10 +470,10 @@ static void paint_virginia_reel_track_left_quarter_turn_3_tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_left_quarter_turn_3_tiles_paint( + TrackPaintUtilLeftQuarterTurn3TilesPaint( session, 2, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], virginia_reel_track_pieces_flat_quarter_turn_3_tiles); - track_paint_util_left_quarter_turn_3_tiles_tunnel(session, height, TUNNEL_SQUARE_FLAT, direction, trackSequence); + TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TUNNEL_SQUARE_FLAT, direction, trackSequence); switch (trackSequence) { @@ -514,7 +514,7 @@ static void paint_virginia_reel_track_left_quarter_turn_1_tile( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_left_quarter_turn_1_tile_paint( + TrackPaintUtilLeftQuarterTurn1TilePaint( session, 2, height, 0, direction, session.TrackColours[SCHEME_TRACK], virginia_reel_track_pieces_flat_quarter_turn_1_tile); @@ -553,7 +553,7 @@ static void paint_virginia_reel_track_right_quarter_turn_1_tile( /** * rct2: 0x00811184 */ -TRACK_PAINT_FUNCTION get_track_paint_function_virginia_reel(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionVirginiaReel(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/WildMouse.cpp b/src/openrct2/ride/coaster/WildMouse.cpp index a393405f0f..b64c2ee9bc 100644 --- a/src/openrct2/ride/coaster/WildMouse.cpp +++ b/src/openrct2/ride/coaster/WildMouse.cpp @@ -178,7 +178,7 @@ static void wild_mouse_track_flat( uint8_t isChained = trackElement.HasChain() ? 1 : 0; auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][isChained]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -1, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -217,8 +217,8 @@ static void wild_mouse_track_station( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(_wild_mouse_brakes_image_ids[direction]), { 0, 0, height }, { 32, 20, 2 }, { 0, 0, height }); } - track_paint_util_draw_station_metal_supports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStationMetalSupports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS]); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -239,7 +239,7 @@ static void wild_mouse_track_25_deg_up( uint8_t isChained = trackElement.HasChain() ? 1 : 0; auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][isChained]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -278,7 +278,7 @@ static void wild_mouse_track_60_deg_up( { PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 98 }, { 0, 27, height }); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { if (direction == 0 || direction == 3) { @@ -317,7 +317,7 @@ static void wild_mouse_track_flat_to_25_deg_up( uint8_t isChained = trackElement.HasChain() ? 1 : 0; auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][isChained]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -4, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -364,7 +364,7 @@ static void wild_mouse_track_25_deg_up_to_60_deg_up( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -13, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -411,7 +411,7 @@ static void wild_mouse_track_60_deg_up_to_25_deg_up( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -21, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -443,7 +443,7 @@ static void wild_mouse_track_25_deg_up_to_flat( uint8_t isChained = trackElement.HasChain() ? 1 : 0; auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][isChained]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -7, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -535,9 +535,9 @@ static void wild_mouse_track_right_quarter_turn_3( }, }; - track_paint_util_right_quarter_turn_3_tiles_paint_3( + TrackPaintUtilRightQuarterTurn3TilesPaint3( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0); switch (trackSequence) { @@ -598,8 +598,7 @@ static void wild_mouse_track_right_quarter_turn_3_25_deg_down( sbb->bb_size); } - track_paint_util_right_quarter_turn_3_tiles_25_deg_down_tunnel( - session, height, direction, trackSequence, TUNNEL_2, TUNNEL_1); + TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(session, height, direction, trackSequence, TUNNEL_2, TUNNEL_1); switch (trackSequence) { @@ -665,7 +664,7 @@ static void wild_mouse_track_right_quarter_turn_3_25_deg_up( { sbb->offset.x, sbb->offset.y, height + sbb->offset.z }, sbb->bb_size); } - track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(session, height, direction, trackSequence, TUNNEL_1, TUNNEL_2); + TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(session, height, direction, trackSequence, TUNNEL_1, TUNNEL_2); switch (trackSequence) { @@ -744,7 +743,7 @@ static void wild_mouse_track_left_quarter_turn_1( break; } MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -1, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -788,7 +787,7 @@ static void wild_mouse_track_flat_to_60_deg_up( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 1, 24, 43 }, { 29, 4, height + 2 }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 2, 43 }, { 0, 4, height }); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -5, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -835,7 +834,7 @@ static void wild_mouse_track_60_deg_up_to_flat( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 1, 24, 43 }, { 29, 4, height + 2 }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 2, 43 }, { 0, 4, height }); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { if (direction == 0 || direction == 3) { @@ -882,7 +881,7 @@ static void wild_mouse_track_brakes( { auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(_wild_mouse_brakes_image_ids[direction]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -906,7 +905,7 @@ static void wild_mouse_track_rotation_control_toggle( auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -924,7 +923,7 @@ static void wild_mouse_track_block_brakes( bool isClosed = trackElement.IsBrakeClosed(); auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(_wild_mouse_block_brakes_image_ids[direction][isClosed]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -934,7 +933,7 @@ static void wild_mouse_track_block_brakes( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_wild_mouse(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionWildMouse(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp b/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp index 6368a0ad17..97341556c3 100644 --- a/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp +++ b/src/openrct2/ride/coaster/WoodenRollerCoaster.cpp @@ -508,7 +508,7 @@ static void wooden_rc_track_station( height); } WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11); + TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -1453,7 +1453,7 @@ static void wooden_rc_track_right_quarter_turn_5( WoodenRcTrackPaintBb(session, &imageIds[0][direction][trackSequence], height); WoodenRcTrackPaintBb(session, &imageIds[1][direction][trackSequence], height); - track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); + TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); if (supportType[direction][trackSequence] != -1) { @@ -1955,7 +1955,7 @@ static void wooden_rc_track_banked_right_quarter_turn_5( WoodenRcTrackPaintBb(session, &imageIds[0][direction][trackSequence], height); WoodenRcTrackPaintBb(session, &imageIds[1][direction][trackSequence], height); - track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); + TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); if (supportType[direction][trackSequence] != -1) { @@ -3963,7 +3963,7 @@ static void wooden_rc_track_right_vertical_loop( break; } - track_paint_util_right_vertical_loop_segments(session, direction, trackSequence); + TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence); } /** rct2: 0x008AC7E8 */ @@ -7009,7 +7009,7 @@ static void wooden_rc_track_left_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -7079,7 +7079,7 @@ static void wooden_rc_track_right_quarter_turn_1_60_deg_up( { 2, 2, height + 99 }); break; } - track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); + TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20); } @@ -7305,7 +7305,7 @@ static void wooden_rc_track_on_ride_photo( break; } WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_onride_photo_small_paint(session, direction, height + 16, trackElement); + TrackPaintUtilOnridePhotoSmallPaint(session, direction, height + 16, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -14854,7 +14854,7 @@ static void wooden_rc_track_booster( PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } -template TRACK_PAINT_FUNCTION get_track_paint_function_wooden_and_classic_wooden_rc(int32_t trackType) +template TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenAndClassicWoodenRc(int32_t trackType) { switch (trackType) { @@ -15144,12 +15144,12 @@ template TRACK_PAINT_FUNCTION get_track_paint_function_wooden_an return nullptr; } -TRACK_PAINT_FUNCTION get_track_paint_function_wooden_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenRc(int32_t trackType) { - return get_track_paint_function_wooden_and_classic_wooden_rc(trackType); + return GetTrackPaintFunctionWoodenAndClassicWoodenRc(trackType); } TRACK_PAINT_FUNCTION GetTrackPaintFunctionClassicWoodenRcFallback(int32_t trackType) { - return get_track_paint_function_wooden_and_classic_wooden_rc(trackType); + return GetTrackPaintFunctionWoodenAndClassicWoodenRc(trackType); } diff --git a/src/openrct2/ride/coaster/WoodenWildMouse.cpp b/src/openrct2/ride/coaster/WoodenWildMouse.cpp index 79164cf511..8fd5c0f32c 100644 --- a/src/openrct2/ride/coaster/WoodenWildMouse.cpp +++ b/src/openrct2/ride/coaster/WoodenWildMouse.cpp @@ -163,7 +163,7 @@ static void wooden_wild_mouse_track_station( session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 6, height }, { 32, 20, 1 }, { 0, 0, height }); WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -510,9 +510,9 @@ static void wooden_wild_mouse_track_right_quarter_turn_3( }; static uint8_t supportType[] = { 4, 5, 2, 3 }; - track_paint_util_right_quarter_turn_3_tiles_paint_4( + TrackPaintUtilRightQuarterTurn3TilesPaint4( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0); switch (trackSequence) { @@ -576,7 +576,7 @@ static void wooden_wild_mouse_track_left_quarter_turn_1( break; } WoodenASupportsPaintSetup(session, supportType[direction], 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } @@ -705,7 +705,7 @@ static void wooden_wild_mouse_track_60_deg_down_to_flat( wooden_wild_mouse_track_flat_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement); } -TRACK_PAINT_FUNCTION get_track_paint_function_wooden_wild_mouse(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenWildMouse(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h b/src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h index 0a95ada67c..7905398d10 100644 --- a/src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h +++ b/src/openrct2/ride/coaster/meta/AirPoweredVerticalCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor AirPoweredVerticalCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_air_powered_vertical_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionAirPoweredVerticalRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES), SET_FIELD(RideModes, EnumsToFlags(RideMode::PoweredLaunchPasstrough, RideMode::PoweredLaunch)), SET_FIELD(DefaultMode, RideMode::PoweredLaunchPasstrough), @@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor AirPoweredVerticalCoasterRTD = SET_FIELD(Heights, { 255, 32, 4, 7, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_air_powered_vertical_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateAirPoweredVerticalCoaster), SET_FIELD(RatingsMultipliers, { 44, 66, 10 }), SET_FIELD(UpkeepCosts, { 90, 20, 0, 0, 0, 10 }), SET_FIELD(BuildCosts, { 100.00_GBP, 0.00_GBP, 45, }), diff --git a/src/openrct2/ride/coaster/meta/AlpineCoaster.h b/src/openrct2/ride/coaster/meta/AlpineCoaster.h index 554663acef..123b2a45c1 100644 --- a/src/openrct2/ride/coaster/meta/AlpineCoaster.h +++ b/src/openrct2/ride/coaster/meta/AlpineCoaster.h @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor AlpineCoasterRTD = SET_FIELD(Heights, {18, 24, 3, 7}), SET_FIELD(MaxMass, 4), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 4, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_alpine_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateAlpineCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 35, 20, 80, 8, 3, 10 }), SET_FIELD(BuildCosts, { 22.50_GBP, 2.50_GBP, 50}), diff --git a/src/openrct2/ride/coaster/meta/BobsleighCoaster.h b/src/openrct2/ride/coaster/meta/BobsleighCoaster.h index 3a6c4b3557..d60f3e5774 100644 --- a/src/openrct2/ride/coaster/meta/BobsleighCoaster.h +++ b/src/openrct2/ride/coaster/meta/BobsleighCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor BobsleighCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_bobsleigh_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionBobsleighRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor BobsleighCoasterRTD = SET_FIELD(Heights, { 19, 24, 5, 7, }), SET_FIELD(MaxMass, 25), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_bobsleigh_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateBobsleighCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 40.00_GBP, 2.50_GBP, 45, }), diff --git a/src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h b/src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h index 95839205c8..11003df337 100644 --- a/src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/ClassicMiniRollerCoaster.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor ClassicMiniRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_ON_RIDE_PHOTO}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_junior_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionJuniorRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_ALLOW_DOORS_ON_TRACK | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor ClassicMiniRollerCoasterRTD = SET_FIELD(Heights, { 15, 24, 4, 7, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_classic_mini_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateClassicMiniRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 8, 3, 5 }), SET_FIELD(BuildCosts, { 22.50_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h b/src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h index 1c69a6d43b..5a1e691a4e 100644 --- a/src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/ClassicWoodenRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor ClassicWoodenRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, 0), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_classic_wooden_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionClassicWoodenRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor ClassicWoodenRollerCoasterRTD = SET_FIELD(Heights, { 41, 24, 8, 11, }), SET_FIELD(MaxMass, 19), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 5, 7 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_classic_wooden_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateClassicWoodenRollerCoaster), SET_FIELD(RatingsMultipliers, { 52, 33, 4 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, {37.50_GBP, 3.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h b/src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h index 85ab4c7a7b..84244e28d8 100644 --- a/src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h +++ b/src/openrct2/ride/coaster/meta/CompactInvertedCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor CompactInvertedCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_compact_inverted_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionCompactInvertedRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG_IS_SUSPENDED), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor CompactInvertedCoasterRTD = SET_FIELD(Heights, { 27, 40, 29, 8, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_compact_inverted_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCompactInvertedCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 13, 3, 10 }), SET_FIELD(BuildCosts, { 50.00_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h b/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h index 752fe70248..930940f00e 100644 --- a/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/CorkscrewRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor CorkscrewRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_TWIST}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_corkscrew_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionCorkscrewRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor CorkscrewRollerCoasterRTD = SET_FIELD(Heights, { 28, 24, 8, 11, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftArrow, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_corkscrew_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCorkscrewRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 11, 3, 10 }), SET_FIELD(BuildCosts, { 52.50_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h b/src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h index 9a7805352b..bb17a3d910 100644 --- a/src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/FlyingRollerCoaster.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor FlyingRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER, TRACK_SLOPE_STEEP_LONG, TRACK_FLYING_LARGE_HALF_LOOP_UNINVERTED_DOWN, TRACK_FLYING_HALF_LOOP_UNINVERTED_DOWN, TRACK_STATION_END, TRACK_VERTICAL_LOOP, TRACK_POWERED_LIFT}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_flying_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionFlyingRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_HAS_ALTERNATIVE_TRACK_TYPE | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | @@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor FlyingRollerCoasterRTD = SET_FIELD(Heights, { 30, 24, 8, 11, }), SET_FIELD(MaxMass, 35), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_flying_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFlyingRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 49, 20, 90, 11, 3, 15 }), SET_FIELD(BuildCosts, { 62.50_GBP, 2.50_GBP, 50, }), @@ -83,7 +83,7 @@ constexpr const RideTypeDescriptor FlyingRollerCoasterAltRTD = SET_FIELD(Heights, { 30, 24, 8, 11, }), SET_FIELD(MaxMass, 35), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_flying_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFlyingRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 49, 20, 90, 11, 3, 15 }), SET_FIELD(BuildCosts, { 62.50_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/GigaCoaster.h b/src/openrct2/ride/coaster/meta/GigaCoaster.h index c390ee40a0..adf3071e04 100644 --- a/src/openrct2/ride/coaster/meta/GigaCoaster.h +++ b/src/openrct2/ride/coaster/meta/GigaCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor GigaCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_giga_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionGigaRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG_ALLOW_CABLE_LIFT_HILL), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor GigaCoasterRTD = SET_FIELD(Heights, { 86, 24, 9, 11, }), SET_FIELD(MaxMass, 31), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 5, 8 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_giga_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateGigaCoaster), SET_FIELD(RatingsMultipliers, { 51, 32, 10 }), SET_FIELD(UpkeepCosts, { 10, 20, 80, 12, 3, 40 }), SET_FIELD(BuildCosts, { 60.00_GBP, 2.50_GBP, 55, }), diff --git a/src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h b/src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h index 9d6f8f0bef..3d8c1e06e1 100644 --- a/src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h +++ b/src/openrct2/ride/coaster/meta/HeartlineTwisterCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor HeartlineTwisterCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_heartline_twister_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionHeartlineTwisterRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES), SET_FIELD(RideModes, EnumsToFlags(RideMode::ContinuousCircuit)), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor HeartlineTwisterCoasterRTD = SET_FIELD(Heights, { 22, 24, 15, 9, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_heartline_twister_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateHeartlineTwisterCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 47, 20, 80, 11, 3, 10 }), SET_FIELD(BuildCosts, { 72.50_GBP, 3.50_GBP, 30, }), diff --git a/src/openrct2/ride/coaster/meta/HybridCoaster.h b/src/openrct2/ride/coaster/meta/HybridCoaster.h index 7f460154de..6b97f8782c 100644 --- a/src/openrct2/ride/coaster/meta/HybridCoaster.h +++ b/src/openrct2/ride/coaster/meta/HybridCoaster.h @@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor HybridCoasterRTD = SET_FIELD(Heights, { 43, 24, 13, 13}), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftRMC, 5, 8 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_hybrid_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateHybridCoaster), SET_FIELD(RatingsMultipliers, { 52, 36, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 65.00_GBP, 3.50_GBP, 55}), diff --git a/src/openrct2/ride/coaster/meta/HyperTwister.h b/src/openrct2/ride/coaster/meta/HyperTwister.h index f82c353d2c..b6aa2bdb65 100644 --- a/src/openrct2/ride/coaster/meta/HyperTwister.h +++ b/src/openrct2/ride/coaster/meta/HyperTwister.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor HyperTwisterRTD = SET_FIELD(ExtraTrackPieces, { TRACK_LIFT_HILL_STEEP, TRACK_BRAKE_FOR_DROP, TRACK_BOOSTER, TRACK_POWERED_LIFT }), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_bolliger_mabillard), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionBolligerMabillard), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor HyperTwisterRTD = SET_FIELD(Heights, { 54, 24, 8, 9, }), SET_FIELD(MaxMass, 31), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 5, 8 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_twister_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateTwisterRollerCoaster), SET_FIELD(RatingsMultipliers, { 52, 36, 10 }), SET_FIELD(UpkeepCosts, { 43, 20, 80, 11, 3, 10 }), SET_FIELD(BuildCosts, { 60.00_GBP, 2.50_GBP, 55, }), diff --git a/src/openrct2/ride/coaster/meta/Hypercoaster.h b/src/openrct2/ride/coaster/meta/Hypercoaster.h index 6cdb8d099c..e44cb95939 100644 --- a/src/openrct2/ride/coaster/meta/Hypercoaster.h +++ b/src/openrct2/ride/coaster/meta/Hypercoaster.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor HypercoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_VERTICAL_LOOP, TRACK_HALF_LOOP, TRACK_CORKSCREW, TRACK_BOOSTER}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_corkscrew_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionCorkscrewRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor HypercoasterRTD = SET_FIELD(Heights, { 55, 24, 8, 11, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftArrow, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_corkscrew_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCorkscrewRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 11, 3, 10 }), SET_FIELD(BuildCosts, { 52.50_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h b/src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h index 9bf6b9e4dd..8c8071d732 100644 --- a/src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h +++ b/src/openrct2/ride/coaster/meta/InvertedHairpinCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor InvertedHairpinCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_inverted_hairpin_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionInvertedHairpinRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_IS_SUSPENDED), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor InvertedHairpinCoasterRTD = SET_FIELD(Heights, { 16, 24, 24, 7, }), SET_FIELD(MaxMass, 4), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWildMouse, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_inverted_hairpin_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateInvertedHairpinCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 30 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 9, 3, 10 }), SET_FIELD(BuildCosts, { 33.50_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h b/src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h index ef9e408699..38077cec62 100644 --- a/src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h +++ b/src/openrct2/ride/coaster/meta/InvertedImpulseCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor InvertedImpulseCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_inverted_impulse_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionInvertedImpulseRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG_IS_SUSPENDED), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor InvertedImpulseCoasterRTD = SET_FIELD(Heights, { 45, 40, 29, 8, }), SET_FIELD(MaxMass, 23), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 7 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_inverted_impulse_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateInvertedImpulseCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 180, 20, 80, 11, 3, 10 }), SET_FIELD(BuildCosts, { 62.50_GBP, 2.50_GBP, 25, }), diff --git a/src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h b/src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h index b3c4ed6903..915b2f573a 100644 --- a/src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/InvertedRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor InvertedRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_inverted_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionInvertedRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG_IS_SUSPENDED), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor InvertedRollerCoasterRTD = SET_FIELD(Heights, { 38, 40, 29, 8, }), SET_FIELD(MaxMass, 27), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 5, 7 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_inverted_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateInvertedRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 13, 3, 10 }), SET_FIELD(BuildCosts, { 65.00_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h b/src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h index b25fd38c22..ff2dcd793f 100644 --- a/src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/JuniorRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor JuniorRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_SLOPE_STEEP_UP, TRACK_SLOPE_STEEP_DOWN, TRACK_ON_RIDE_PHOTO}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_junior_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionJuniorRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_ALLOW_DOORS_ON_TRACK | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor JuniorRollerCoasterRTD = SET_FIELD(Heights, { 12, 24, 4, 7, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_junior_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateJuniorRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 8, 3, 5 }), SET_FIELD(BuildCosts, { 22.50_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h b/src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h index a61a49d62a..3bbac20bf0 100644 --- a/src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/LIMLaunchedRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor LIMLaunchedRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_SLOPE_LONG, TRACK_ZERO_G_ROLL, TRACK_ZERO_G_ROLL_LARGE}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_lim_launched_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionLimLaunchedRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor LIMLaunchedRollerCoasterRTD = SET_FIELD(Heights, { 35, 24, 5, 7, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_lim_launched_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLimLaunchedRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 42, 20, 80, 9, 3, 10 }), SET_FIELD(BuildCosts, { 47.50_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h b/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h index 230a54a7d5..0826601cf1 100644 --- a/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/LayDownRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor LayDownRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_FLYING_HALF_LOOP_UNINVERTED_DOWN, TRACK_BOOSTER}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_lay_down_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionLayDownRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_HAS_ALTERNATIVE_TRACK_TYPE | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor LayDownRollerCoasterRTD = SET_FIELD(Heights, { 26, 24, 8, 11, }), SET_FIELD(MaxMass, 25), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_lay_down_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLayDownRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 49, 20, 90, 11, 3, 15 }), SET_FIELD(BuildCosts, { 53.50_GBP, 2.50_GBP, 50, }), @@ -76,7 +76,7 @@ constexpr const RideTypeDescriptor LayDownRollerCoasterAltRTD = SET_FIELD(Heights, { 26, 24, 8, 11, }), SET_FIELD(MaxMass, 25), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_lay_down_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLayDownRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 49, 20, 90, 11, 3, 15 }), SET_FIELD(BuildCosts, { 53.50_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h b/src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h index 04ef1fe61f..c67c4b0a7e 100644 --- a/src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/LoopingRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor LoopingRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_SLOPE_VERTICAL, TRACK_TWIST, TRACK_CORKSCREW, TRACK_CURVE_VERTICAL, TRACK_QUARTER_LOOP, TRACK_SLOPE_LONG, TRACK_BARREL_ROLL, TRACK_HALF_LOOP, TRACK_HALF_LOOP_MEDIUM, TRACK_HALF_LOOP_LARGE,TRACK_CORKSCREW_LARGE, TRACK_ZERO_G_ROLL, TRACK_ZERO_G_ROLL_LARGE}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_looping_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionLoopingRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor LoopingRollerCoasterRTD = SET_FIELD(Heights, { 35, 24, 5, 7, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_looping_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLoopingRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 45.00_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/MineRide.h b/src/openrct2/ride/coaster/meta/MineRide.h index a7564cbd3c..be75d054fc 100644 --- a/src/openrct2/ride/coaster/meta/MineRide.h +++ b/src/openrct2/ride/coaster/meta/MineRide.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor MineRideRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_mine_ride), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMineRide), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor MineRideRTD = SET_FIELD(Heights, { 13, 24, 9, 11, }), SET_FIELD(MaxMass, 27), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mine_ride), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMineRide), SET_FIELD(RatingsMultipliers, { 60, 20, 10 }), SET_FIELD(UpkeepCosts, { 50, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 42.50_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/MineTrainCoaster.h b/src/openrct2/ride/coaster/meta/MineTrainCoaster.h index 6c6371de07..b59ba6f834 100644 --- a/src/openrct2/ride/coaster/meta/MineTrainCoaster.h +++ b/src/openrct2/ride/coaster/meta/MineTrainCoaster.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor MineTrainCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_mine_train_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMineTrainRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor MineTrainCoasterRTD = SET_FIELD(Heights, { 21, 24, 4, 7, }), SET_FIELD(MaxMass, 15), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftArrow, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mine_train_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMineTrainCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 41.00_GBP, 3.00_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/MiniRollerCoaster.h b/src/openrct2/ride/coaster/meta/MiniRollerCoaster.h index 5f8bdf7ef7..a5c2204421 100644 --- a/src/openrct2/ride/coaster/meta/MiniRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/MiniRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor MiniRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER, TRACK_LIFT_HILL_CURVED}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_mini_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMiniRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor MiniRollerCoasterRTD = SET_FIELD(Heights, { 16, 24, 9, 11, }), SET_FIELD(MaxMass, 10), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mini_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMiniRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 35, 20, 80, 8, 3, 10 }), SET_FIELD(BuildCosts, { 32.50_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h b/src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h index 65fcba7a48..4955a9e0ba 100644 --- a/src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h +++ b/src/openrct2/ride/coaster/meta/MiniSuspendedCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor MiniSuspendedCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_mini_suspended_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMiniSuspendedRc), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor MiniSuspendedCoasterRTD = SET_FIELD(Heights, { 10, 24, 24, 8, }), SET_FIELD(MaxMass, 3), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mini_suspended_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMiniSuspendedCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 30.00_GBP, 2.50_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h b/src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h index c7c158305a..78563dd2d2 100644 --- a/src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/MultiDimensionRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor MultiDimensionRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_multi_dimension_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMultiDimensionRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_HAS_ALTERNATIVE_TRACK_TYPE | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor MultiDimensionRollerCoasterRTD = SET_FIELD(Heights, { 40, 24, 8, 11, }), SET_FIELD(MaxMass, 78), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_multi_dimension_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMultiDimensionRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 75, 20, 90, 11, 3, 15 }), SET_FIELD(BuildCosts, { 90.00_GBP, 2.50_GBP, 50, }), @@ -77,7 +77,7 @@ constexpr const RideTypeDescriptor MultiDimensionRollerCoasterAltRTD = SET_FIELD(Heights, { 40, 24, 8, 11, }), SET_FIELD(MaxMass, 78), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_multi_dimension_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMultiDimensionRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 75, 20, 90, 11, 3, 15 }), SET_FIELD(BuildCosts, { 90.00_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h b/src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h index e18398aeca..db37826b28 100644 --- a/src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h +++ b/src/openrct2/ride/coaster/meta/ReverseFreefallCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor ReverseFreefallCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_reverse_freefall_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionReverseFreefallRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT), SET_FIELD(RideModes, EnumsToFlags(RideMode::LimPoweredLaunch)), SET_FIELD(DefaultMode, RideMode::LimPoweredLaunch), @@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor ReverseFreefallCoasterRTD = SET_FIELD(Heights, { 255, 32, 4, 7, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_reverse_freefall_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateReverseFreefallCoaster), SET_FIELD(RatingsMultipliers, { 44, 66, 10 }), SET_FIELD(UpkeepCosts, { 80, 20, 0, 0, 0, 10 }), SET_FIELD(BuildCosts, { 100.00_GBP, 0.00_GBP, 45, }), diff --git a/src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h b/src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h index b496a65cd1..9e77e70b6a 100644 --- a/src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/ReverserRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor ReverserRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_reverser_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionReverserRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES), SET_FIELD(RideModes, EnumsToFlags(RideMode::ContinuousCircuit)), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor ReverserRollerCoasterRTD = SET_FIELD(Heights, { 18, 24, 8, 11, }), SET_FIELD(MaxMass, 15), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 3, 4 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_reverser_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateReverserRollerCoaster), SET_FIELD(RatingsMultipliers, { 48, 28, 7 }), SET_FIELD(UpkeepCosts, { 39, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 27.50_GBP, 3.00_GBP, 37, }), diff --git a/src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h b/src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h index 2476090334..55228dd028 100644 --- a/src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/SideFrictionRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SideFrictionRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_side_friction_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSideFrictionRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SideFrictionRollerCoasterRTD = SET_FIELD(Heights, { 15, 24, 4, 11, }), SET_FIELD(MaxMass, 15), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 3, 4 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_side_friction_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSideFrictionRollerCoaster), SET_FIELD(RatingsMultipliers, { 48, 28, 7 }), SET_FIELD(UpkeepCosts, { 39, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 27.50_GBP, 3.00_GBP, 37, }), diff --git a/src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h b/src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h index e5dff23f2d..c63f17ceae 100644 --- a/src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/SingleRailRollerCoaster.h @@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor SingleRailRollerCoasterRTD = SET_FIELD(Heights, { 28, 24, 5, 7}), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftRMC, 5, 8 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_single_rail_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSingleRailRollerCoaster), SET_FIELD(RatingsMultipliers, { 52, 36, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 37.50_GBP, 2.50_GBP, 50}), diff --git a/src/openrct2/ride/coaster/meta/SpinningWildMouse.h b/src/openrct2/ride/coaster/meta/SpinningWildMouse.h index ff9d68e39a..9c9cbbf8dc 100644 --- a/src/openrct2/ride/coaster/meta/SpinningWildMouse.h +++ b/src/openrct2/ride/coaster/meta/SpinningWildMouse.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor SpinningWildMouseRTD = SET_FIELD(ExtraTrackPieces, {TRACK_LIFT_HILL_STEEP, TRACK_SLOPE_STEEP_UP, TRACK_SLOPE_STEEP_DOWN, TRACK_SLOPE_CURVE}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_wild_mouse), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWildMouse), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES), SET_FIELD(RideModes, EnumsToFlags(RideMode::ContinuousCircuit, RideMode::ContinuousCircuitBlockSectioned)), @@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor SpinningWildMouseRTD = SET_FIELD(Heights, { 16, 24, 4, 7, }), SET_FIELD(MaxMass, 4), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWildMouse, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_wild_mouse), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWildMouse), SET_FIELD(RatingsMultipliers, { 50, 30, 30 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 9, 3, 10 }), SET_FIELD(BuildCosts, { 27.50_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h b/src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h index ec48ba85a0..1e7edd959d 100644 --- a/src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/SpiralRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SpiralRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER, TRACK_LIFT_HILL}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_mini_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMiniRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SpiralRollerCoasterRTD = SET_FIELD(Heights, { 19, 24, 9, 11, }), SET_FIELD(MaxMass, 31), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 7, 7 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_spiral_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSpiralRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 41, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 35.00_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h b/src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h index 314b82b2fa..d06c6e7118 100644 --- a/src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/StandUpRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor StandUpRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_stand_up_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionStandUpRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor StandUpRollerCoasterRTD = SET_FIELD(Heights, { 25, 24, 9, 11, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_stand_up_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateStandUpRollerCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 50.00_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/SteelWildMouse.h b/src/openrct2/ride/coaster/meta/SteelWildMouse.h index c29ae15975..a0dc9c3372 100644 --- a/src/openrct2/ride/coaster/meta/SteelWildMouse.h +++ b/src/openrct2/ride/coaster/meta/SteelWildMouse.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SteelWildMouseRTD = SET_FIELD(ExtraTrackPieces, {TRACK_ROTATION_CONTROL_TOGGLE}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_wild_mouse), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWildMouse), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_ALLOW_DOORS_ON_TRACK | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SteelWildMouseRTD = SET_FIELD(Heights, { 16, 24, 4, 7, }), SET_FIELD(MaxMass, 4), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWildMouse, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_wild_mouse), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWildMouse), SET_FIELD(RatingsMultipliers, { 50, 30, 30 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 9, 3, 10 }), SET_FIELD(BuildCosts, { 27.50_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/Steeplechase.h b/src/openrct2/ride/coaster/meta/Steeplechase.h index 22e88410bf..88ad5bfca6 100644 --- a/src/openrct2/ride/coaster/meta/Steeplechase.h +++ b/src/openrct2/ride/coaster/meta/Steeplechase.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SteeplechaseRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_steeplechase), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSteeplechase), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SteeplechaseRTD = SET_FIELD(Heights, { 14, 24, 7, 7, }), SET_FIELD(MaxMass, 4), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_steeplechase), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSteeplechase), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 28.50_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h b/src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h index 6b15b6ee7f..a0497e31fb 100644 --- a/src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h +++ b/src/openrct2/ride/coaster/meta/SuspendedSwingingCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SuspendedSwingingCoasterRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_suspended_swinging_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSuspendedSwingingRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_IS_SUSPENDED), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SuspendedSwingingCoasterRTD = SET_FIELD(Heights, { 24, 40, 29, 8, }), SET_FIELD(MaxMass, 26), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_suspended_swinging_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSuspendedSwingingCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 20, 3, 10 }), SET_FIELD(BuildCosts, { 47.50_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h b/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h index 536b38e24a..92fed608f5 100644 --- a/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/TwisterRollerCoaster.h @@ -25,7 +25,7 @@ constexpr const RideTypeDescriptor TwisterRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_LIFT_HILL_STEEP, TRACK_BRAKE_FOR_DROP}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_bolliger_mabillard), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionBolligerMabillard), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor TwisterRollerCoasterRTD = SET_FIELD(Heights, { 40, 24, 8, 9, }), SET_FIELD(MaxMass, 31), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 5, 8 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_twister_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateTwisterRollerCoaster), SET_FIELD(RatingsMultipliers, { 52, 36, 10 }), SET_FIELD(UpkeepCosts, { 43, 20, 80, 11, 3, 10 }), SET_FIELD(BuildCosts, { 60.00_GBP, 2.50_GBP, 55, }), diff --git a/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h b/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h index fbd9e7e150..dc5f99ff49 100644 --- a/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h +++ b/src/openrct2/ride/coaster/meta/VerticalDropCoaster.h @@ -25,7 +25,7 @@ constexpr const RideTypeDescriptor VerticalDropCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_HALF_LOOP, TRACK_CORKSCREW, TRACK_BARREL_ROLL, TRACK_POWERED_LIFT, TRACK_HALF_LOOP_LARGE, TRACK_QUARTER_LOOP, TRACK_BOOSTER, TRACK_TWIST}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_bolliger_mabillard), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionBolligerMabillard), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES), @@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor VerticalDropCoasterRTD = SET_FIELD(Heights, { 53, 24, 8, 11, }), SET_FIELD(MaxMass, 25), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 4, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_vertical_drop_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateVerticalDropRollerCoaster), SET_FIELD(RatingsMultipliers, { 52, 38, 10 }), SET_FIELD(UpkeepCosts, { 44, 20, 80, 11, 3, 10 }), SET_FIELD(BuildCosts, { 60.00_GBP, 2.50_GBP, 42, }), diff --git a/src/openrct2/ride/coaster/meta/VirginiaReel.h b/src/openrct2/ride/coaster/meta/VirginiaReel.h index 1c5469e7de..b66febfb25 100644 --- a/src/openrct2/ride/coaster/meta/VirginiaReel.h +++ b/src/openrct2/ride/coaster/meta/VirginiaReel.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor VirginiaReelRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_virginia_reel), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionVirginiaReel), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES), SET_FIELD(RideModes, EnumsToFlags(RideMode::ContinuousCircuit)), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor VirginiaReelRTD = SET_FIELD(Heights, { 14, 24, 6, 7, }), SET_FIELD(MaxMass, 15), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 3, 4 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_virginia_reel), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateVirginiaReel), SET_FIELD(RatingsMultipliers, { 30, 15, 25 }), SET_FIELD(UpkeepCosts, { 39, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 26.50_GBP, 3.00_GBP, 25, }), diff --git a/src/openrct2/ride/coaster/meta/WaterCoaster.h b/src/openrct2/ride/coaster/meta/WaterCoaster.h index 59e58cc95b..cea18ea094 100644 --- a/src/openrct2/ride/coaster/meta/WaterCoaster.h +++ b/src/openrct2/ride/coaster/meta/WaterCoaster.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor WaterCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_SLOPE_LONG}), SET_FIELD(CoveredTrackPieces, {TrackElemType::Flat, TrackElemType::LeftQuarterTurn5Tiles, TrackElemType::RightQuarterTurn5Tiles, TrackElemType::SBendLeft, TrackElemType::SBendRight}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_water_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWaterRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_TRACK_ELEMENTS_HAVE_TWO_VARIETIES | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES), @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor WaterCoasterRTD = SET_FIELD(Heights, { 18, 24, 4, 7, }), SET_FIELD(MaxMass, 13), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_water_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWaterCoaster), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 60, 20, 80, 8, 3, 10 }), SET_FIELD(BuildCosts, { 27.50_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h b/src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h index dc3f9a0982..ccd75c53d6 100644 --- a/src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h +++ b/src/openrct2/ride/coaster/meta/WoodenRollerCoaster.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor WoodenRollerCoasterRTD = SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_wooden_rc), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWoodenRc), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS), @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor WoodenRollerCoasterRTD = SET_FIELD(Heights, { 41, 24, 8, 11, }), SET_FIELD(MaxMass, 19), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 5, 7 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_wooden_roller_coaster), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWoodenRollerCoaster), SET_FIELD(RatingsMultipliers, { 52, 33, 8 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }), SET_FIELD(BuildCosts, { 37.50_GBP, 3.50_GBP, 50, }), diff --git a/src/openrct2/ride/coaster/meta/WoodenWildMouse.h b/src/openrct2/ride/coaster/meta/WoodenWildMouse.h index d64eb5f27c..8e854f4f6e 100644 --- a/src/openrct2/ride/coaster/meta/WoodenWildMouse.h +++ b/src/openrct2/ride/coaster/meta/WoodenWildMouse.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor WoodenWildMouseRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_wooden_wild_mouse), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWoodenWildMouse), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_ALLOW_DOORS_ON_TRACK | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor WoodenWildMouseRTD = SET_FIELD(Heights, { 14, 24, 4, 7, }), SET_FIELD(MaxMass, 4), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_wooden_wild_mouse), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWoodenWildMouse), SET_FIELD(RatingsMultipliers, { 50, 30, 30 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 9, 3, 10 }), SET_FIELD(BuildCosts, { 25.00_GBP, 3.00_GBP, 40, }), diff --git a/src/openrct2/ride/gentle/CarRide.cpp b/src/openrct2/ride/gentle/CarRide.cpp index b046649f83..3ad0bd9a42 100644 --- a/src/openrct2/ride/gentle/CarRide.cpp +++ b/src/openrct2/ride/gentle/CarRide.cpp @@ -372,7 +372,7 @@ static void PaintCarRideStation( MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -383,10 +383,10 @@ static void PaintCarRideTrackRightQuarterTurn3Tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_right_quarter_turn_3_tiles_paint( + TrackPaintUtilRightQuarterTurn3TilesPaint( session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], CarRideTrackPiecesQuarterTurn3Tiles, defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, nullptr); - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0); switch (trackSequence) { @@ -451,7 +451,7 @@ static void PaintCarRideTrackLeftQuarterTurn1Tile( MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -481,7 +481,7 @@ static void PaintCarRideTrackSpinningTunnel( PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 1 }); } - track_paint_util_spinning_tunnel_paint(session, 1, height, direction); + TrackPaintUtilSpinningTunnelPaint(session, 1, height, direction); if (direction == 0 || direction == 2) { @@ -537,7 +537,7 @@ static void PaintCarRideTrack60DegUp( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -593,7 +593,7 @@ static void PaintCarRideTrack25DegUpTo60DegUp( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -649,7 +649,7 @@ static void PaintCarRideTrack60DegUpTo25DegUp( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } diff --git a/src/openrct2/ride/gentle/Circus.cpp b/src/openrct2/ride/gentle/Circus.cpp index 9fb3dbe1ff..e8c92b4661 100644 --- a/src/openrct2/ride/gentle/Circus.cpp +++ b/src/openrct2/ride/gentle/Circus.cpp @@ -58,9 +58,9 @@ static void PaintCircus( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_SUPPORTS], height, fenceSpritesRope, session.CurrentRotation); diff --git a/src/openrct2/ride/gentle/CrookedHouse.cpp b/src/openrct2/ride/gentle/CrookedHouse.cpp index 6d01b26fa3..95782c451f 100644 --- a/src/openrct2/ride/gentle/CrookedHouse.cpp +++ b/src/openrct2/ride/gentle/CrookedHouse.cpp @@ -92,9 +92,9 @@ static void PaintCrookedHouse( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_MISC], height, fenceSpritesRope, session.CurrentRotation); diff --git a/src/openrct2/ride/gentle/Dodgems.cpp b/src/openrct2/ride/gentle/Dodgems.cpp index 3073d84c5a..a376d1bc1e 100644 --- a/src/openrct2/ride/gentle/Dodgems.cpp +++ b/src/openrct2/ride/gentle/Dodgems.cpp @@ -60,7 +60,7 @@ static void PaintDodgems( auto imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SprDodgemsFloor); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 1, 1, height }, { 30, 30, 1 } }); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_SUPPORTS], height, DodgemsFenceSprites, session.CurrentRotation); diff --git a/src/openrct2/ride/gentle/FerrisWheel.cpp b/src/openrct2/ride/gentle/FerrisWheel.cpp index 586afd1fbe..6d3b4bf467 100644 --- a/src/openrct2/ride/gentle/FerrisWheel.cpp +++ b/src/openrct2/ride/gentle/FerrisWheel.cpp @@ -121,29 +121,29 @@ static void PaintFerrisWheel( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); ImageId imageId; uint8_t rotation = session.CurrentRotation; auto colourFlags = session.TrackColours[SCHEME_MISC]; - if (edges & EDGE_NW && track_paint_util_has_fence(EDGE_NW, session.MapPosition, trackElement, ride, rotation)) + if (edges & EDGE_NW && TrackPaintUtilHasFence(EDGE_NW, session.MapPosition, trackElement, ride, rotation)) { imageId = colourFlags.WithIndex(SPR_FENCE_ROPE_NW); PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 2, height + 2 }, { 32, 1, 7 } }); } - if (edges & EDGE_NE && track_paint_util_has_fence(EDGE_NE, session.MapPosition, trackElement, ride, rotation)) + if (edges & EDGE_NE && TrackPaintUtilHasFence(EDGE_NE, session.MapPosition, trackElement, ride, rotation)) { imageId = colourFlags.WithIndex(SPR_FENCE_ROPE_NE); PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 2, 0, height + 2 }, { 1, 32, 7 } }); } - if (edges & EDGE_SE && track_paint_util_has_fence(EDGE_SE, session.MapPosition, trackElement, ride, rotation)) + if (edges & EDGE_SE && TrackPaintUtilHasFence(EDGE_SE, session.MapPosition, trackElement, ride, rotation)) { - // Bound box is slightly different from track_paint_util_paint_fences + // Bound box is slightly different from TrackPaintUtilPaintFences imageId = colourFlags.WithIndex(SPR_FENCE_ROPE_SE); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 29, height + 3 }, { 28, 1, 7 } }); } - if (edges & EDGE_SW && track_paint_util_has_fence(EDGE_SW, session.MapPosition, trackElement, ride, rotation)) + if (edges & EDGE_SW && TrackPaintUtilHasFence(EDGE_SW, session.MapPosition, trackElement, ride, rotation)) { imageId = colourFlags.WithIndex(SPR_FENCE_ROPE_SW); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 30, 0, height + 2 }, { 1, 32, 7 } }); diff --git a/src/openrct2/ride/gentle/FlyingSaucers.cpp b/src/openrct2/ride/gentle/FlyingSaucers.cpp index d75b550949..13b164f376 100644 --- a/src/openrct2/ride/gentle/FlyingSaucers.cpp +++ b/src/openrct2/ride/gentle/FlyingSaucers.cpp @@ -52,7 +52,7 @@ static void paint_flying_saucers( PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 1, 1, height }, { 30, 30, 1 } }); } - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_TRACK], height, FlyingSaucersFenceSprites, session.CurrentRotation); diff --git a/src/openrct2/ride/gentle/GhostTrain.cpp b/src/openrct2/ride/gentle/GhostTrain.cpp index 4178e5ca92..0cd9f875af 100644 --- a/src/openrct2/ride/gentle/GhostTrain.cpp +++ b/src/openrct2/ride/gentle/GhostTrain.cpp @@ -187,7 +187,7 @@ static void PaintGhostTrainTrackFlat( auto tunnelImage = GetTunnelDoorsImageStraightFlat(trackElement, direction); PaintUtilPushTunnelRotated(session, direction, height, tunnelImage); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -208,7 +208,7 @@ static void PaintGhostTrainTrack25DegUp( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPieces25DegUp[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 23 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -256,7 +256,7 @@ static void PaintGhostTrainTrackFlatTo25DegUp( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPiecesFlatTo25DegUp[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 15 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -292,7 +292,7 @@ static void PaintGhostTrainTrack25DegUpToFlatShared( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPieces25DegUpToFlat[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 15 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -399,7 +399,7 @@ static void PaintGhostTrainStation( MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -410,7 +410,7 @@ static void PaintGhostTrainTrackRightQuarterTurn3Tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_right_quarter_turn_3_tiles_paint( + TrackPaintUtilRightQuarterTurn3TilesPaint( session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], GhostTrainTrackPiecesQuarterTurn3Tiles, nullptr, defaultRightQuarterTurn3TilesBoundLengths, defaultRightQuarterTurn3TilesBoundOffsets); @@ -418,7 +418,7 @@ static void PaintGhostTrainTrackRightQuarterTurn3Tiles( bool isDoorA = (!isBackwards && trackSequence == 0) || (isBackwards && trackSequence == 3); auto tunnelType = isDoorA ? DoorOpeningInwardsToImage[trackElement.GetDoorAState()] : DoorOpeningOutwardsToImage[trackElement.GetDoorBState()]; - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, tunnelType); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, tunnelType); switch (trackSequence) { @@ -473,9 +473,9 @@ static void PaintGhostTrainTrackLeftQuarterTurn1Tile( tunnelEndImage = DoorOpeningInwardsToImage[trackElement.GetDoorAState()]; } - track_paint_util_left_quarter_turn_1_tile_paint( + TrackPaintUtilLeftQuarterTurn1TilePaint( session, 3, height, 0, direction, session.TrackColours[SCHEME_TRACK], GhostTrainTrackPiecesQuarterTurn1Tile); - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, tunnelStartImage, 0, tunnelEndImage); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, tunnelStartImage, 0, tunnelEndImage); MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); @@ -499,7 +499,7 @@ static void PaintGhostTrainTrackSpinningTunnel( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 28, 20, 3 }, { 2, 6, height }); - track_paint_util_spinning_tunnel_paint(session, 3, height, direction); + TrackPaintUtilSpinningTunnelPaint(session, 3, height, direction); auto tunnelImage = GetTunnelDoorsImageStraightFlat(trackElement, direction); PaintUtilPushTunnelRotated(session, direction, height, tunnelImage); @@ -522,7 +522,7 @@ static void PaintGhostTrainTrackBrakes( auto tunnelImage = GetTunnelDoorsImageStraightFlat(trackElement, direction); PaintUtilPushTunnelRotated(session, direction, height, tunnelImage); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } diff --git a/src/openrct2/ride/gentle/HauntedHouse.cpp b/src/openrct2/ride/gentle/HauntedHouse.cpp index 4c08750140..8c06b3208c 100644 --- a/src/openrct2/ride/gentle/HauntedHouse.cpp +++ b/src/openrct2/ride/gentle/HauntedHouse.cpp @@ -72,9 +72,9 @@ static void PaintHauntedHouse( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_MISC], height, fenceSpritesRope, session.CurrentRotation); diff --git a/src/openrct2/ride/gentle/MerryGoRound.cpp b/src/openrct2/ride/gentle/MerryGoRound.cpp index 36eace393a..dd3ceea3ff 100644 --- a/src/openrct2/ride/gentle/MerryGoRound.cpp +++ b/src/openrct2/ride/gentle/MerryGoRound.cpp @@ -110,9 +110,9 @@ static void PaintMerryGoRound( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_MISC], height, fenceSpritesRope, session.CurrentRotation); diff --git a/src/openrct2/ride/gentle/MiniGolf.cpp b/src/openrct2/ride/gentle/MiniGolf.cpp index 2f330ab467..900c886421 100644 --- a/src/openrct2/ride/gentle/MiniGolf.cpp +++ b/src/openrct2/ride/gentle/MiniGolf.cpp @@ -668,44 +668,44 @@ static void PaintMiniGolfStation( if (direction & 1) { - hasFence = track_paint_util_has_fence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation); if (hasFence) { imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprMiniGolfFlatFenceBackNwSe); PaintAddImageAsParent(session, imageId, { -10, 0, height }, { 1, 32, 7 }, { 0, 0, height + 2 }); } - bool hasSWFence = track_paint_util_has_fence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation); + bool hasSWFence = TrackPaintUtilHasFence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation); if (hasSWFence) { imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprMiniGolfFlatFenceFrontNwSe); PaintAddImageAsParent(session, imageId, { 10, 0, height }, { 1, 32, 7 }, { 31, 0, height + 2 }); } - track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height); - track_paint_util_draw_station_covers(session, EDGE_SW, hasSWFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasSWFence, stationObj, height); // Was leftwards tunnel in game, seems odd PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT); } else { - hasFence = track_paint_util_has_fence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation); if (hasFence) { imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprMiniGolfFlatFenceBackSwNe); PaintAddImageAsParent(session, imageId, { 0, -10, height }, { 32, 1, 7 }, { 0, 0, height + 2 }); } - bool hasSEFence = track_paint_util_has_fence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation); + bool hasSEFence = TrackPaintUtilHasFence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation); if (hasSEFence) { imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprMiniGolfFlatFenceFrontSwNe); PaintAddImageAsParent(session, imageId, { 0, 10, height }, { 32, 1, 7 }, { 0, 31, height + 2 }); } - track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height); - track_paint_util_draw_station_covers(session, EDGE_SE, hasSEFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasSEFence, stationObj, height); PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT); } @@ -723,7 +723,7 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile( { ImageId imageId; - track_paint_util_left_quarter_turn_1_tile_paint( + TrackPaintUtilLeftQuarterTurn1TilePaint( session, 1, height, 0, direction, session.TrackColours[SCHEME_TRACK], MiniGolfTrackSpritesQuarterTurn1Tile); MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); @@ -776,7 +776,7 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile( if (shouldDrawFence) { // TODO: The back fence uses the same x/y offsets, but uses another paint function. See if this occurs more often. - track_paint_util_left_quarter_turn_1_tile_paint( + TrackPaintUtilLeftQuarterTurn1TilePaint( session, 0, height, 24, direction, session.TrackColours[SCHEME_MISC], MiniGolfTrackSpritesQuarterTurn1TileFenceFront); diff --git a/src/openrct2/ride/gentle/MiniHelicopters.cpp b/src/openrct2/ride/gentle/MiniHelicopters.cpp index 8ab3da7ed8..db209fd172 100644 --- a/src/openrct2/ride/gentle/MiniHelicopters.cpp +++ b/src/openrct2/ride/gentle/MiniHelicopters.cpp @@ -48,7 +48,7 @@ static void PaintMiniHelicoptersTrackStation( PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT); } - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -74,7 +74,7 @@ static void PaintMiniHelicoptersTrackFlat( PaintUtilPushTunnelLeft(session, height, TUNNEL_0); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, (direction & 1) ? METAL_SUPPORTS_STICK_ALT : METAL_SUPPORTS_STICK, 4, -1, height, @@ -121,7 +121,7 @@ static void PaintMiniHelicoptersTrackFlatTo25DegUp( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_STICK, 4, -4, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -162,7 +162,7 @@ static void PaintMiniHelicoptersTrack25DegUp( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_STICK, 4, -9, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -207,7 +207,7 @@ static void PaintMiniHelicoptersTrack25DegUpToFlat( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_STICK, 4, -7, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -246,10 +246,10 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn3Tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_left_quarter_turn_3_tiles_paint( + TrackPaintUtilLeftQuarterTurn3TilesPaint( session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], trackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles); - track_paint_util_left_quarter_turn_3_tiles_tunnel(session, height, TUNNEL_0, direction, trackSequence); + TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TUNNEL_0, direction, trackSequence); switch (trackSequence) { @@ -293,10 +293,10 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn1Tile( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_left_quarter_turn_1_tile_paint( + TrackPaintUtilLeftQuarterTurn1TilePaint( session, 1, height, 0, direction, session.TrackColours[SCHEME_TRACK], trackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile); - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D0, direction), 0xFFFF, 0); @@ -327,7 +327,7 @@ static void PaintMiniHelicoptersTrackSpinningTunnel( PaintAddImageAsParentRotated(session, direction, underlay, { 0, 6, height - 2 }, { 32, 20, 1 }, { 0, 6, height }); PaintAddImageAsChildRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height }); - track_paint_util_spinning_tunnel_paint(session, 1, height, direction); + TrackPaintUtilSpinningTunnelPaint(session, 1, height, direction); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0); WoodenASupportsPaintSetup(session, (direction & 1), 0, height, session.TrackColours[SCHEME_MISC]); diff --git a/src/openrct2/ride/gentle/MonorailCycles.cpp b/src/openrct2/ride/gentle/MonorailCycles.cpp index cc14e37a12..24b7e94abb 100644 --- a/src/openrct2/ride/gentle/MonorailCycles.cpp +++ b/src/openrct2/ride/gentle/MonorailCycles.cpp @@ -235,7 +235,7 @@ static void PaintMonorailCyclesStation( PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT); } - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -246,10 +246,10 @@ static void PaintMonorailCyclesTrackLeftQuarterTurn3Tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_left_quarter_turn_3_tiles_paint( + TrackPaintUtilLeftQuarterTurn3TilesPaint( session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], MonorailCyclesTrackPiecesFlatQuarterTurn3Tiles); - track_paint_util_left_quarter_turn_3_tiles_tunnel(session, height, TUNNEL_0, direction, trackSequence); + TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TUNNEL_0, direction, trackSequence); switch (trackSequence) { @@ -307,7 +307,7 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_right_quarter_turn_5_tiles_paint( + TrackPaintUtilRightQuarterTurn5TilesPaint( session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], MonorailCyclesTrackPiecesFlatQuarterTurn5Tiles, nullptr, defaultRightQuarterTurn5TilesBoundLengths, defaultRightQuarterTurn5TilesBoundOffsets); diff --git a/src/openrct2/ride/gentle/ObservationTower.cpp b/src/openrct2/ride/gentle/ObservationTower.cpp index 6d1cc1442f..7b2529a9cf 100644 --- a/src/openrct2/ride/gentle/ObservationTower.cpp +++ b/src/openrct2/ride/gentle/ObservationTower.cpp @@ -92,10 +92,9 @@ static void PaintObservationTowerBase( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor( - session, edges, session.TrackColours[SCHEME_SUPPORTS], height, floorSpritesMetalB, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_SUPPORTS], height, floorSpritesMetalB, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, position, trackElement, ride, session.TrackColours[SCHEME_TRACK], height, fenceSpritesMetalB, session.CurrentRotation); diff --git a/src/openrct2/ride/gentle/SpaceRings.cpp b/src/openrct2/ride/gentle/SpaceRings.cpp index cf39cdbb48..8f12864c44 100644 --- a/src/openrct2/ride/gentle/SpaceRings.cpp +++ b/src/openrct2/ride/gentle/SpaceRings.cpp @@ -98,24 +98,24 @@ static void PaintSpaceRings( WoodenASupportsPaintSetup(session, (direction & 1), 0, height, session.TrackColours[SCHEME_MISC]); const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); switch (trackSequence) { case 7: - if (track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation)) + if (TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation)) { imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprSpaceRingsFenceSw); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 28, 7 }, { 29, 0, height + 2 }); } - if (track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, session.CurrentRotation)) + if (TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, session.CurrentRotation)) { imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprSpaceRingsFenceSe); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 1, 7 }, { 0, 29, height + 2 }); } break; default: - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, position, trackElement, ride, session.TrackColours[SCHEME_MISC], height, SpaceRingsFenceSprites, session.CurrentRotation); break; diff --git a/src/openrct2/ride/gentle/SpiralSlide.cpp b/src/openrct2/ride/gentle/SpiralSlide.cpp index 017d228eeb..47cfecad17 100644 --- a/src/openrct2/ride/gentle/SpiralSlide.cpp +++ b/src/openrct2/ride/gentle/SpiralSlide.cpp @@ -224,7 +224,7 @@ static void PaintSpiralSlide( rideEntry->Cars[0].base_image_id + SpiralSlideFenceTopLeft, }; - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_TRACK], height, spiral_slide_fence_sprites, session.CurrentRotation); diff --git a/src/openrct2/ride/gentle/meta/CarRide.h b/src/openrct2/ride/gentle/meta/CarRide.h index e12fa79ede..c963301e85 100644 --- a/src/openrct2/ride/gentle/meta/CarRide.h +++ b/src/openrct2/ride/gentle/meta/CarRide.h @@ -41,7 +41,7 @@ constexpr const RideTypeDescriptor CarRideRTD = SET_FIELD(Heights, { 6, 24, 4, 7, }), SET_FIELD(MaxMass, 2), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_car_ride), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCarRide), SET_FIELD(RatingsMultipliers, { 70, 10, 10 }), SET_FIELD(UpkeepCosts, { 70, 20, 0, 8, 3, 5 }), SET_FIELD(BuildCosts, { 12.50_GBP, 2.50_GBP, 30, }), diff --git a/src/openrct2/ride/gentle/meta/Circus.h b/src/openrct2/ride/gentle/meta/Circus.h index d64d4c81d3..386406292e 100644 --- a/src/openrct2/ride/gentle/meta/Circus.h +++ b/src/openrct2/ride/gentle/meta/Circus.h @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor CircusRTD = SET_FIELD(Heights, { 12, 128, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_circus), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCircus), SET_FIELD(RatingsMultipliers, { 20, 10, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 62.50_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/gentle/meta/CrookedHouse.h b/src/openrct2/ride/gentle/meta/CrookedHouse.h index 5dfb8c345f..ef962e7f6e 100644 --- a/src/openrct2/ride/gentle/meta/CrookedHouse.h +++ b/src/openrct2/ride/gentle/meta/CrookedHouse.h @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor CrookedHouseRTD = SET_FIELD(Heights, { 16, 96, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_crooked_house), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCrookedHouse), SET_FIELD(RatingsMultipliers, { 15, 8, 0 }), SET_FIELD(UpkeepCosts, { 30, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 32.50_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/gentle/meta/Dodgems.h b/src/openrct2/ride/gentle/meta/Dodgems.h index 599a9e457e..e73765afbc 100644 --- a/src/openrct2/ride/gentle/meta/Dodgems.h +++ b/src/openrct2/ride/gentle/meta/Dodgems.h @@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor DodgemsRTD = SET_FIELD(Heights, { 9, 48, 2, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_dodgems), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateDodgems), SET_FIELD(RatingsMultipliers, { 40, 20, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 5, 0, 0 }), SET_FIELD(BuildCosts, { 27.50_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/gentle/meta/FerrisWheel.h b/src/openrct2/ride/gentle/meta/FerrisWheel.h index 5255157369..e22f5d9fc6 100644 --- a/src/openrct2/ride/gentle/meta/FerrisWheel.h +++ b/src/openrct2/ride/gentle/meta/FerrisWheel.h @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor FerrisWheelRTD = SET_FIELD(Heights, { 16, 176, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_ferris_wheel), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFerrisWheel), SET_FIELD(RatingsMultipliers, { 60, 20, 10 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 112.50_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/gentle/meta/FlyingSaucers.h b/src/openrct2/ride/gentle/meta/FlyingSaucers.h index bab9ee729c..d7bbfe9b0d 100644 --- a/src/openrct2/ride/gentle/meta/FlyingSaucers.h +++ b/src/openrct2/ride/gentle/meta/FlyingSaucers.h @@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor FlyingSaucersRTD = SET_FIELD(Heights, { 9, 48, 2, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_flying_saucers), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFlyingSaucers), SET_FIELD(RatingsMultipliers, { 50, 25, 0 }), SET_FIELD(UpkeepCosts, { 90, 1, 0, 5, 0, 0 }), SET_FIELD(BuildCosts, { 35.00_GBP, 2.00_GBP, 1, }), diff --git a/src/openrct2/ride/gentle/meta/GhostTrain.h b/src/openrct2/ride/gentle/meta/GhostTrain.h index a46ec8c7cd..dd8d2ad939 100644 --- a/src/openrct2/ride/gentle/meta/GhostTrain.h +++ b/src/openrct2/ride/gentle/meta/GhostTrain.h @@ -42,7 +42,7 @@ constexpr const RideTypeDescriptor GhostTrainRTD = SET_FIELD(Heights, { 8, 24, 6, 7, }), SET_FIELD(MaxMass, 2), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_ghost_train), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateGhostTrain), SET_FIELD(RatingsMultipliers, { 70, 10, 10 }), SET_FIELD(UpkeepCosts, { 80, 20, 0, 8, 3, 5 }), SET_FIELD(BuildCosts, { 13.00_GBP, 2.50_GBP, 30, }), diff --git a/src/openrct2/ride/gentle/meta/HauntedHouse.h b/src/openrct2/ride/gentle/meta/HauntedHouse.h index cc927ed277..34f70e7315 100644 --- a/src/openrct2/ride/gentle/meta/HauntedHouse.h +++ b/src/openrct2/ride/gentle/meta/HauntedHouse.h @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor HauntedHouseRTD = SET_FIELD(Heights, { 16, 160, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_haunted_house), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateHauntedHouse), SET_FIELD(RatingsMultipliers, { 20, 10, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 42.50_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/gentle/meta/Maze.h b/src/openrct2/ride/gentle/meta/Maze.h index bd9a4ff7b0..2e09d7e172 100644 --- a/src/openrct2/ride/gentle/meta/Maze.h +++ b/src/openrct2/ride/gentle/meta/Maze.h @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor MazeRTD = SET_FIELD(Heights, { 6, 24, 0, 1, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_maze), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMaze), SET_FIELD(RatingsMultipliers, { 50, 0, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 27.50_GBP, 1.00_GBP, 8, }), diff --git a/src/openrct2/ride/gentle/meta/MerryGoRound.h b/src/openrct2/ride/gentle/meta/MerryGoRound.h index 931df4d7bf..aed7ea8be3 100644 --- a/src/openrct2/ride/gentle/meta/MerryGoRound.h +++ b/src/openrct2/ride/gentle/meta/MerryGoRound.h @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor MerryGoRoundRTD = SET_FIELD(Heights, { 12, 64, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_merry_go_round), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMerryGoRound), SET_FIELD(RatingsMultipliers, { 50, 10, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 57.50_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/gentle/meta/MiniGolf.h b/src/openrct2/ride/gentle/meta/MiniGolf.h index de3af1c2d4..95e7b011c4 100644 --- a/src/openrct2/ride/gentle/meta/MiniGolf.h +++ b/src/openrct2/ride/gentle/meta/MiniGolf.h @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor MiniGolfRTD = SET_FIELD(Heights, { 7, 32, 2, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mini_golf), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMiniGolf), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 30, 60, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 25.00_GBP, 3.50_GBP, 20, }), diff --git a/src/openrct2/ride/gentle/meta/MiniHelicopters.h b/src/openrct2/ride/gentle/meta/MiniHelicopters.h index 5859dae1b0..d34f4d8a47 100644 --- a/src/openrct2/ride/gentle/meta/MiniHelicopters.h +++ b/src/openrct2/ride/gentle/meta/MiniHelicopters.h @@ -41,7 +41,7 @@ constexpr const RideTypeDescriptor MiniHelicoptersRTD = SET_FIELD(Heights, { 7, 24, 4, 7, }), SET_FIELD(MaxMass, 2), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mini_helicopters), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMiniHelicopters), SET_FIELD(RatingsMultipliers, { 70, 10, 10 }), SET_FIELD(UpkeepCosts, { 70, 20, 0, 8, 3, 5 }), SET_FIELD(BuildCosts, { 12.50_GBP, 2.50_GBP, 30, }), diff --git a/src/openrct2/ride/gentle/meta/MonorailCycles.h b/src/openrct2/ride/gentle/meta/MonorailCycles.h index 5414f1ec33..8ba17eab64 100644 --- a/src/openrct2/ride/gentle/meta/MonorailCycles.h +++ b/src/openrct2/ride/gentle/meta/MonorailCycles.h @@ -40,7 +40,7 @@ constexpr const RideTypeDescriptor MonorailCyclesRTD = SET_FIELD(Heights, { 5, 24, 8, 7, }), SET_FIELD(MaxMass, 2), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_monorail_cycles), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMonorailCycles), SET_FIELD(RatingsMultipliers, { 50, 10, 10 }), SET_FIELD(UpkeepCosts, { 47, 20, 0, 8, 3, 5 }), SET_FIELD(BuildCosts, { 10.00_GBP, 2.50_GBP, 30, }), diff --git a/src/openrct2/ride/gentle/meta/MonsterTrucks.h b/src/openrct2/ride/gentle/meta/MonsterTrucks.h index 68fbad70d5..505345df01 100644 --- a/src/openrct2/ride/gentle/meta/MonsterTrucks.h +++ b/src/openrct2/ride/gentle/meta/MonsterTrucks.h @@ -40,7 +40,7 @@ constexpr const RideTypeDescriptor MonsterTrucksRTD = SET_FIELD(Heights, { 18, 24, 4, 7, }), SET_FIELD(MaxMass, 2), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_car_ride), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCarRide), SET_FIELD(RatingsMultipliers, { 70, 10, 10 }), SET_FIELD(UpkeepCosts, { 70, 20, 0, 8, 3, 5 }), SET_FIELD(BuildCosts, { 12.50_GBP, 2.50_GBP, 30, }), diff --git a/src/openrct2/ride/gentle/meta/ObservationTower.h b/src/openrct2/ride/gentle/meta/ObservationTower.h index 8cc26930af..3930110efc 100644 --- a/src/openrct2/ride/gentle/meta/ObservationTower.h +++ b/src/openrct2/ride/gentle/meta/ObservationTower.h @@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor ObservationTowerRTD = SET_FIELD(Heights, { 255, 32, 3, 2, }), SET_FIELD(MaxMass, 15), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_observation_tower), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateObservationTower), SET_FIELD(RatingsMultipliers, { 80, 10, 0 }), SET_FIELD(UpkeepCosts, { 50, 20, 0, 10, 0, 0 }), SET_FIELD(BuildCosts, { 18.50_GBP, 0.00_GBP, 4, }), diff --git a/src/openrct2/ride/gentle/meta/SpaceRings.h b/src/openrct2/ride/gentle/meta/SpaceRings.h index 69b1462436..74308527e8 100644 --- a/src/openrct2/ride/gentle/meta/SpaceRings.h +++ b/src/openrct2/ride/gentle/meta/SpaceRings.h @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor SpaceRingsRTD = SET_FIELD(Heights, { 16, 48, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_space_rings), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSpaceRings), SET_FIELD(RatingsMultipliers, { 12, 4, 4 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 36.00_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/gentle/meta/SpiralSlide.h b/src/openrct2/ride/gentle/meta/SpiralSlide.h index 368417f65f..c9ba556da2 100644 --- a/src/openrct2/ride/gentle/meta/SpiralSlide.h +++ b/src/openrct2/ride/gentle/meta/SpiralSlide.h @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor SpiralSlideRTD = SET_FIELD(Heights, { 15, 128, 0, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_spiral_slide), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSpiralSlide), SET_FIELD(RatingsMultipliers, { 50, 10, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 82.50_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/shops/Facility.cpp b/src/openrct2/ride/shops/Facility.cpp index f8cbf2ba9a..8494b86dec 100644 --- a/src/openrct2/ride/shops/Facility.cpp +++ b/src/openrct2/ride/shops/Facility.cpp @@ -71,7 +71,7 @@ static void PaintFacility( } /* 0x00762D44 */ -TRACK_PAINT_FUNCTION get_track_paint_function_facility(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionFacility(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/shops/Shop.cpp b/src/openrct2/ride/shops/Shop.cpp index 5b09dd05c3..a13e0260ef 100644 --- a/src/openrct2/ride/shops/Shop.cpp +++ b/src/openrct2/ride/shops/Shop.cpp @@ -57,7 +57,7 @@ static void PaintShop( PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); } -TRACK_PAINT_FUNCTION get_track_paint_function_shop(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionShop(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/shops/meta/CashMachine.h b/src/openrct2/ride/shops/meta/CashMachine.h index 9167a5751f..4aab035436 100644 --- a/src/openrct2/ride/shops/meta/CashMachine.h +++ b/src/openrct2/ride/shops/meta/CashMachine.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor CashMachineRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), - SET_FIELD(TrackPaintFunction, get_track_paint_function_shop), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_IS_CASH_MACHINE | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), SET_FIELD(RideModes, EnumsToFlags(RideMode::ShopStall)), @@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor CashMachineRTD = SET_FIELD(Heights, { 12, 64, 0, 0, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_cash_machine), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCashMachine), SET_FIELD(RatingsMultipliers, { 0, 0, 0 }), SET_FIELD(UpkeepCosts, { 40, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 200.00_GBP, 0.00_GBP, 1, }), diff --git a/src/openrct2/ride/shops/meta/DrinkStall.h b/src/openrct2/ride/shops/meta/DrinkStall.h index 6735776fdd..f0b1aed30e 100644 --- a/src/openrct2/ride/shops/meta/DrinkStall.h +++ b/src/openrct2/ride/shops/meta/DrinkStall.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor DrinkStallRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), - SET_FIELD(TrackPaintFunction, get_track_paint_function_shop), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_SELLS_DRINKS | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor DrinkStallRTD = SET_FIELD(Heights, { 12, 64, 0, 0, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_drink_stall), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateDrinkStall), SET_FIELD(RatingsMultipliers, { 0, 0, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 250.00_GBP, 0.00_GBP, 1, }), diff --git a/src/openrct2/ride/shops/meta/FirstAid.h b/src/openrct2/ride/shops/meta/FirstAid.h index f913456ca5..c9e33acbe2 100644 --- a/src/openrct2/ride/shops/meta/FirstAid.h +++ b/src/openrct2/ride/shops/meta/FirstAid.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor FirstAidRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), - SET_FIELD(TrackPaintFunction, get_track_paint_function_facility), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionFacility), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_IS_FIRST_AID | RIDE_TYPE_FLAG_PEEP_SHOULD_GO_INSIDE_FACILITY | RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor FirstAidRTD = SET_FIELD(Heights, { 12, 48, 0, 0, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_first_aid), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFirstAid), SET_FIELD(RatingsMultipliers, { 0, 0, 0 }), SET_FIELD(UpkeepCosts, { 45, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 250.00_GBP, 0.00_GBP, 1, }), diff --git a/src/openrct2/ride/shops/meta/FoodStall.h b/src/openrct2/ride/shops/meta/FoodStall.h index 70eb5edbea..7ff664f1d3 100644 --- a/src/openrct2/ride/shops/meta/FoodStall.h +++ b/src/openrct2/ride/shops/meta/FoodStall.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor FoodStallRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), - SET_FIELD(TrackPaintFunction, get_track_paint_function_shop), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_SELLS_FOOD | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor FoodStallRTD = SET_FIELD(Heights, { 12, 64, 0, 0, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_food_stall), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFoodStall), SET_FIELD(RatingsMultipliers, { 0, 0, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 300.00_GBP, 0.00_GBP, 1, }), diff --git a/src/openrct2/ride/shops/meta/InformationKiosk.h b/src/openrct2/ride/shops/meta/InformationKiosk.h index d158a45c85..195191b30a 100644 --- a/src/openrct2/ride/shops/meta/InformationKiosk.h +++ b/src/openrct2/ride/shops/meta/InformationKiosk.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor InformationKioskRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1B), - SET_FIELD(TrackPaintFunction, get_track_paint_function_shop), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor InformationKioskRTD = SET_FIELD(Heights, { 12, 48, 0, 0, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_information_kiosk), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateInformationKiosk), SET_FIELD(RatingsMultipliers, { 0, 0, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 250.00_GBP, 0.00_GBP, 1, }), diff --git a/src/openrct2/ride/shops/meta/Shop.h b/src/openrct2/ride/shops/meta/Shop.h index 40a4ce346b..be50863333 100644 --- a/src/openrct2/ride/shops/meta/Shop.h +++ b/src/openrct2/ride/shops/meta/Shop.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor ShopRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), - SET_FIELD(TrackPaintFunction, get_track_paint_function_shop), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionShop), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor ShopRTD = SET_FIELD(Heights, { 12, 64, 0, 0, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_shop), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateShop), SET_FIELD(RatingsMultipliers, { 0, 0, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 200.00_GBP, 0.00_GBP, 1, }), diff --git a/src/openrct2/ride/shops/meta/Toilets.h b/src/openrct2/ride/shops/meta/Toilets.h index 8aa032ff1e..6077144efe 100644 --- a/src/openrct2/ride/shops/meta/Toilets.h +++ b/src/openrct2/ride/shops/meta/Toilets.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor ToiletsRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x1A), - SET_FIELD(TrackPaintFunction, get_track_paint_function_facility), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionFacility), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_NO_VEHICLES | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_IS_SHOP_OR_FACILITY | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_PEEP_SHOULD_GO_INSIDE_FACILITY | RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_IS_TOILET | RIDE_TYPE_FLAG_LIST_VEHICLES_SEPARATELY), @@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor ToiletsRTD = SET_FIELD(Heights, { 12, 32, 0, 0, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_toilets), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateToilets), SET_FIELD(RatingsMultipliers, { 0, 0, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 225.00_GBP, 0.00_GBP, 1, }), diff --git a/src/openrct2/ride/thrill/3dCinema.cpp b/src/openrct2/ride/thrill/3dCinema.cpp index 17ba78ed24..1d6a2ac7fa 100644 --- a/src/openrct2/ride/thrill/3dCinema.cpp +++ b/src/openrct2/ride/thrill/3dCinema.cpp @@ -60,9 +60,9 @@ static void Paint3dCinema( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_MISC], height, fenceSpritesRope, session.CurrentRotation); @@ -114,7 +114,7 @@ static void Paint3dCinema( PaintUtilSetGeneralSupportHeight(session, height + 128, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_3d_cinema(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunction3dCinema(int32_t trackType) { if (trackType != TrackElemType::FlatTrack3x3) { diff --git a/src/openrct2/ride/thrill/Enterprise.cpp b/src/openrct2/ride/thrill/Enterprise.cpp index 9a160c7518..8542d47d33 100644 --- a/src/openrct2/ride/thrill/Enterprise.cpp +++ b/src/openrct2/ride/thrill/Enterprise.cpp @@ -98,9 +98,9 @@ static void PaintEnterprise( WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_MISC]); const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_TRACK], height, fenceSpritesRope, session.CurrentRotation); @@ -167,7 +167,7 @@ static void PaintEnterprise( PaintUtilSetGeneralSupportHeight(session, height + 160, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_enterprise(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionEnterprise(int32_t trackType) { if (trackType != TrackElemType::FlatTrack4x4) { diff --git a/src/openrct2/ride/thrill/GoKarts.cpp b/src/openrct2/ride/thrill/GoKarts.cpp index 8cef77bb47..598906ef3b 100644 --- a/src/openrct2/ride/thrill/GoKarts.cpp +++ b/src/openrct2/ride/thrill/GoKarts.cpp @@ -371,13 +371,13 @@ static void paint_go_karts_station( if (direction == 0 || direction == 2) { - hasFence = track_paint_util_has_fence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation); - track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height); + hasFence = TrackPaintUtilHasFence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation); + TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height); } else { - hasFence = track_paint_util_has_fence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation); - track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height); + hasFence = TrackPaintUtilHasFence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation); + TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height); } imageId = session.TrackColours[SCHEME_TRACK].WithIndex(sprites[direction][1]); @@ -396,13 +396,13 @@ static void paint_go_karts_station( if (direction == 0 || direction == 2) { - hasFence = track_paint_util_has_fence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation); - track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height); + hasFence = TrackPaintUtilHasFence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation); + TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, height); } else { - hasFence = track_paint_util_has_fence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation); - track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height); + hasFence = TrackPaintUtilHasFence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation); + TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, height); } if (trackElement.GetTrackType() == TrackElemType::EndStation) @@ -533,7 +533,7 @@ static void paint_go_karts_track_right_quarter_turn_1_tile( /** * rct2: 0x0074A668 */ -TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionGoKarts(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/thrill/LaunchedFreefall.cpp b/src/openrct2/ride/thrill/LaunchedFreefall.cpp index 8dd40f963a..d6c946b8da 100644 --- a/src/openrct2/ride/thrill/LaunchedFreefall.cpp +++ b/src/openrct2/ride/thrill/LaunchedFreefall.cpp @@ -99,10 +99,9 @@ static void paint_launched_freefall_base( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor( - session, edges, session.TrackColours[SCHEME_SUPPORTS], height, floorSpritesMetal, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_SUPPORTS], height, floorSpritesMetal, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_TRACK], height, fenceSpritesMetal, session.CurrentRotation); @@ -189,7 +188,7 @@ static void paint_launched_freefall_tower_section( /** * rct2: 0x006FD0E8 */ -TRACK_PAINT_FUNCTION get_track_paint_function_launched_freefall(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLaunchedFreefall(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/thrill/MagicCarpet.cpp b/src/openrct2/ride/thrill/MagicCarpet.cpp index c1d9fa38b1..b8a557889c 100644 --- a/src/openrct2/ride/thrill/MagicCarpet.cpp +++ b/src/openrct2/ride/thrill/MagicCarpet.cpp @@ -260,7 +260,7 @@ static void PaintMagicCarpet( PaintUtilSetGeneralSupportHeight(session, height + 176, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_magic_carpet(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMagicCarpet(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/thrill/MotionSimulator.cpp b/src/openrct2/ride/thrill/MotionSimulator.cpp index a25000b67b..dc4b792e91 100644 --- a/src/openrct2/ride/thrill/MotionSimulator.cpp +++ b/src/openrct2/ride/thrill/MotionSimulator.cpp @@ -113,9 +113,9 @@ static void PaintMotionSimulator( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_SUPPORTS], height, fenceSpritesRope, session.CurrentRotation); @@ -140,7 +140,7 @@ static void PaintMotionSimulator( * * rct2: 0x00763520 */ -TRACK_PAINT_FUNCTION get_track_paint_function_motionsimulator(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMotionsimulator(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/thrill/RotoDrop.cpp b/src/openrct2/ride/thrill/RotoDrop.cpp index 3c59e580a1..5554abf5f5 100644 --- a/src/openrct2/ride/thrill/RotoDrop.cpp +++ b/src/openrct2/ride/thrill/RotoDrop.cpp @@ -111,10 +111,9 @@ static void paint_roto_drop_base( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor( - session, edges, session.TrackColours[SCHEME_SUPPORTS], height, floorSpritesMetalB, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_SUPPORTS], height, floorSpritesMetalB, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_TRACK], height, fenceSpritesMetalB, session.CurrentRotation); @@ -202,7 +201,7 @@ static void paint_roto_drop_tower_section( /** * rct2: 0x00886074 */ -TRACK_PAINT_FUNCTION get_track_paint_function_roto_drop(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionRotoDrop(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/thrill/SwingingInverterShip.cpp b/src/openrct2/ride/thrill/SwingingInverterShip.cpp index 0d0483222f..2a4ca0a24a 100644 --- a/src/openrct2/ride/thrill/SwingingInverterShip.cpp +++ b/src/openrct2/ride/thrill/SwingingInverterShip.cpp @@ -193,7 +193,7 @@ static void PaintSwingingInverterShip( PaintUtilSetGeneralSupportHeight(session, height + 176, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_swinging_inverter_ship(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSwingingInverterShip(int32_t trackType) { if (trackType != TrackElemType::FlatTrack1x4B) { diff --git a/src/openrct2/ride/thrill/SwingingShip.cpp b/src/openrct2/ride/thrill/SwingingShip.cpp index a2a0b2d543..90084c69fd 100644 --- a/src/openrct2/ride/thrill/SwingingShip.cpp +++ b/src/openrct2/ride/thrill/SwingingShip.cpp @@ -196,8 +196,7 @@ static void PaintSwingingShip( { if (relativeTrackSequence != 1 && relativeTrackSequence != 4) { - hasFence = track_paint_util_has_fence( - EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation); if (relativeTrackSequence == 2) { imageId = session.TrackColours[SCHEME_TRACK].WithIndex( @@ -214,8 +213,7 @@ static void PaintSwingingShip( (relativeTrackSequence == 2 ? SPR_STATION_PLATFORM_BEGIN_NW_SE : SPR_STATION_PLATFORM_NW_SE)); PaintAddImageAsParent(session, imageId, { 24, 0, height + 9 }, { 8, 32, 1 }); - hasFence = track_paint_util_has_fence( - EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation); if (relativeTrackSequence == 3) { if (hasFence) @@ -243,8 +241,7 @@ static void PaintSwingingShip( { if (relativeTrackSequence != 1 && relativeTrackSequence != 4) { - hasFence = track_paint_util_has_fence( - EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation); if (relativeTrackSequence == 2) { imageId = session.TrackColours[SCHEME_TRACK].WithIndex( @@ -261,8 +258,7 @@ static void PaintSwingingShip( (relativeTrackSequence == 2 ? SPR_STATION_PLATFORM_BEGIN_SW_NE : SPR_STATION_PLATFORM_SW_NE)); PaintAddImageAsParent(session, imageId, { 0, 24, height + 9 }, { 32, 8, 1 }); - hasFence = track_paint_util_has_fence( - EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation); if (relativeTrackSequence == 3) { if (hasFence) @@ -309,7 +305,7 @@ static void PaintSwingingShip( PaintUtilSetGeneralSupportHeight(session, height + 112, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_swinging_ship(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSwingingShip(int32_t trackType) { if (trackType != TrackElemType::FlatTrack1x5) { diff --git a/src/openrct2/ride/thrill/TopSpin.cpp b/src/openrct2/ride/thrill/TopSpin.cpp index dc1917c211..9352f5e483 100644 --- a/src/openrct2/ride/thrill/TopSpin.cpp +++ b/src/openrct2/ride/thrill/TopSpin.cpp @@ -193,9 +193,9 @@ static void PaintTopSpin( const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_MISC], height, fenceSpritesRope, session.CurrentRotation); @@ -247,7 +247,7 @@ static void PaintTopSpin( PaintUtilSetGeneralSupportHeight(session, height + 112, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_topspin(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionTopspin(int32_t trackType) { if (trackType != TrackElemType::FlatTrack3x3) { diff --git a/src/openrct2/ride/thrill/Twist.cpp b/src/openrct2/ride/thrill/Twist.cpp index 87ef5c27e8..4c46c4fe75 100644 --- a/src/openrct2/ride/thrill/Twist.cpp +++ b/src/openrct2/ride/thrill/Twist.cpp @@ -94,24 +94,24 @@ static void paint_twist( WoodenASupportsPaintSetup(session, (direction & 1), 0, height, session.TrackColours[SCHEME_MISC]); const StationObject* stationObject = ride.GetStationObject(); - track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_MISC], height, floorSpritesCork, stationObject); + TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_MISC], height, floorSpritesCork, stationObject); switch (trackSequence) { case 7: - if (track_paint_util_has_fence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation)) + if (TrackPaintUtilHasFence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation)) { imageId = session.TrackColours[SCHEME_MISC].WithIndex(SPR_FENCE_ROPE_SW); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 28, 7 }, { 29, 0, height + 3 }); } - if (track_paint_util_has_fence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation)) + if (TrackPaintUtilHasFence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation)) { imageId = session.TrackColours[SCHEME_MISC].WithIndex(SPR_FENCE_ROPE_SE); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 1, 7 }, { 0, 29, height + 3 }); } break; default: - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_MISC], height, fenceSpritesRope, session.CurrentRotation); break; @@ -164,7 +164,7 @@ static void paint_twist( /** * rct2: 0x0076D658 */ -TRACK_PAINT_FUNCTION get_track_paint_function_twist(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionTwist(int32_t trackType) { if (trackType != TrackElemType::FlatTrack3x3) { diff --git a/src/openrct2/ride/thrill/meta/3DCinema.h b/src/openrct2/ride/thrill/meta/3DCinema.h index 9234409c0e..b664a854f3 100644 --- a/src/openrct2/ride/thrill/meta/3DCinema.h +++ b/src/openrct2/ride/thrill/meta/3DCinema.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor CinemaRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), - SET_FIELD(TrackPaintFunction, get_track_paint_function_3d_cinema), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunction3dCinema), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_IN_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor CinemaRTD = SET_FIELD(Heights, { 12, 128, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_3d_cinema), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculate3dCinema), SET_FIELD(RatingsMultipliers, { 20, 10, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 70.00_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/thrill/meta/Enterprise.h b/src/openrct2/ride/thrill/meta/Enterprise.h index 78b221817c..5e1569e851 100644 --- a/src/openrct2/ride/thrill/meta/Enterprise.h +++ b/src/openrct2/ride/thrill/meta/Enterprise.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor EnterpriseRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack4x4), - SET_FIELD(TrackPaintFunction, get_track_paint_function_enterprise), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionEnterprise), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor EnterpriseRTD = SET_FIELD(Heights, { 16, 160, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_enterprise), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateEnterprise), SET_FIELD(RatingsMultipliers, { 50, 10, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 50.00_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/thrill/meta/GoKarts.h b/src/openrct2/ride/thrill/meta/GoKarts.h index 038cb96ad7..85a393ca1f 100644 --- a/src/openrct2/ride/thrill/meta/GoKarts.h +++ b/src/openrct2/ride/thrill/meta/GoKarts.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor GoKartsRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_go_karts), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionGoKarts), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_HAS_ONE_STATION | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_HAS_TRACK | RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | RIDE_TYPE_FLAG_INTERESTING_TO_LOOK_AT), @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor GoKartsRTD = SET_FIELD(Heights, { 7, 24, 2, 1, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_go_karts), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateGoKarts), SET_FIELD(RatingsMultipliers, { 120, 20, 0 }), SET_FIELD(UpkeepCosts, { 50, 20, 0, 8, 0, 0 }), SET_FIELD(BuildCosts, { 31.00_GBP, 2.00_GBP, 20, }), diff --git a/src/openrct2/ride/thrill/meta/LaunchedFreefall.h b/src/openrct2/ride/thrill/meta/LaunchedFreefall.h index 28a525b349..7e63f0a5d4 100644 --- a/src/openrct2/ride/thrill/meta/LaunchedFreefall.h +++ b/src/openrct2/ride/thrill/meta/LaunchedFreefall.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor LaunchedFreefallRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::TowerBase), - SET_FIELD(TrackPaintFunction, get_track_paint_function_launched_freefall), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionLaunchedFreefall), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_HAS_TRACK | RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor LaunchedFreefallRTD = SET_FIELD(Heights, { 255, 32, 3, 2, }), SET_FIELD(MaxMass, 15), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_launched_freefall), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLaunchedFreefall), SET_FIELD(RatingsMultipliers, { 50, 50, 10 }), SET_FIELD(UpkeepCosts, { 50, 20, 0, 10, 0, 0 }), SET_FIELD(BuildCosts, { 25.00_GBP, 0.00_GBP, 4, }), diff --git a/src/openrct2/ride/thrill/meta/MagicCarpet.h b/src/openrct2/ride/thrill/meta/MagicCarpet.h index 5bc623e88d..2720774b7c 100644 --- a/src/openrct2/ride/thrill/meta/MagicCarpet.h +++ b/src/openrct2/ride/thrill/meta/MagicCarpet.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor MagicCarpetRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x4A), - SET_FIELD(TrackPaintFunction, get_track_paint_function_magic_carpet), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMagicCarpet), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | @@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor MagicCarpetRTD = SET_FIELD(Heights, { 15, 176, 7, 11, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_magic_carpet), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMagicCarpet), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 99.00_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/thrill/meta/MotionSimulator.h b/src/openrct2/ride/thrill/meta/MotionSimulator.h index 86e688c447..aaec998408 100644 --- a/src/openrct2/ride/thrill/meta/MotionSimulator.h +++ b/src/openrct2/ride/thrill/meta/MotionSimulator.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor MotionSimulatorRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack2x2), - SET_FIELD(TrackPaintFunction, get_track_paint_function_motionsimulator), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMotionsimulator), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor MotionSimulatorRTD = SET_FIELD(Heights, { 12, 64, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_motion_simulator), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMotionSimulator), SET_FIELD(RatingsMultipliers, { 24, 20, 10 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 110.00_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/thrill/meta/RotoDrop.h b/src/openrct2/ride/thrill/meta/RotoDrop.h index 9a90445687..c1fc18255d 100644 --- a/src/openrct2/ride/thrill/meta/RotoDrop.h +++ b/src/openrct2/ride/thrill/meta/RotoDrop.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor RotoDropRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::TowerBase), - SET_FIELD(TrackPaintFunction, get_track_paint_function_roto_drop), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionRotoDrop), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_HAS_TRACK | @@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor RotoDropRTD = SET_FIELD(Heights, { 255, 32, 3, 2, }), SET_FIELD(MaxMass, 15), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_roto_drop), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateRotoDrop), SET_FIELD(RatingsMultipliers, { 50, 50, 10 }), SET_FIELD(UpkeepCosts, { 50, 20, 0, 10, 0, 0 }), SET_FIELD(BuildCosts, { 22.50_GBP, 0.00_GBP, 4, }), diff --git a/src/openrct2/ride/thrill/meta/SwingingInverterShip.h b/src/openrct2/ride/thrill/meta/SwingingInverterShip.h index e4f1edf980..cd55609c1c 100644 --- a/src/openrct2/ride/thrill/meta/SwingingInverterShip.h +++ b/src/openrct2/ride/thrill/meta/SwingingInverterShip.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SwingingInverterShipRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x4B), - SET_FIELD(TrackPaintFunction, get_track_paint_function_swinging_inverter_ship), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSwingingInverterShip), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor SwingingInverterShipRTD = SET_FIELD(Heights, { 15, 176, 7, 11, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_inverter_ship), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateInverterShip), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 106.00_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/thrill/meta/SwingingShip.h b/src/openrct2/ride/thrill/meta/SwingingShip.h index e300ff8e3d..55fc165d68 100644 --- a/src/openrct2/ride/thrill/meta/SwingingShip.h +++ b/src/openrct2/ride/thrill/meta/SwingingShip.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SwingingShipRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack1x5), - SET_FIELD(TrackPaintFunction, get_track_paint_function_swinging_ship), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSwingingShip), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | @@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor SwingingShipRTD = SET_FIELD(Heights, { 12, 112, 7, 11, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_swinging_ship), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSwingingShip), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 77.50_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/thrill/meta/TopSpin.h b/src/openrct2/ride/thrill/meta/TopSpin.h index 61a4a15f7f..7fe761b868 100644 --- a/src/openrct2/ride/thrill/meta/TopSpin.h +++ b/src/openrct2/ride/thrill/meta/TopSpin.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor TopSpinRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), - SET_FIELD(TrackPaintFunction, get_track_paint_function_topspin), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionTopspin), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor TopSpinRTD = SET_FIELD(Heights, { 16, 112, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_top_spin), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateTopSpin), SET_FIELD(RatingsMultipliers, { 24, 20, 10 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 72.50_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/thrill/meta/Twist.h b/src/openrct2/ride/thrill/meta/Twist.h index 1059e7aadc..854d00f2a3 100644 --- a/src/openrct2/ride/thrill/meta/Twist.h +++ b/src/openrct2/ride/thrill/meta/Twist.h @@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor TwistRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::FlatTrack3x3), - SET_FIELD(TrackPaintFunction, get_track_paint_function_twist), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionTwist), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_NO_TRACK | RIDE_TYPE_FLAG_VEHICLE_IS_INTEGRAL | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_FLAT_RIDE | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | @@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor TwistRTD = SET_FIELD(Heights, { 12, 64, 3, 2, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_twist), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateTwist), SET_FIELD(RatingsMultipliers, { 40, 20, 10 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }), SET_FIELD(BuildCosts, { 45.00_GBP, 1.00_GBP, 1, }), diff --git a/src/openrct2/ride/transport/Chairlift.cpp b/src/openrct2/ride/transport/Chairlift.cpp index b5f51f19b7..95cd004281 100644 --- a/src/openrct2/ride/transport/Chairlift.cpp +++ b/src/openrct2/ride/transport/Chairlift.cpp @@ -201,13 +201,13 @@ static void chairlift_paint_station_ne_sw( imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_FLOOR_METAL); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 32, 32, 1 } }); - bool hasFence = track_paint_util_has_fence(EDGE_NW, pos, trackElement, ride, session.CurrentRotation); + bool hasFence = TrackPaintUtilHasFence(EDGE_NW, pos, trackElement, ride, session.CurrentRotation); if (hasFence) { imageId = session.TrackColours[SCHEME_TRACK].WithIndex(SPR_FENCE_METAL_NW); PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 2, height + 2 }, { 32, 1, 7 } }); } - track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height); if ((direction == 2 && isStart) || (direction == 0 && isEnd)) { @@ -215,13 +215,13 @@ static void chairlift_paint_station_ne_sw( PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 2, 2, height + 4 }, { 1, 28, 7 } }); } - hasFence = track_paint_util_has_fence(EDGE_SE, pos, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SE, pos, trackElement, ride, session.CurrentRotation); if (hasFence) { imageId = session.TrackColours[SCHEME_TRACK].WithIndex(SPR_FENCE_METAL_SE); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 30, height + 2 }, { 32, 1, 27 } }); } - track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, height); bool drawFrontColumn = true; bool drawBackColumn = true; @@ -293,13 +293,13 @@ static void chairlift_paint_station_se_nw( imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_FLOOR_METAL); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 32, 32, 1 } }); - bool hasFence = track_paint_util_has_fence(EDGE_NE, pos, trackElement, ride, session.CurrentRotation); + bool hasFence = TrackPaintUtilHasFence(EDGE_NE, pos, trackElement, ride, session.CurrentRotation); if (hasFence) { imageId = session.TrackColours[SCHEME_TRACK].WithIndex(SPR_FENCE_METAL_NE); PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 2, 0, height + 2 }, { 1, 32, 7 } }); } - track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height); if ((direction == 1 && isStart) || (direction == 3 && isEnd)) { @@ -307,13 +307,13 @@ static void chairlift_paint_station_se_nw( PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 2, 2, height + 4 }, { 28, 1, 7 } }); } - hasFence = track_paint_util_has_fence(EDGE_SW, pos, trackElement, ride, session.CurrentRotation); + hasFence = TrackPaintUtilHasFence(EDGE_SW, pos, trackElement, ride, session.CurrentRotation); if (hasFence) { imageId = session.TrackColours[SCHEME_TRACK].WithIndex(SPR_FENCE_METAL_SW); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 30, 0, height + 2 }, { 1, 32, 27 } }); } - track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height); + TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, height); bool drawRightColumn = true; bool drawLeftColumn = true; @@ -649,7 +649,7 @@ static void chairlift_paint_right_quarter_turn_1_tile( } /* 0x008AAA0C */ -TRACK_PAINT_FUNCTION get_track_paint_function_chairlift(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionChairlift(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/transport/Lift.cpp b/src/openrct2/ride/transport/Lift.cpp index 3fd66e990c..fa3387ba1b 100644 --- a/src/openrct2/ride/transport/Lift.cpp +++ b/src/openrct2/ride/transport/Lift.cpp @@ -73,7 +73,7 @@ static void paint_lift_base( auto imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_FLOOR_METAL_B); PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 0, height }, { 32, 32, 1 } }); - track_paint_util_paint_fences( + TrackPaintUtilPaintFences( session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_TRACK], height, fenceSpritesMetalB, session.CurrentRotation); @@ -131,7 +131,7 @@ static void paint_lift_tower_section( /** * rct2: 0x0076C5BC */ -TRACK_PAINT_FUNCTION get_track_paint_function_lift(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLift(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/transport/MiniatureRailway.cpp b/src/openrct2/ride/transport/MiniatureRailway.cpp index f688a9e072..61434dac35 100644 --- a/src/openrct2/ride/transport/MiniatureRailway.cpp +++ b/src/openrct2/ride/transport/MiniatureRailway.cpp @@ -713,7 +713,7 @@ static void paint_miniature_railway_station( PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); - track_paint_util_draw_station_3(session, ride, direction, height + 2, height, trackElement); + TrackPaintUtilDrawStation3(session, ride, direction, height + 2, height, trackElement); // covers shouldn't be offset by +2 PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); @@ -985,14 +985,14 @@ static void paint_miniature_railway_track_right_quarter_turn_5_tiles( if (!isSupported || (trackSequence == 3 && direction == 2)) { - track_paint_util_right_quarter_turn_5_tiles_paint( + TrackPaintUtilRightQuarterTurn5TilesPaint( session, 2, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], miniature_railway_track_pieces_flat_quarter_turn_5_tiles, miniature_railway_right_quarter_turn_5_tiles_offsets, miniature_railway_right_quarter_turn_5_tiles_bound_lengths, nullptr); } else { - track_paint_util_right_quarter_turn_5_tiles_paint( + TrackPaintUtilRightQuarterTurn5TilesPaint( session, 2, height, direction, trackSequence, session.TrackColours[SCHEME_SUPPORTS], miniature_railway_right_quarter_turn_5_tiles_track_floor, nullptr, miniature_railway_right_quarter_turn_5_tiles_bound_lengths, @@ -1349,7 +1349,7 @@ static void paint_miniature_railway_track_right_quarter_turn_3_tiles( } if (!isSupported) { - track_paint_util_right_quarter_turn_3_tiles_paint( + TrackPaintUtilRightQuarterTurn3TilesPaint( session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], miniature_railway_track_pieces_flat_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, nullptr); @@ -1364,7 +1364,7 @@ static void paint_miniature_railway_track_right_quarter_turn_3_tiles( } else { - track_paint_util_right_quarter_turn_3_tiles_paint( + TrackPaintUtilRightQuarterTurn3TilesPaint( session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_SUPPORTS], miniature_railway_right_quarter_turn_3_tile_track_floor, nullptr, defaultRightQuarterTurn3TilesBoundLengths, miniature_railway_right_quarter_turn_3_tile_bound_offsets); @@ -1382,7 +1382,7 @@ static void paint_miniature_railway_track_right_quarter_turn_3_tiles( PaintAddImageAsChild( session, imageId, { offset, height }, { boundsOffset + CoordsXYZ{ 0, 0, height }, { boundsLength, 3 } }); } - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); int32_t blockedSegments = 0; switch (trackSequence) @@ -2283,7 +2283,7 @@ static void miniature_railway_track_diag_25_deg_down_to_flat( /** * rct2: 0x008ACE48 */ -TRACK_PAINT_FUNCTION get_track_paint_function_miniature_railway(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniatureRailway(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/transport/Monorail.cpp b/src/openrct2/ride/transport/Monorail.cpp index 08842d2924..0d73374936 100644 --- a/src/openrct2/ride/transport/Monorail.cpp +++ b/src/openrct2/ride/transport/Monorail.cpp @@ -408,7 +408,7 @@ static void paint_monorail_track_flat( PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -472,7 +472,7 @@ static void paint_monorail_station( MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); @@ -510,7 +510,7 @@ static void paint_monorail_track_25_deg_up( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -552,7 +552,7 @@ static void paint_monorail_track_flat_to_25_deg_up( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -594,7 +594,7 @@ static void paint_monorail_track_25_deg_up_to_flat( break; } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -633,7 +633,7 @@ static void paint_monorail_track_right_quarter_turn_5_tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_right_quarter_turn_5_tiles_paint( + TrackPaintUtilRightQuarterTurn5TilesPaint( session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], monorail_track_pieces_flat_quarter_turn_5_tiles, defaultRightQuarterTurn5TilesOffsets, defaultRightQuarterTurn5TilesBoundLengths, nullptr); @@ -886,11 +886,11 @@ static void paint_monorail_track_right_quarter_turn_3_tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_right_quarter_turn_3_tiles_paint( + TrackPaintUtilRightQuarterTurn3TilesPaint( session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], monorail_track_pieces_flat_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, nullptr); - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT); switch (trackSequence) { @@ -1268,7 +1268,7 @@ static void paint_monorail_track_diag_25_deg_down_to_flat( /** * rct2: 0x008ADF34 */ -TRACK_PAINT_FUNCTION get_track_paint_function_monorail(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionMonorail(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/transport/SuspendedMonorail.cpp b/src/openrct2/ride/transport/SuspendedMonorail.cpp index fbb9bc0a5c..53e14fff31 100644 --- a/src/openrct2/ride/transport/SuspendedMonorail.cpp +++ b/src/openrct2/ride/transport/SuspendedMonorail.cpp @@ -42,7 +42,7 @@ static void suspended_monorail_track_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 42, session.TrackColours[SCHEME_SUPPORTS]); } @@ -72,8 +72,8 @@ static void suspended_monorail_track_station( PaintAddImageAsChildRotated( session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 32 }, { 32, 20, 3 }, { 0, 6, height + 32 }); - track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); - track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); + TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3); + TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); @@ -110,7 +110,7 @@ static void suspended_monorail_track_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -175,7 +175,7 @@ static void suspended_monorail_track_flat_to_25_deg_up( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -240,7 +240,7 @@ static void suspended_monorail_track_25_deg_up_to_flat( PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { switch (direction) { @@ -1873,7 +1873,7 @@ static void suspended_monorail_track_diag_25_deg_down_to_flat( } } -TRACK_PAINT_FUNCTION get_track_paint_function_suspended_monorail(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSuspendedMonorail(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/transport/meta/Chairlift.h b/src/openrct2/ride/transport/meta/Chairlift.h index 83ee36a3f5..275863e609 100644 --- a/src/openrct2/ride/transport/meta/Chairlift.h +++ b/src/openrct2/ride/transport/meta/Chairlift.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor ChairliftRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_chairlift), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionChairlift), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_HAS_TRACK | RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT | @@ -40,7 +40,7 @@ constexpr const RideTypeDescriptor ChairliftRTD = SET_FIELD(Heights, { 40, 32, 28, 2, }), SET_FIELD(MaxMass, 18), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_chairlift), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateChairlift), SET_FIELD(RatingsMultipliers, { 70, 10, 0 }), SET_FIELD(UpkeepCosts, { 60, 20, 0, 4, 3, 10 }), SET_FIELD(BuildCosts, { 32.50_GBP, 0.50_GBP, 30, }), diff --git a/src/openrct2/ride/transport/meta/Lift.h b/src/openrct2/ride/transport/meta/Lift.h index 102c45bdce..823f32ac0e 100644 --- a/src/openrct2/ride/transport/meta/Lift.h +++ b/src/openrct2/ride/transport/meta/Lift.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor LiftRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::TowerBase), - SET_FIELD(TrackPaintFunction, get_track_paint_function_lift), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionLift), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAG_HAS_SINGLE_PIECE_STATION | RIDE_TYPE_FLAG_CANNOT_HAVE_GAPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_TRACK_NO_WALLS | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_HAS_TRACK | RIDE_TYPE_FLAG_ALLOW_EXTRA_TOWER_BASES | RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR | @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor LiftRTD = SET_FIELD(Heights, { 255, 32, 3, 2, }), SET_FIELD(MaxMass, 15), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_lift), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLift), SET_FIELD(RatingsMultipliers, { 80, 10, 0 }), SET_FIELD(UpkeepCosts, { 50, 20, 0, 10, 0, 0 }), SET_FIELD(BuildCosts, { 19.50_GBP, 0.00_GBP, 4, }), diff --git a/src/openrct2/ride/transport/meta/MiniatureRailway.h b/src/openrct2/ride/transport/meta/MiniatureRailway.h index 4c42ed6f1a..c11aaa42a6 100644 --- a/src/openrct2/ride/transport/meta/MiniatureRailway.h +++ b/src/openrct2/ride/transport/meta/MiniatureRailway.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor MiniatureRailwayRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_miniature_railway), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMiniatureRailway), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_HAS_TRACK | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR | @@ -41,7 +41,7 @@ constexpr const RideTypeDescriptor MiniatureRailwayRTD = SET_FIELD(Heights, { 7, 32, 5, 9, }), SET_FIELD(MaxMass, 39), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_miniature_railway), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMiniatureRailway), SET_FIELD(RatingsMultipliers, { 70, 6, -10 }), SET_FIELD(UpkeepCosts, { 60, 20, 0, 10, 3, 5 }), SET_FIELD(BuildCosts, { 17.50_GBP, 3.00_GBP, 50, }), diff --git a/src/openrct2/ride/transport/meta/Monorail.h b/src/openrct2/ride/transport/meta/Monorail.h index f829634bda..501e7a9217 100644 --- a/src/openrct2/ride/transport/meta/Monorail.h +++ b/src/openrct2/ride/transport/meta/Monorail.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor MonorailRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_monorail), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMonorail), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_ADDITIONAL | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | @@ -41,7 +41,7 @@ constexpr const RideTypeDescriptor MonorailRTD = SET_FIELD(Heights, { 8, 32, 8, 9, }), SET_FIELD(MaxMass, 78), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_monorail), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMonorail), SET_FIELD(RatingsMultipliers, { 70, 6, -10 }), SET_FIELD(UpkeepCosts, { 65, 20, 0, 10, 3, 10 }), SET_FIELD(BuildCosts, { 21.00_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/transport/meta/SuspendedMonorail.h b/src/openrct2/ride/transport/meta/SuspendedMonorail.h index bc878c849c..c64e96586d 100644 --- a/src/openrct2/ride/transport/meta/SuspendedMonorail.h +++ b/src/openrct2/ride/transport/meta/SuspendedMonorail.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SuspendedMonorailRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_suspended_monorail), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSuspendedMonorail), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | @@ -41,7 +41,7 @@ constexpr const RideTypeDescriptor SuspendedMonorailRTD = SET_FIELD(Heights, { 12, 40, 32, 8, }), SET_FIELD(MaxMass, 78), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_suspended_monorail), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSuspendedMonorail), SET_FIELD(RatingsMultipliers, { 70, 6, -10 }), SET_FIELD(UpkeepCosts, { 70, 20, 0, 10, 3, 10 }), SET_FIELD(BuildCosts, { 32.50_GBP, 2.50_GBP, 50, }), diff --git a/src/openrct2/ride/water/BoatHire.cpp b/src/openrct2/ride/water/BoatHire.cpp index 4bc6d9e038..c7abcd7a88 100644 --- a/src/openrct2/ride/water/BoatHire.cpp +++ b/src/openrct2/ride/water/BoatHire.cpp @@ -70,13 +70,13 @@ static void paint_boat_hire_station( if (direction & 1) { PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT); - track_paint_util_draw_pier( + TrackPaintUtilDrawPier( session, ride, stationObj, session.MapPosition, direction, height, trackElement, session.CurrentRotation); } else { PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT); - track_paint_util_draw_pier( + TrackPaintUtilDrawPier( session, ride, stationObj, session.MapPosition, direction, height, trackElement, session.CurrentRotation); } @@ -139,7 +139,7 @@ static void paint_boat_hire_track_right_quarter_turn_1_tile( /** * rct2: 0x008B0D60 */ -TRACK_PAINT_FUNCTION get_track_paint_function_boat_hire(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionBoatHire(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/water/DingySlide.cpp b/src/openrct2/ride/water/DingySlide.cpp index 6279c0cf68..3729eddad6 100644 --- a/src/openrct2/ride/water/DingySlide.cpp +++ b/src/openrct2/ride/water/DingySlide.cpp @@ -374,7 +374,7 @@ static void dinghy_slide_track_flat( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[isChained][direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -409,7 +409,7 @@ static void dinghy_slide_track_station( MetalASupportsPaintSetup( session, METAL_SUPPORTS_TUBES, 8 - (direction & 1), 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_station(session, ride, direction, height, trackElement); + TrackPaintUtilDrawStation(session, ride, direction, height, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -443,7 +443,7 @@ static void dinghy_slide_track_25_deg_up( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[isChained][direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 50 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -479,7 +479,7 @@ static void dinghy_slide_track_60_deg_up( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 98 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -524,7 +524,7 @@ static void dinghy_slide_track_flat_to_25_deg_up( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[isChained][direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 42 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -560,7 +560,7 @@ static void dinghy_slide_track_25_deg_up_to_60_deg_up( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -596,7 +596,7 @@ static void dinghy_slide_track_60_deg_up_to_25_deg_up( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -641,7 +641,7 @@ static void dinghy_slide_track_25_deg_up_to_flat( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[isChained][direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -760,9 +760,9 @@ static void dinghy_slide_track_right_quarter_turn_5( }, }; - track_paint_util_right_quarter_turn_5_tiles_paint_2( + TrackPaintUtilRightQuarterTurn5TilesPaint2( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); - track_paint_util_right_quarter_turn_5_tiles_paint_2( + TrackPaintUtilRightQuarterTurn5TilesPaint2( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], frontImageIds); switch (trackSequence) @@ -1093,11 +1093,11 @@ static void dinghy_slide_track_right_quarter_turn_3( }, }; - track_paint_util_right_quarter_turn_3_tiles_paint_3( + TrackPaintUtilRightQuarterTurn3TilesPaint3( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); - track_paint_util_right_quarter_turn_3_tiles_paint_3( + TrackPaintUtilRightQuarterTurn3TilesPaint3( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], frontImageIds); - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0); switch (trackSequence) { @@ -1150,7 +1150,7 @@ static void dinghy_slide_track_flat_covered( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1179,7 +1179,7 @@ static void dinghy_slide_track_25_deg_up_covered( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 50 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1215,7 +1215,7 @@ static void dinghy_slide_track_60_deg_up_covered( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 98 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1251,7 +1251,7 @@ static void dinghy_slide_track_flat_to_25_deg_up_covered( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 42 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1287,7 +1287,7 @@ static void dinghy_slide_track_25_deg_up_to_60_deg_up_covered( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1323,7 +1323,7 @@ static void dinghy_slide_track_60_deg_up_to_25_deg_up_covered( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1359,7 +1359,7 @@ static void dinghy_slide_track_25_deg_up_to_flat_covered( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -1478,9 +1478,9 @@ static void dinghy_slide_track_right_quarter_turn_5_covered( }, }; - track_paint_util_right_quarter_turn_5_tiles_paint_2( + TrackPaintUtilRightQuarterTurn5TilesPaint2( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); - track_paint_util_right_quarter_turn_5_tiles_paint_2( + TrackPaintUtilRightQuarterTurn5TilesPaint2( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], frontImageIds); switch (trackSequence) @@ -1804,11 +1804,11 @@ static void dinghy_slide_track_right_quarter_turn_3_covered( }, }; - track_paint_util_right_quarter_turn_3_tiles_paint_3( + TrackPaintUtilRightQuarterTurn3TilesPaint3( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); - track_paint_util_right_quarter_turn_3_tiles_paint_3( + TrackPaintUtilRightQuarterTurn3TilesPaint3( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], frontImageIds); - track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0); + TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0); switch (trackSequence) { @@ -1851,7 +1851,7 @@ static void dinghy_slide_track_60_deg_down_to_25_deg_down_covered( dinghy_slide_track_25_deg_up_to_60_deg_up_covered(session, ride, trackSequence, (direction + 2) & 3, height, trackElement); } -TRACK_PAINT_FUNCTION get_track_paint_function_dinghy_slide(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionDinghySlide(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/water/LogFlume.cpp b/src/openrct2/ride/water/LogFlume.cpp index 0f043bba95..ad999e4baa 100644 --- a/src/openrct2/ride/water/LogFlume.cpp +++ b/src/openrct2/ride/water/LogFlume.cpp @@ -171,7 +171,7 @@ static void paint_log_flume_track_flat( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 2 }, { 0, 6, height }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 26 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -210,7 +210,7 @@ static void paint_log_flume_track_station( MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 8, 0, height, session.TrackColours[SCHEME_SUPPORTS]); } - track_paint_util_draw_station_3(session, ride, direction, height + 2, height, trackElement); + TrackPaintUtilDrawStation3(session, ride, direction, height + 2, height, trackElement); // Covers shouldn't be offset by +2 PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -236,7 +236,7 @@ static void paint_log_flume_track_25_deg_up( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 2 }, { 0, 6, height }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 50 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -271,7 +271,7 @@ static void paint_log_flume_track_flat_to_25_deg_up( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 2 }, { 0, 6, height }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 42 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -306,7 +306,7 @@ static void paint_log_flume_track_25_deg_up_to_flat( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 2 }, { 0, 6, height }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -341,7 +341,7 @@ static void paint_log_flume_track_25_deg_down( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 2 }, { 0, 6, height }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 50 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -376,7 +376,7 @@ static void paint_log_flume_track_flat_to_25_deg_down( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 2 }, { 0, 6, height }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 34 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -411,7 +411,7 @@ static void paint_log_flume_track_25_deg_down_to_flat( PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 2 }, { 0, 6, height }); PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 42 }, { 0, 27, height }); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -671,9 +671,9 @@ static void paint_log_flume_track_left_quarter_turn_3_tiles( }, }; - track_paint_util_left_quarter_turn_3_tiles_paint( + TrackPaintUtilLeftQuarterTurn3TilesPaint( session, 2, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); - track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset( + TrackPaintUtilLeftQuarterTurn3TilesPaintWithHeightOffset( session, 0, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIdsFront, 27); if (trackSequence != 1 && trackSequence != 2) @@ -750,9 +750,9 @@ static void paint_log_flume_track_right_quarter_turn_3_tiles( }, }; - track_paint_util_right_quarter_turn_3_tiles_paint_2( + TrackPaintUtilRightQuarterTurn3TilesPaint2( session, 2, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds); - track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset( + TrackPaintUtilRightQuarterTurn3TilesPaint2WithHeightOffset( session, 0, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIdsFront, 27); if (trackSequence != 1 && trackSequence != 2) @@ -818,7 +818,7 @@ static void paint_log_flume_track_on_ride_photo( imageId = session.TrackColours[SCHEME_TRACK].WithIndex(LogFlumeTrackFlatImageIds[direction][1]); PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 21 }, { 0, 27, height + 5 }); - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); @@ -871,7 +871,7 @@ static void log_flume_track_25_down_60( if (direction == 1 || direction == 2) { - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -880,7 +880,7 @@ static void log_flume_track_25_down_60( } else { - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height + 12, session.TrackColours[SCHEME_SUPPORTS]); } @@ -911,7 +911,7 @@ static void log_flume_track_60_down( if (direction == 1 || direction == 2) { - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -920,7 +920,7 @@ static void log_flume_track_60_down( } else { - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height + 12, session.TrackColours[SCHEME_SUPPORTS]); } @@ -953,7 +953,7 @@ static void log_flume_track_60_down_25( { PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_1); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]); } @@ -962,7 +962,7 @@ static void log_flume_track_60_down_25( { PaintUtilPushTunnelRotated(session, direction, height + 24, TUNNEL_SQUARE_FLAT); - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height + 8, session.TrackColours[SCHEME_SUPPORTS]); } @@ -972,7 +972,7 @@ static void log_flume_track_60_down_25( PaintUtilSetGeneralSupportHeight(session, height + 56, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_log_flume(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionLogFlume(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/water/RiverRapids.cpp b/src/openrct2/ride/water/RiverRapids.cpp index 203b76a56d..189db2fff1 100644 --- a/src/openrct2/ride/water/RiverRapids.cpp +++ b/src/openrct2/ride/water/RiverRapids.cpp @@ -316,7 +316,7 @@ static void paint_river_rapids_station( const TrackElement& trackElement) { paint_river_rapids_track_flat(session, ride, trackSequence, direction, height, trackElement); - track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 12, trackElement); + TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 12, trackElement); PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20); } @@ -778,7 +778,7 @@ static void paint_river_rapids_track_on_ride_photo( const TrackElement& trackElement) { paint_river_rapids_track_flat(session, ride, trackSequence, direction, height, trackElement); - track_paint_util_onride_photo_paint(session, direction, height + 13, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 13, trackElement); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); } @@ -846,7 +846,7 @@ static void paint_river_rapids_track_whirlpool( /** * rct2: 0x0075745C **/ -TRACK_PAINT_FUNCTION get_track_paint_function_river_rapids(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionRiverRapids(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/water/SplashBoats.cpp b/src/openrct2/ride/water/SplashBoats.cpp index 4266afa710..ccbb50a035 100644 --- a/src/openrct2/ride/water/SplashBoats.cpp +++ b/src/openrct2/ride/water/SplashBoats.cpp @@ -790,7 +790,7 @@ static void paint_splash_boats_station( WoodenASupportsPaintSetup(session, (direction & 1), 0, height, session.TrackColours[SCHEME_SUPPORTS]); - track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 7, trackElement); + TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 7, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); @@ -803,9 +803,9 @@ static void paint_splash_boats_track_left_quarter_turn_5_tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_right_quarter_turn_5_tiles_paint_2( + TrackPaintUtilRightQuarterTurn5TilesPaint2( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], RiverRaftsLeftQuarterTurn5_Top); - track_paint_util_right_quarter_turn_5_tiles_paint_2( + TrackPaintUtilRightQuarterTurn5TilesPaint2( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], RiverRaftsLeftQuarterTurn5_Side); if (trackSequence != 1 && trackSequence != 4) @@ -882,9 +882,9 @@ static void paint_splash_boats_track_right_quarter_turn_5_tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_right_quarter_turn_5_tiles_paint_2( + TrackPaintUtilRightQuarterTurn5TilesPaint2( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], RiverRaftsRightQuarterTurn5_Top); - track_paint_util_right_quarter_turn_5_tiles_paint_2( + TrackPaintUtilRightQuarterTurn5TilesPaint2( session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], RiverRaftsRightQuarterTurn5_Side); if (trackSequence != 1 && trackSequence != 4) @@ -1182,13 +1182,13 @@ static void paint_splash_boats_track_on_ride_photo( paint_splash_boats_track_flat(session, ride, trackSequence, direction, height, trackElement); - track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement); + TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement); PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT); PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0); PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20); } -TRACK_PAINT_FUNCTION get_track_paint_function_splash_boats(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSplashBoats(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/water/SubmarineRide.cpp b/src/openrct2/ride/water/SubmarineRide.cpp index 362dd5e421..1b6ba72048 100644 --- a/src/openrct2/ride/water/SubmarineRide.cpp +++ b/src/openrct2/ride/water/SubmarineRide.cpp @@ -77,7 +77,7 @@ static void submarine_ride_paint_track_station( PaintAddImageAsParent(session, imageId, { 0, 0, heightLower }, { 20, 32, 3 }, { 6, 0, heightLower }); PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT); - track_paint_util_draw_pier( + TrackPaintUtilDrawPier( session, ride, stationObj, session.MapPosition, direction, height, trackElement, session.CurrentRotation); } else @@ -86,7 +86,7 @@ static void submarine_ride_paint_track_station( PaintAddImageAsParent(session, imageId, { 0, 0, heightLower }, { 32, 20, 3 }, { 0, 6, heightLower }); PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT); - track_paint_util_draw_pier( + TrackPaintUtilDrawPier( session, ride, stationObj, session.MapPosition, direction, height, trackElement, session.CurrentRotation); } @@ -114,7 +114,7 @@ static void submarine_ride_paint_track_flat( PaintUtilPushTunnelLeft(session, heightLower, TUNNEL_0); } - if (track_paint_util_should_paint_supports(session.MapPosition)) + if (TrackPaintUtilShouldPaintSupports(session.MapPosition)) { MetalASupportsPaintSetup( session, (direction & 1) ? METAL_SUPPORTS_STICK_ALT : METAL_SUPPORTS_STICK, 4, -1, heightLower, @@ -130,10 +130,10 @@ static void submarine_ride_paint_track_left_quarter_turn_3_tiles( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_left_quarter_turn_3_tiles_paint( + TrackPaintUtilLeftQuarterTurn3TilesPaint( session, 3, height - 16, direction, trackSequence, session.TrackColours[SCHEME_TRACK], trackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles); - track_paint_util_left_quarter_turn_3_tiles_tunnel(session, height - 16, TUNNEL_0, direction, trackSequence); + TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height - 16, TUNNEL_0, direction, trackSequence); switch (trackSequence) { @@ -175,10 +175,10 @@ static void submarine_ride_paint_track_left_quarter_turn_1_tile( PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height, const TrackElement& trackElement) { - track_paint_util_left_quarter_turn_1_tile_paint( + TrackPaintUtilLeftQuarterTurn1TilePaint( session, 1, height - 16, 0, direction, session.TrackColours[SCHEME_TRACK], trackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile); - track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height - 16, 0, TUNNEL_0, 0, TUNNEL_0); + TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height - 16, 0, TUNNEL_0, 0, TUNNEL_0); PaintUtilSetSegmentSupportHeight( session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D0, direction), 0xFFFF, 0); @@ -196,7 +196,7 @@ static void submarine_ride_paint_track_right_quarter_turn_1_tile( /** * rct2: 0x008995D4 */ -TRACK_PAINT_FUNCTION get_track_paint_function_submarine_ride(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionSubmarineRide(int32_t trackType) { switch (trackType) { diff --git a/src/openrct2/ride/water/WaterCoaster.cpp b/src/openrct2/ride/water/WaterCoaster.cpp index 2f20fa6dfa..05e2e0268f 100644 --- a/src/openrct2/ride/water/WaterCoaster.cpp +++ b/src/openrct2/ride/water/WaterCoaster.cpp @@ -322,7 +322,7 @@ static void water_rc_track_diag_60_deg_down_to_25_deg_down( session, ride, trackSequence, direction, height, trackElement, JuniorRcChainType::None); } -TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(int32_t trackType) +TRACK_PAINT_FUNCTION GetTrackPaintFunctionWaterRc(int32_t trackType) { switch (trackType) { @@ -465,36 +465,36 @@ TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(int32_t trackType) case TrackElemType::DiagRightBank: case TrackElemType::BlockBrakes: case TrackElemType::Booster: - return get_track_paint_function_junior_rc(trackType); + return GetTrackPaintFunctionJuniorRc(trackType); ////////////////////////////////////////////////////// // Use River Rafts ////////////////////////////////////////////////////// case TrackElemType::FlatCovered: - return get_track_paint_function_splash_boats(TrackElemType::Flat); + return GetTrackPaintFunctionSplashBoats(TrackElemType::Flat); case TrackElemType::LeftQuarterTurn5TilesCovered: - return get_track_paint_function_splash_boats(TrackElemType::LeftQuarterTurn5Tiles); + return GetTrackPaintFunctionSplashBoats(TrackElemType::LeftQuarterTurn5Tiles); case TrackElemType::RightQuarterTurn5TilesCovered: - return get_track_paint_function_splash_boats(TrackElemType::RightQuarterTurn5Tiles); + return GetTrackPaintFunctionSplashBoats(TrackElemType::RightQuarterTurn5Tiles); case TrackElemType::SBendLeftCovered: - return get_track_paint_function_splash_boats(TrackElemType::SBendLeft); + return GetTrackPaintFunctionSplashBoats(TrackElemType::SBendLeft); case TrackElemType::SBendRightCovered: - return get_track_paint_function_splash_boats(TrackElemType::SBendRight); + return GetTrackPaintFunctionSplashBoats(TrackElemType::SBendRight); case TrackElemType::FlatToDown25Covered: - return get_track_paint_function_splash_boats(TrackElemType::FlatToDown25); + return GetTrackPaintFunctionSplashBoats(TrackElemType::FlatToDown25); case TrackElemType::Down25Covered: - return get_track_paint_function_splash_boats(TrackElemType::Down25); + return GetTrackPaintFunctionSplashBoats(TrackElemType::Down25); case TrackElemType::Down25ToDown60Covered: - return get_track_paint_function_splash_boats(TrackElemType::Down25ToDown60); + return GetTrackPaintFunctionSplashBoats(TrackElemType::Down25ToDown60); case TrackElemType::Down60Covered: - return get_track_paint_function_splash_boats(TrackElemType::Down60); + return GetTrackPaintFunctionSplashBoats(TrackElemType::Down60); case TrackElemType::Down60ToDown25Covered: - return get_track_paint_function_splash_boats(TrackElemType::Down60ToDown25); + return GetTrackPaintFunctionSplashBoats(TrackElemType::Down60ToDown25); case TrackElemType::Down25ToFlatCovered: - return get_track_paint_function_splash_boats(TrackElemType::Down25ToFlat); + return GetTrackPaintFunctionSplashBoats(TrackElemType::Down25ToFlat); case TrackElemType::OnRidePhoto: - return get_track_paint_function_junior_rc(trackType); + return GetTrackPaintFunctionJuniorRc(trackType); } return nullptr; } diff --git a/src/openrct2/ride/water/meta/BoatHire.h b/src/openrct2/ride/water/meta/BoatHire.h index 35fb669f7e..65f2ea10df 100644 --- a/src/openrct2/ride/water/meta/BoatHire.h +++ b/src/openrct2/ride/water/meta/BoatHire.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor BoatHireRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_boat_hire), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionBoatHire), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAG_TRACK_MUST_BE_ON_WATER | RIDE_TYPE_FLAG_NO_TEST_MODE | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_CHECK_FOR_STALLING | RIDE_TYPE_FLAG_HAS_TRACK | RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR | RIDE_TYPE_FLAG_ALLOW_MUSIC | RIDE_TYPE_FLAG_HAS_ENTRANCE_EXIT), @@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor BoatHireRTD = SET_FIELD(Heights, { 255, 16, 0, 3, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_boat_hire), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateBoatHire), SET_FIELD(RatingsMultipliers, { 70, 6, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 4, 0, 0 }), SET_FIELD(BuildCosts, { 27.50_GBP, 0.00_GBP, 5, }), diff --git a/src/openrct2/ride/water/meta/DinghySlide.h b/src/openrct2/ride/water/meta/DinghySlide.h index 99512c86f4..7fe5100a9b 100644 --- a/src/openrct2/ride/water/meta/DinghySlide.h +++ b/src/openrct2/ride/water/meta/DinghySlide.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor DinghySlideRTD = SET_FIELD(ExtraTrackPieces,{}), SET_FIELD(CoveredTrackPieces, {TrackElemType::Flat, TrackElemType::Up25, TrackElemType::Up60, TrackElemType::FlatToUp25, TrackElemType::Up25ToUp60, TrackElemType::Up60ToUp25, TrackElemType::Up25ToFlat, TrackElemType::Down25, TrackElemType::Down60, TrackElemType::FlatToDown25, TrackElemType::Down25ToDown60, TrackElemType::Down60ToDown25, TrackElemType::Down25ToFlat, TrackElemType::LeftQuarterTurn5Tiles, TrackElemType::RightQuarterTurn5Tiles, TrackElemType::SBendLeft, TrackElemType::SBendRight, TrackElemType::LeftQuarterTurn3Tiles,TrackElemType::RightQuarterTurn3Tiles}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_dinghy_slide), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionDinghySlide), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS | RIDE_TYPE_FLAG_HAS_G_FORCES | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_DROPS | RIDE_TYPE_FLAG_TRACK_ELEMENTS_HAVE_TWO_VARIETIES | @@ -41,7 +41,7 @@ constexpr const RideTypeDescriptor DinghySlideRTD = SET_FIELD(Heights, { 15, 24, 5, 7, }), SET_FIELD(MaxMass, 5), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_dinghy_slide), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateDinghySlide), SET_FIELD(RatingsMultipliers, { 50, 30, 10 }), SET_FIELD(UpkeepCosts, { 40, 20, 80, 4, 3, 10 }), SET_FIELD(BuildCosts, { 20.00_GBP, 2.00_GBP, 40, }), diff --git a/src/openrct2/ride/water/meta/LogFlume.h b/src/openrct2/ride/water/meta/LogFlume.h index c0d81577d0..fa735ee7f2 100644 --- a/src/openrct2/ride/water/meta/LogFlume.h +++ b/src/openrct2/ride/water/meta/LogFlume.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor LogFlumeRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_log_flume), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionLogFlume), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_DROPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_HAS_TRACK | @@ -40,7 +40,7 @@ constexpr const RideTypeDescriptor LogFlumeRTD = SET_FIELD(Heights, { 10, 24, 7, 9, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_log_flume), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLogFlume), SET_FIELD(RatingsMultipliers, { 80, 34, 6 }), SET_FIELD(UpkeepCosts, { 80, 20, 0, 9, 0, 10 }), SET_FIELD(BuildCosts, { 22.50_GBP, 2.50_GBP, 40, }), diff --git a/src/openrct2/ride/water/meta/RiverRafts.h b/src/openrct2/ride/water/meta/RiverRafts.h index fc0e02d9a0..deb43198e5 100644 --- a/src/openrct2/ride/water/meta/RiverRafts.h +++ b/src/openrct2/ride/water/meta/RiverRafts.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor RiverRaftsRTD = SET_FIELD(ExtraTrackPieces, {TRACK_SLOPE, TRACK_SLOPE_STEEP_DOWN, TRACK_ON_RIDE_PHOTO}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_splash_boats), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSplashBoats), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | @@ -40,7 +40,7 @@ constexpr const RideTypeDescriptor RiverRaftsRTD = SET_FIELD(Heights, { 12, 24, 7, 11, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_river_rafts), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateRiverRafts), SET_FIELD(RatingsMultipliers, { 80, 34, 6 }), SET_FIELD(UpkeepCosts, { 50, 20, 0, 9, 0, 10 }), SET_FIELD(BuildCosts, { 20.00_GBP, 2.50_GBP, 30, }), diff --git a/src/openrct2/ride/water/meta/RiverRapids.h b/src/openrct2/ride/water/meta/RiverRapids.h index 2d5144eb4e..a0121a0ddb 100644 --- a/src/openrct2/ride/water/meta/RiverRapids.h +++ b/src/openrct2/ride/water/meta/RiverRapids.h @@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor RiverRapidsRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_river_rapids), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionRiverRapids), SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_DROPS | @@ -41,7 +41,7 @@ constexpr const RideTypeDescriptor RiverRapidsRTD = SET_FIELD(Heights, { 9, 32, 14, 15, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_river_rapids), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateRiverRapids), SET_FIELD(RatingsMultipliers, { 72, 26, 6 }), SET_FIELD(UpkeepCosts, { 82, 20, 0, 10, 0, 10 }), SET_FIELD(BuildCosts, { 31.00_GBP, 3.00_GBP, 40, }), diff --git a/src/openrct2/ride/water/meta/SplashBoats.h b/src/openrct2/ride/water/meta/SplashBoats.h index 781617e903..890ba4d39d 100644 --- a/src/openrct2/ride/water/meta/SplashBoats.h +++ b/src/openrct2/ride/water/meta/SplashBoats.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor SplashBoatsRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_splash_boats), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSplashBoats), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_CAN_SYNCHRONISE_ADJACENT_STATIONS | RIDE_TYPE_FLAG_HAS_DATA_LOGGING | RIDE_TYPE_FLAG_HAS_DROPS | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | @@ -41,7 +41,7 @@ constexpr const RideTypeDescriptor SplashBoatsRTD = SET_FIELD(Heights, { 16, 24, 7, 11, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_splash_boats), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSplashBoats), SET_FIELD(RatingsMultipliers, { 80, 34, 6 }), SET_FIELD(UpkeepCosts, { 70, 20, 0, 9, 0, 10 }), SET_FIELD(BuildCosts, { 28.50_GBP, 2.50_GBP, 30, }), diff --git a/src/openrct2/ride/water/meta/SubmarineRide.h b/src/openrct2/ride/water/meta/SubmarineRide.h index b8a0cb76bf..6f497abbd7 100644 --- a/src/openrct2/ride/water/meta/SubmarineRide.h +++ b/src/openrct2/ride/water/meta/SubmarineRide.h @@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor SubmarineRideRTD = SET_FIELD(ExtraTrackPieces, {}), SET_FIELD(CoveredTrackPieces, {}), SET_FIELD(StartTrackPiece, TrackElemType::EndStation), - SET_FIELD(TrackPaintFunction, get_track_paint_function_submarine_ride), + SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSubmarineRide), SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_TRACK_MUST_BE_ON_WATER | RIDE_TYPE_FLAG_HAS_LOAD_OPTIONS | RIDE_TYPE_FLAG_PEEP_WILL_RIDE_AGAIN | RIDE_TYPE_FLAG_HAS_VEHICLE_COLOURS | RIDE_TYPE_FLAG_HAS_TRACK | RIDE_TYPE_FLAG_SUPPORTS_MULTIPLE_TRACK_COLOUR | @@ -40,7 +40,7 @@ constexpr const RideTypeDescriptor SubmarineRideRTD = SET_FIELD(Heights, { 255, 16, 0, 3, }), SET_FIELD(MaxMass, 255), SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }), - SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_submarine_ride), + SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSubmarineRide), SET_FIELD(RatingsMultipliers, { 70, 6, 0 }), SET_FIELD(UpkeepCosts, { 50, 1, 0, 4, 0, 0 }), SET_FIELD(BuildCosts, { 35.00_GBP, 2.50_GBP, 5, }),