games.strategy.triplea.weakAI
Class Utils

java.lang.Object
  extended by games.strategy.triplea.weakAI.Utils

public class Utils
extends java.lang.Object


Constructor Summary
Utils()
           
 
Method Summary
static Route findNearest(Territory start, Match<Territory> endCondition, Match<Territory> routeCondition, GameData data)
           
static java.util.List<Territory> getNeighboringEnemyLandTerritories(GameData data, PlayerID player)
          All the territories that border one of our territories
static float getStrengthOfPotentialAttackers(Territory location, GameData data)
           
static java.util.List<Unit> getUnitsUpToStrength(double maxStrength, java.util.Collection<Unit> units, boolean attacking, boolean sea)
           
static boolean hasLandRouteToEnemyOwnedCapitol(Territory t, PlayerID us, GameData data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getNeighboringEnemyLandTerritories

public static java.util.List<Territory> getNeighboringEnemyLandTerritories(GameData data,
                                                                           PlayerID player)
All the territories that border one of our territories


getUnitsUpToStrength

public static java.util.List<Unit> getUnitsUpToStrength(double maxStrength,
                                                        java.util.Collection<Unit> units,
                                                        boolean attacking,
                                                        boolean sea)

getStrengthOfPotentialAttackers

public static float getStrengthOfPotentialAttackers(Territory location,
                                                    GameData data)

findNearest

public static Route findNearest(Territory start,
                                Match<Territory> endCondition,
                                Match<Territory> routeCondition,
                                GameData data)

hasLandRouteToEnemyOwnedCapitol

public static boolean hasLandRouteToEnemyOwnedCapitol(Territory t,
                                                      PlayerID us,
                                                      GameData data)