Class: GamesAndRpgParadise::MainWindow

Inherits:
Gosu::Window show all
Defined in:
lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb

Instance Method Summary collapse

Methods inherited from Gosu::Window

#gosu_button_down?, #image, #image10?, #image1?, #image2?, #image3?, #image4?, #image5?, #image6?, #image7?, #image8?, #image9?, #on_left_arrow_pressed?, #on_right_arrow_pressed?, #q_means_quit, #reset, #set_font, #set_title, #sqrt, #tab_key?, #write_this_text

Constructor Details

#initializeMainWindow

initialize



13
14
15
16
17
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 13

def initialize
  Window << super(800,608,nil,40)
  self.caption = 'KBookPages'
  @scene = SceneKBookPages.new(1)
end

Instance Method Details

#button_down(id) ⇒ Object

button_down



19
20
21
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 19

def button_down(id)
  @scene.button_down(id)
end

#button_down?(id) ⇒ Boolean

Returns:

  • (Boolean)


23
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 23

def button_down?(id) @scene.button_down?(id) end

#button_up(id) ⇒ Object



22
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 22

def button_up(id) @scene.button_up(id) end

#drawObject



28
29
30
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 28

def draw
  @scene.draw
end

#updateObject

update



25
26
27
# File 'lib/games_and_rpg_paradise/gui/gosu/books/main_window.rb', line 25

def update
  @scene.update
end