Class: GameMachine::GameSystems::StressTest

Inherits:
Actor::Base
  • Object
show all
Includes:
Commands
Defined in:
server/lib/game_machine/game_systems/stress_test.rb

Constant Summary

Constants inherited from Actor::Base

Actor::Base::ON_RECEIVE_HOOKS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Commands

#commands

Methods inherited from Actor::Base

aspect, aspects, find, find_by_address, find_distributed, find_distributed_local, find_remote, hashring, local_path, logger, model_filter, #onReceive, player_controller, #receive_message, #schedule_message, #schedule_message_once, #sender, set_player_controller

Instance Attribute Details

#gridObject (readonly)

Returns the value of attribute grid


6
7
8
# File 'server/lib/game_machine/game_systems/stress_test.rb', line 6

def grid
  @grid
end

Instance Method Details

#on_receive(message) ⇒ Object


10
11
12
13
14
15
16
# File 'server/lib/game_machine/game_systems/stress_test.rb', line 10

def on_receive(message)
  #GameMachine.logger.info "#{self.class.name} #{message}"
  commands.player.send_message(message,message.player.id)

  #grid.set(message.player.id,2.0,1.0,'all')
  #grid.neighbors(1.0,4.0,'all')
end

#post_init(*args) ⇒ Object


7
8
# File 'server/lib/game_machine/game_systems/stress_test.rb', line 7

def post_init(*args)
end