Package net.sf.robocode.battle.peer

Examples of net.sf.robocode.battle.peer.ContestantPeer


    ArrayList<BattleResults> results = new ArrayList<BattleResults>();
    for (int i = 0; i < contestants.size(); i++) {
      results.add(null);
    }
    for (int rank = 0; rank < contestants.size(); rank++) {
      ContestantPeer contestant = contestants.get(rank);
      contestant.getStatistics().setRank(rank + 1);
      BattleResults battleResults = contestant.getStatistics().getFinalResults();

      RobotSpecification robotSpec = null;
      if (contestant instanceof RobotPeer) {
        robotSpec = ((RobotPeer) contestant).getRobotSpecification();
      } else if (contestant instanceof TeamPeer) {
View Full Code Here

TOP

Related Classes of net.sf.robocode.battle.peer.ContestantPeer

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.