Class: Ride

Ride

Ride Class Each ride object represents one ride at a theme park. This object will hold the ride's current state.

new Ride(options)

Create a new Ride object
Parameters:
Name Type Description
options Object
Properties
Name Type Description
rideId String Ride's Unique ID

Members


Active :Boolean

Is this ride currently running?
Type:
  • Boolean

FastPass :Boolean

Set this ride's fast pass availability
Type:
  • Boolean

FastPass :Boolean

Get this ride's fast pass availability
Type:
  • Boolean

LastUpdate :Number

Get this ride's last wait time update time. Note: Can be undefined
Type:
  • Number

Name :String

Get this ride's name Note: Will attempt to return in English, but will fallback to park's local locale if English isn't available
Type:
  • String

Status :String

String status for this ride Can only ever be either "Operating", "Down", "Closed", or "Refurbishment"
Type:
  • String

WaitTime :Number

Set this ride's wait time Set to -1 when ride is Closed Set to -2 when ride is Down Set to -3 when ride is under Refurbishment
Type:
  • Number

WaitTime :Number

Get this ride's current wait time. Will always be >= 0. Use .Active to determine ride's open status
Type:
  • Number

Methods


AddCustomProperty(name, value)

Add a custom property to this ride (eg. a thrill rating, or a custom setting a specific park implements)
Parameters:
Name Type Description
name String Name (field) of property to add to this ride
value object Value of property
Returns:
Returns true if adding the property changed the object, false if there was no change
Type
Boolean

fromJSON(input)

Parse a JSON object and update this ride object's state
Parameters:
Name Type Description
input Object

toJSON()

Serialize this object (automatically called by JSON.stringify etc.)
Returns:
Current ride state
Type
Object