Package sk.fiit.jim.agent.models

Examples of sk.fiit.jim.agent.models.Player


    List<Player> opponents = new ArrayList<Player>(WorldModel.getInstance().getOpponents());
    ListIterator<Player> iterator = opponents.listIterator();
    Vector3D ballPosition = WorldModel.getInstance().getBall().getPosition();

    while (iterator.hasNext()) {
      Player player = iterator.next();
      if (player.getPosition().subtract(ballPosition).getR() > 6.0)
        iterator.remove();
    }
    return opponents;
  }
View Full Code Here

TOP

Related Classes of sk.fiit.jim.agent.models.Player

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.