Class: SpaceInvaders::Base
- Inherits:
-
Object
- Object
- SpaceInvaders::Base
- Defined in:
- lib/space_invaders/base.rb
Direct Known Subclasses
Block, Bullet, ButtonController, DrownedShipAnimator, GameOverScreen, GameStatus, Images, Invader, InvaderRow, InvadersContainer, LivesTracker, NextLevelScreen, ScoreTracker, Ship, Sounds, UBlock, UBlockContainer, WelcomeScreen
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #game_status ⇒ Object
-
#initialize(app) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(app) ⇒ Base
Returns a new instance of Base.
5 6 7 |
# File 'lib/space_invaders/base.rb', line 5 def initialize app @app = app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
3 4 5 |
# File 'lib/space_invaders/base.rb', line 3 def app @app end |
Instance Method Details
#game_status ⇒ Object
9 10 11 |
# File 'lib/space_invaders/base.rb', line 9 def game_status app.game_status end |