Class: GameMachine::GameSystems::StressTest
- Inherits:
-
Actor::Base
- Object
- JavaLib::GameActor
- Actor::Base
- GameMachine::GameSystems::StressTest
- Includes:
- Commands
- Defined in:
- lib/game_machine/game_systems/stress_test.rb
Constant Summary
Constants inherited from Actor::Base
Instance Attribute Summary collapse
-
#grid ⇒ Object
readonly
Returns the value of attribute grid.
Instance Method Summary collapse
Methods included from Commands
Methods inherited from Actor::Base
aspect, aspects, find, find_by_address, find_distributed, find_distributed_local, find_remote, hashring, local_path, model_filter, #onReceive, player_controller, #receive_message, #schedule_message, #sender, set_player_controller
Instance Attribute Details
#grid ⇒ Object (readonly)
Returns the value of attribute grid.
6 7 8 |
# File 'lib/game_machine/game_systems/stress_test.rb', line 6 def grid @grid end |
Instance Method Details
#on_receive(message) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/game_machine/game_systems/stress_test.rb', line 11 def on_receive() #GameMachine.logger.info "#{self.class.name} #{message}" commands.player.(,.player.id) grid.set(.player.id,2.0,1.0,'all') grid.neighbors(1.0,4.0,'all') end |
#post_init(*args) ⇒ Object
7 8 9 |
# File 'lib/game_machine/game_systems/stress_test.rb', line 7 def post_init(*args) @grid = Grid.default_grid end |