Class: GamesParadise::GUI::Gtk::Walls
- Inherits:
-
Array
- Object
- Array
- GamesParadise::GUI::Gtk::Walls
- Defined in:
- lib/games_paradise/gui/gtk3/block/walls.rb
Instance Method Summary collapse
-
#draw ⇒ Object
# === draw ========================================================================= #.
-
#initialize(use_this_colour_for_the_wall = :WHITE) ⇒ Walls
constructor
# === initialize ========================================================================= #.
-
#reset ⇒ Object
# === reset ========================================================================= #.
Constructor Details
#initialize(use_this_colour_for_the_wall = :WHITE) ⇒ Walls
#
initialize
#
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/games_paradise/gui/gtk3/block/walls.rb', line 20 def initialize( use_this_colour_for_the_wall = :WHITE ) # ======================================================================= # # Add three walls. # ======================================================================= # self << Wall.new( 0, 0, 20, 480, use_this_colour_for_the_wall) self << Wall.new( 0, 0, 640, 20, use_this_colour_for_the_wall) self << Wall.new(620, 0, 20, 480, use_this_colour_for_the_wall) reset end |
Instance Method Details
#draw ⇒ Object
#
draw
#
46 47 48 49 50 |
# File 'lib/games_paradise/gui/gtk3/block/walls.rb', line 46 def draw each { |wall| wall.draw } end |
#reset ⇒ Object
#
reset
#
35 36 37 38 39 40 41 |
# File 'lib/games_paradise/gui/gtk3/block/walls.rb', line 35 def reset # reset_the_internal_variables # ======================================================================= # # === @configuration # ======================================================================= # @configuration = [true, __dir__, inspect] end |