Closed vital-dhaveloose closed 11 years ago
Proposed solution:
PlayerClient
.SpectatorHandler.playerRolled
to playerSetup
.rolled
broadcast. (related to #17) Probably good to make a simple Player
class out of this.playerSetup
on their handlers when receiving a rolled
.update
as well for spectators to receive.This should allow simulators to properly initialize players before the game is started, while still allowing non-simulating spectators to join at any time without missing out on critical information.
How else can we scan for physical robots only in the physical world and for virtual robots only in the virtual world. Differently put: If no distinction can be made between these two types of robots, why would we scan in the real world? We can just scan the virtual world and get all the information we need there.