Class: GameMachine::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
server/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
# File 'server/lib/game_machine/commands/base.rb', line 11

def initialize
  @player = PlayerCommands.new
  @chat = ChatCommands.new
  @datastore = DatastoreCommands.new
  @misc = MiscCommands.new
end

Instance Attribute Details

#chatObject (readonly)

Returns the value of attribute chat


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

def chat
  @chat
end

#datastoreObject (readonly)

Returns the value of attribute datastore


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

def datastore
  @datastore
end

#miscObject (readonly)

Returns the value of attribute misc


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

def misc
  @misc
end

#playerObject (readonly)

Returns the value of attribute player


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

def player
  @player
end

Class Method Details

.commandsObject


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

def self.commands
  @commands ||= new
end