Class: GameMachine::Commands::Base
- Inherits:
-
Object
- Object
- GameMachine::Commands::Base
- Defined in:
- lib/game_machine/commands/base.rb
Instance Attribute Summary collapse
-
#chat ⇒ Object
readonly
Returns the value of attribute chat.
-
#datastore ⇒ Object
readonly
Returns the value of attribute datastore.
-
#grid ⇒ Object
readonly
Returns the value of attribute grid.
-
#misc ⇒ Object
readonly
Returns the value of attribute misc.
-
#navigation ⇒ Object
readonly
Returns the value of attribute navigation.
-
#player ⇒ Object
readonly
Returns the value of attribute player.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
11 12 13 14 15 16 17 18 |
# File 'lib/game_machine/commands/base.rb', line 11 def initialize @player = PlayerCommands.new @grid = GridCommands.new @chat = ChatCommands.new @datastore = DatastoreCommands.new @misc = MiscCommands.new #@navigation = NavigationCommands.new end |
Instance Attribute Details
#chat ⇒ Object (readonly)
Returns the value of attribute chat.
5 6 7 |
# File 'lib/game_machine/commands/base.rb', line 5 def chat @chat end |
#datastore ⇒ Object (readonly)
Returns the value of attribute datastore.
5 6 7 |
# File 'lib/game_machine/commands/base.rb', line 5 def datastore @datastore end |
#grid ⇒ Object (readonly)
Returns the value of attribute grid.
5 6 7 |
# File 'lib/game_machine/commands/base.rb', line 5 def grid @grid end |
#misc ⇒ Object (readonly)
Returns the value of attribute misc.
5 6 7 |
# File 'lib/game_machine/commands/base.rb', line 5 def misc @misc end |
#navigation ⇒ Object (readonly)
Returns the value of attribute navigation.
5 6 7 |
# File 'lib/game_machine/commands/base.rb', line 5 def @navigation end |
#player ⇒ Object (readonly)
Returns the value of attribute player.
5 6 7 |
# File 'lib/game_machine/commands/base.rb', line 5 def player @player end |
Class Method Details
.commands ⇒ Object
7 8 9 |
# File 'lib/game_machine/commands/base.rb', line 7 def self.commands @commands ||= new end |