lift_indicator

A lift indicator aka an elevator hall lantern w/ floor number
Vars | |
current_lift_direction | Positive for going up, negative going down, 0 for stopped |
---|---|
current_lift_floor | The lift's current floor relative to its lowest floor being 1 |
lift_ref | Weakref to the lift. |
linked_elevator_id | What specific_lift_id do we link with? |
lowest_floor_num | The lowest floor number. Determined by lift init. |
Procs | |
on_lift_direction | Update state, and only process if lift is moving. |
set_lift_state | Set the state and update appearance. |
update_operating | Update processing state. |
Var Details
current_lift_direction

Positive for going up, negative going down, 0 for stopped
current_lift_floor

The lift's current floor relative to its lowest floor being 1
lift_ref

Weakref to the lift.
linked_elevator_id

What specific_lift_id do we link with?
lowest_floor_num

The lowest floor number. Determined by lift init.
Proc Details
on_lift_direction
Update state, and only process if lift is moving.
set_lift_state
Set the state and update appearance.
Arguments: new_direction - new arrow state: UP, DOWN, or 0 new_floor - set the floor number, eg. 1, 2, 3 force_update - force appearance to update even if state didn't change.
update_operating
Update processing state.
Returns whether we are still processing.