class Asteroids::GameWindow

Attributes

state[RW]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/asteroids.rb, line 6
def initialize
  super(800, 600, false)
  self.caption = 'Asteroids'
end

Public Instance Methods

button_down(id) click to toggle source
# File lib/asteroids.rb, line 23
def button_down(id)
  @state.button_down(id)
end
draw() click to toggle source
# File lib/asteroids.rb, line 15
def draw
  @state.draw
end
needs_redraw?() click to toggle source
# File lib/asteroids.rb, line 19
def needs_redraw?
  @state.needs_redraw?
end
update() click to toggle source
# File lib/asteroids.rb, line 11
def update
  @state.update
end