Class: Game
Instance Attribute Summary collapse
-
#character ⇒ Object
readonly
Returns the value of attribute character.
-
#map ⇒ Object
Returns the value of attribute map.
-
#map_name ⇒ Object
Returns the value of attribute map_name.
-
#ui ⇒ Object
readonly
Returns the value of attribute ui.
Instance Method Summary collapse
-
#initialize ⇒ Game
constructor
A new instance of Game.
- #run(map_name) ⇒ Object
Constructor Details
Instance Attribute Details
#character ⇒ Object (readonly)
Returns the value of attribute character.
4 5 6 |
# File 'lib/roguelike/game.rb', line 4 def character @character end |
#map ⇒ Object
Returns the value of attribute map.
5 6 7 |
# File 'lib/roguelike/game.rb', line 5 def map @map end |
#map_name ⇒ Object
Returns the value of attribute map_name.
5 6 7 |
# File 'lib/roguelike/game.rb', line 5 def map_name @map_name end |
#ui ⇒ Object (readonly)
Returns the value of attribute ui.
4 5 6 |
# File 'lib/roguelike/game.rb', line 4 def ui @ui end |