cz.cuni.amis.pogamut.defcon.utils.closestpoints
Class ClosestPointsManager

Package class diagram package ClosestPointsManager
java.lang.Object
  extended by cz.cuni.amis.pogamut.defcon.utils.closestpoints.ClosestPointsManager

public class ClosestPointsManager
extends Object

Collects the reasonably good spawn points for fleet spawning and simplifies access to them.

Author:
Radek 'Black_Hand' Pibil

Constructor Summary
ClosestPointsManager(SortedMap<Integer,SortedMap<Integer,List<ClosestPointsLookUp.ClosestPoints>>> closestPoints)
           
ClosestPointsManager(SortedMap<Integer,SortedMap<Integer,List<ClosestPointsLookUp.ClosestPoints>>> closestPointsToEnemyTerritories, Logger log)
           
 
Method Summary
 SortedMap<Integer,List<ClosestPointsLookUp.ClosestPoints>> getClosestForEnemyTerritory(int enemyTerritoryId)
           
 List<ClosestPointsLookUp.ClosestPoints> getClosestForSpecificTerritories(int enemyTerritoryId, int ownTerritoryId)
           
 SortedMap<Integer,SortedMap<Integer,List<ClosestPointsLookUp.ClosestPoints>>> getClosestPoints()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClosestPointsManager

public ClosestPointsManager(SortedMap<Integer,SortedMap<Integer,List<ClosestPointsLookUp.ClosestPoints>>> closestPoints)

ClosestPointsManager

public ClosestPointsManager(SortedMap<Integer,SortedMap<Integer,List<ClosestPointsLookUp.ClosestPoints>>> closestPointsToEnemyTerritories,
                            Logger log)
Method Detail

getClosestPoints

public final SortedMap<Integer,SortedMap<Integer,List<ClosestPointsLookUp.ClosestPoints>>> getClosestPoints()

getClosestForSpecificTerritories

public List<ClosestPointsLookUp.ClosestPoints> getClosestForSpecificTerritories(int enemyTerritoryId,
                                                                                int ownTerritoryId)

getClosestForEnemyTerritory

public SortedMap<Integer,List<ClosestPointsLookUp.ClosestPoints>> getClosestForEnemyTerritory(int enemyTerritoryId)


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.