class

Traffic::Intersection

Inherits GSDL::Entity < GSDL::Tweenable < Reference < Object

Constants

GreenDuration = 28_f32
GreenLeftDuration = 5_f32
RedDuration = 1_f32
YellowDuration = 2_f32

Constructors

new(tile_x : Int32, tile_y : Int32)
Source

Instance methods

clicked?(mx, my)
Source
clicked_any_button?(mx, my) : Bool
Source
draw(draw : GSDL::Draw)
Source
flip
Source
flip_disabled?
Source
input_consumed?
Source
selected=(selected : Bool)
Source
selected?
Source
state
Source
state=(state : IntersectionSignal)
Source
tile_x
Source
tile_y
Source
toggle
Source
update(dt : Float32)
Source
update_auto_signal
Source
update_signal_frames
Source