class GameWindow

Attributes

state[RW]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/misc/game_window.rb, line 4
def initialize
  super((ENV['w'] || 800).to_i,
        (ENV['h'] || 600).to_i,
        (ENV['fs'] ? true : false))
end

Public Instance Methods

button_down(id) click to toggle source
# File lib/misc/game_window.rb, line 27
def button_down(id)
  @state.button_down(id)
end
draw() click to toggle source
# File lib/misc/game_window.rb, line 15
def draw
  @state.draw
end
needs_cursor?() click to toggle source
# File lib/misc/game_window.rb, line 23
def needs_cursor?
  Utils.update_interval > 200
end
needs_redraw?() click to toggle source
# File lib/misc/game_window.rb, line 19
def needs_redraw?
  @state.needs_redraw?
end
update() click to toggle source
# File lib/misc/game_window.rb, line 10
def update
  Utils.track_update_interval
  @state.update
end