public void startRobot ( Robot newRobot ) { newRobot . getData ( ) . setActiveState ( DEFAULT_START_STATE ) ; Thread newThread = new Thread ( robotsThreads , newRobot , "Bot-" + newRobot . getSerialNumber ( ) ) ; newThread . start ( ) ; // jumpstarts the robot }
Starts the thread of a robot in the player s thread group