class GameState
Public Class Methods
switch(new_state)
click to toggle source
# File lib/game_states/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
draw()
click to toggle source
# File lib/game_states/game_state.rb, line 15 def draw end
enter()
click to toggle source
# File lib/game_states/game_state.rb, line 9 def enter end
leave()
click to toggle source
# File lib/game_states/game_state.rb, line 12 def leave end
needs_redraw?()
click to toggle source
# File lib/game_states/game_state.rb, line 21 def needs_redraw? true end
update()
click to toggle source
# File lib/game_states/game_state.rb, line 18 def update end