How do I get the territory where the unit is. Do I have to go through all the territories to a player and check where the unit is, or is there a method for it? I could not find any methods for it in the Unit, TripleAUnit, GameMap and Territory classes.
I ran it this problem as well and needed more than one lookup. (given some units, where are they located)
What i did was to create a HashMap<Unit, Territory> with all the units on the map. This is more efficient if you need more than just a few lookups. Naturally the hashmap has to be recreated (or maintained) once the game state changes (not a big issue in my case).