2014-05-23 11:14:52 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* Copyright (c) 2014 Kevin Burke
|
|
|
|
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
|
|
|
*
|
|
|
|
* This file is part of OpenRCT2.
|
|
|
|
*
|
|
|
|
* OpenRCT2 is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2015-10-20 20:16:30 +02:00
|
|
|
|
2014-05-23 11:14:52 +02:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2015-10-20 20:16:30 +02:00
|
|
|
|
2014-05-23 11:14:52 +02:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2014-05-24 15:31:42 +02:00
|
|
|
#ifndef _RIDE_DATA_H_
|
|
|
|
#define _RIDE_DATA_H_
|
|
|
|
|
2014-10-06 18:36:58 +02:00
|
|
|
#include "../common.h"
|
2015-08-05 02:24:18 +02:00
|
|
|
#include "ride.h"
|
2014-09-01 13:04:34 +02:00
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
rct_string_id vehicle_name;
|
|
|
|
rct_string_id structure_name;
|
|
|
|
rct_string_id station_name;
|
|
|
|
rct_string_id unk_name;
|
|
|
|
} rct_ride_name_convention;
|
2014-05-23 14:18:58 +02:00
|
|
|
|
2015-03-18 20:52:27 +01:00
|
|
|
typedef struct {
|
2015-08-05 02:24:18 +02:00
|
|
|
uint32 sprite_index;
|
2015-03-18 20:52:27 +01:00
|
|
|
uint16 height;
|
2015-08-05 02:24:18 +02:00
|
|
|
uint16 scrolling_mode;
|
|
|
|
rct_string_id string_id;
|
|
|
|
uint32 flags;
|
|
|
|
uint16 colour_use_flags;
|
2015-03-18 20:52:27 +01:00
|
|
|
} rct_ride_entrance_definition;
|
|
|
|
|
2015-08-05 20:17:37 +02:00
|
|
|
typedef struct {
|
|
|
|
rct_string_id singular; // Balloon
|
|
|
|
rct_string_id plural; // Balloons
|
|
|
|
rct_string_id indefinite; // a Balloon
|
|
|
|
rct_string_id display; // "Diamond Heights" Balloon
|
|
|
|
} rct_shop_item_string_types;
|
|
|
|
|
2015-09-10 23:16:41 +02:00
|
|
|
typedef struct {
|
|
|
|
uint16 flags;
|
|
|
|
uint8 default_music;
|
|
|
|
uint8 var_3;
|
|
|
|
uint8 pad[4];
|
|
|
|
} rct_ride_data_4;
|
|
|
|
|
|
|
|
enum {
|
|
|
|
RIDE_TYPE_FLAG4_0 = (1 << 0),
|
|
|
|
RIDE_TYPE_FLAG4_MUSIC_ON_DEFAULT = (1 << 1),
|
|
|
|
RIDE_TYPE_FLAG4_ALLOW_MUSIC = (1 << 2),
|
|
|
|
RIDE_TYPE_FLAG4_3 = (1 << 3),
|
|
|
|
RIDE_TYPE_FLAG4_PEEP_CHECK_GFORCES = (1 << 4),
|
|
|
|
RIDE_TYPE_FLAG4_HAS_ENTRANCE_EXIT = (1 << 5),
|
|
|
|
RIDE_TYPE_FLAG4_6 = (1 << 6),
|
|
|
|
RIDE_TYPE_FLAG4_HAS_AIR_TIME = (1 << 7),
|
|
|
|
RIDE_TYPE_FLAG4_SINGLE_SESSION = (1 << 8),
|
|
|
|
RIDE_TYPE_FLAG4_ALLOW_MULTIPLE_CIRCUITS = (1 << 9),
|
|
|
|
RIDE_TYPE_FLAG4_10 = (1 << 10),
|
|
|
|
RIDE_TYPE_FLAG4_11 = (1 << 11),
|
|
|
|
RIDE_TYPE_FLAG4_TRANSPORT_RIDE = (1 << 12),
|
|
|
|
RIDE_TYPE_FLAG4_13 = (1 << 13),
|
|
|
|
RIDE_TYPE_FLAG4_14 = (1 << 14),
|
|
|
|
RIDE_TYPE_FLAG4_15 = (1 << 15),
|
|
|
|
};
|
|
|
|
|
2014-05-24 15:31:42 +02:00
|
|
|
extern const bool hasRunningTrack[0x60];
|
2014-05-23 14:37:52 +02:00
|
|
|
extern const uint8 initialUpkeepCosts[0x60];
|
|
|
|
extern const uint8 costPerTrackPiece[0x60];
|
2014-05-23 13:57:50 +02:00
|
|
|
|
2014-05-23 14:37:52 +02:00
|
|
|
extern const uint8 rideUnknownData1[0x60];
|
|
|
|
extern const bool rideUnknownData2[0x60];
|
|
|
|
extern const uint8 rideUnknownData3[0x60];
|
2014-05-24 15:31:42 +02:00
|
|
|
|
2014-09-01 13:04:34 +02:00
|
|
|
extern const rct_ride_name_convention RideNameConvention[96];
|
2014-09-09 18:17:08 +02:00
|
|
|
extern const uint8 RideAvailableModes[];
|
2015-09-18 10:54:48 +02:00
|
|
|
extern const uint8 AllRideModesAvailable[];
|
2014-11-01 23:21:28 +01:00
|
|
|
extern const uint8 RideAvailableBreakdowns[];
|
2014-09-01 13:04:34 +02:00
|
|
|
|
2015-08-05 02:24:18 +02:00
|
|
|
extern const rct_ride_entrance_definition RideEntranceDefinitions[RIDE_ENTRANCE_STYLE_COUNT];
|
2015-04-11 17:59:44 +02:00
|
|
|
extern const uint8 RideLiftHillAdjustments[0x60];
|
2015-03-18 20:52:27 +01:00
|
|
|
|
2015-09-10 23:16:41 +02:00
|
|
|
extern const rct_ride_data_4 RideData4[91];
|
|
|
|
|
2015-08-04 03:08:39 +02:00
|
|
|
extern const money8 DefaultShopItemPrice[SHOP_ITEM_COUNT];
|
2015-08-05 20:17:37 +02:00
|
|
|
extern const rct_shop_item_string_types ShopItemStringIds[SHOP_ITEM_COUNT];
|
|
|
|
extern const uint32 ShopItemImage[SHOP_ITEM_COUNT];
|
2015-08-04 03:08:39 +02:00
|
|
|
|
2015-10-18 15:01:16 +02:00
|
|
|
extern const rct_ride_type_vehicle CableLiftVehicle;
|
|
|
|
|
2015-04-10 08:24:33 +02:00
|
|
|
#endif
|