Package robocode.exception

Examples of robocode.exception.AbortedException


    }

    // If we are stopping, yet the robot took action (in onWin or onDeath), stop now.
    if (battle.isAborted()) {
      isExecFinishedAndDisabled = true;
      throw new AbortedException();
    }
    if (isDead()) {
      isExecFinishedAndDisabled = true;
      throw new DeathException();
    }
    if (isHalt()) {
      isExecFinishedAndDisabled = true;
      if (isWinner) {
        throw new WinException();
      } else {
        throw new AbortedException();
      }
    }

    waitForNextTurn();
View Full Code Here

TOP

Related Classes of robocode.exception.AbortedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.