public void Home(IK robot)
    {
        // Error: One home does not reach HOME
        robot.Home();
        robot.Home();
        robot.Home();

        //
        if (gameController.GetOnlineMode())
        {
            controller.RunCommandOnline("home");
        }
    }
示例#2
0
    /**
     * Mueve el Scorbot a su posición HOME.
     * @param robot Scorbot
     * @return void
     */
    public void Home(IK robot)
    {
        // Offline mode

        // Error: One home does not reach HOME
        robot.Home();
        robot.Home();
        robot.Home();
        stateMessageControl.WriteMessage("Done. HOME", true);

        // Online mode
        if (gameController.GetOnlineMode())
        {
            controller.RunCommandOnline("home");
        }
    }