Class: GamesAndRpgParadise::Brick
- Inherits:
-
Object
- Object
- GamesAndRpgParadise::Brick
- Defined in:
- lib/games_and_rpg_paradise/gui/gosu/battle_city/brick.rb
Overview
GamesAndRpgParadise::Brick
Instance Attribute Summary collapse
-
#exist ⇒ Object
Returns the value of attribute exist.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
-
#brick? ⇒ Boolean
(also: #brick)
# === brick? =========================================================================== #.
-
#initialize ⇒ Brick
constructor
# === initialize =========================================================================== #.
-
#reset ⇒ Object
# === reset =========================================================================== #.
Constructor Details
#initialize ⇒ Brick
#
initialize
#
16 17 18 19 20 21 22 |
# File 'lib/games_and_rpg_paradise/gui/gosu/battle_city/brick.rb', line 16 def initialize # ========================================================================= # # All bricks are 40px by 40px. # ========================================================================= # @brick = ::Gosu::Image.new('media/brick.png') reset end |
Instance Attribute Details
#exist ⇒ Object
Returns the value of attribute exist.
11 12 13 |
# File 'lib/games_and_rpg_paradise/gui/gosu/battle_city/brick.rb', line 11 def exist @exist end |
#x ⇒ Object
Returns the value of attribute x.
9 10 11 |
# File 'lib/games_and_rpg_paradise/gui/gosu/battle_city/brick.rb', line 9 def x @x end |
#y ⇒ Object
Returns the value of attribute y.
10 11 12 |
# File 'lib/games_and_rpg_paradise/gui/gosu/battle_city/brick.rb', line 10 def y @y end |
Instance Method Details
#brick? ⇒ Boolean Also known as: brick
#
brick?
#
34 35 36 |
# File 'lib/games_and_rpg_paradise/gui/gosu/battle_city/brick.rb', line 34 def brick? @brick end |
#reset ⇒ Object
#
reset
#
27 28 29 |
# File 'lib/games_and_rpg_paradise/gui/gosu/battle_city/brick.rb', line 27 def reset @exist = true end |