Lever

class Lever(pos: Coord, dir: Dir)(source)

Represents a lever in the world

Constructors

Link copied to clipboard
constructor(pos: Coord, dir: Dir)

Functions

Link copied to clipboard

A condition that is true when the lever is off

Link copied to clipboard

A condition that is true when the lever is on

Link copied to clipboard
fun setOff(): String

A command that sets the lever to off

Link copied to clipboard
fun setOn(): String

A command that sets the lever to on