Class: GameMachine::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/game_machine/commands/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

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

#chatObject (readonly)

Returns the value of attribute chat.



5
6
7
# File 'lib/game_machine/commands/base.rb', line 5

def chat
  @chat
end

#datastoreObject (readonly)

Returns the value of attribute datastore.



5
6
7
# File 'lib/game_machine/commands/base.rb', line 5

def datastore
  @datastore
end

#gridObject (readonly)

Returns the value of attribute grid.



5
6
7
# File 'lib/game_machine/commands/base.rb', line 5

def grid
  @grid
end

#miscObject (readonly)

Returns the value of attribute misc.



5
6
7
# File 'lib/game_machine/commands/base.rb', line 5

def misc
  @misc
end

Returns the value of attribute navigation.



5
6
7
# File 'lib/game_machine/commands/base.rb', line 5

def navigation
  @navigation
end

#playerObject (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

.commandsObject



7
8
9
# File 'lib/game_machine/commands/base.rb', line 7

def self.commands
  @commands ||= new
end