Method: Game#initialize
- Defined in:
- lib/delve/game.rb
#initialize(display, screen_manager, input) ⇒ Game
Returns a new instance of Game.
2 3 4 5 6 7 8 9 |
# File 'lib/delve/game.rb', line 2 def initialize(display, screen_manager, input) raise 'Unable to initialize game when display is nil' unless display raise 'Unable to initialize game when screen manager is nil' unless screen_manager raise 'Unable to initalize game when input is nil' unless input @display = display @screen_manager = screen_manager @input = input end |