Exemplo n.º 1
0
Arquivo: Map.cs Projeto: AciesNN/cyc
		public static IslandCM GetTheMostProtectedIsland(MapCM map, List<IslandCM> playerIslands)
		{
			IslandCM theMostProtectedIsland = playerIslands.OrderByDescending(e => map.GetArmyCountByIsland(e.ID, e.OwnerID)).First();
			return theMostProtectedIsland;
		}
Exemplo n.º 2
0
Arquivo: Map.cs Projeto: AciesNN/cyc
		public static int GetIslandForce(MapCM map, int islandID, bool withBuilds = true)
		{
			IslandCM island = map.Islands[islandID];
			return map.GetArmyCountByIsland(islandID, island.OwnerID) + (withBuilds ? map.GetBuildCountAtIsland(islandID, Build.Mars, true) : 0) + (map.IsThereCreatureOnIsland(Card.Minotaur, islandID) ? Constants.minotaurForce : 0);
		}