Train

class Train(name: String, val trackRide: TrackRide, var startPosition: Double = 0.0)(source)

Constructors

Link copied to clipboard
constructor(name: String, trackRide: TrackRide, startPosition: Double = 0.0)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val uuid: UUID
Link copied to clipboard

Functions

Link copied to clipboard
fun addCart(cart: Cart)
Link copied to clipboard
fun addCarts(carts: List<Cart>)
Link copied to clipboard
fun adjustPosition(position: Float): Float
Link copied to clipboard
Link copied to clipboard
fun lerp(start: Double, target: Double, t: Double): Double
fun lerp(start: Float, target: Float, t: Double): Float
Link copied to clipboard
Link copied to clipboard
fun remove()
Link copied to clipboard
fun sounds()
Link copied to clipboard
Link copied to clipboard
fun update()