Class: Beefdump::Client::Graphical::Window

Inherits:
Gosu::Window
  • Object
show all
Defined in:
lib/beefdump/client/graphical/window.rb

Constant Summary collapse

WIDTH =
640
HEIGHT =
480

Instance Method Summary collapse

Constructor Details

#initialize(client, *args) ⇒ Window

Returns a new instance of Window.



9
10
11
12
# File 'lib/beefdump/client/graphical/window.rb', line 9

def initialize(client, *args)
  super(*args)
  @client = client
end

Instance Method Details

#drawObject



18
19
20
# File 'lib/beefdump/client/graphical/window.rb', line 18

def draw
  @client.draw_window
end

#updateObject



14
15
16
# File 'lib/beefdump/client/graphical/window.rb', line 14

def update
  @client.update_window
end