class GameState

class GameState

Public Class Methods

switch(new_state) click to toggle source
# File lib/gamestates/game_state.rb, line 3
def self.switch(new_state)
  $window.state && $window.state.leave
  $window.state = new_state
  new_state.enter
end

Public Instance Methods

button_down(_id) click to toggle source
# File lib/gamestates/game_state.rb, line 25
def button_down(_id)
end
draw() click to toggle source
# File lib/gamestates/game_state.rb, line 15
def draw
end
enter() click to toggle source
# File lib/gamestates/game_state.rb, line 9
def enter
end
leave() click to toggle source
# File lib/gamestates/game_state.rb, line 12
def leave
end
needs_redraw?() click to toggle source
# File lib/gamestates/game_state.rb, line 21
def needs_redraw?
  true
end
update() click to toggle source
# File lib/gamestates/game_state.rb, line 18
def update
end