class Asteroids::GameState

Public Class Methods

switch(new_state) click to toggle source
# File lib/asteroids/states/game_state.rb, line 4
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/asteroids/states/game_state.rb, line 26
def button_down(id)
end
draw() click to toggle source
# File lib/asteroids/states/game_state.rb, line 16
def draw
end
enter() click to toggle source
# File lib/asteroids/states/game_state.rb, line 10
def enter
end
leave() click to toggle source
# File lib/asteroids/states/game_state.rb, line 13
def leave
end
needs_redraw?() click to toggle source
# File lib/asteroids/states/game_state.rb, line 22
def needs_redraw?
  true
end
update() click to toggle source
# File lib/asteroids/states/game_state.rb, line 19
def update
end