public Sprawl(AEmpire empire, Location origin, int startValue) { TheEmpire = empire; OriginId = origin.Id; StartValue = startValue; Q = new AddressPriorityQueue(empire.Map.Size - 1); Backtrace = new IdIndexedArray <LocationId, LocationId>(empire.Map.Size); }
public Map(AEmpire empire, int sizeX, int sizeY, int landMass) { TheEmpire = empire; Size = sizeX * sizeY; SizeX = sizeX; SizeY = sizeY >> 1; LandMass = landMass; Ground = empire.Data->MapData; ObservedLast = empire.Data->LocationLastObservedTurns; Territory = empire.Data->Territory; NeighborLocations = new IdIndexedArray <LocationId, Location[]>(Size); NeighborOtherLocations = new IdIndexedArray <LocationId, OtherLocation[]>(Size); Distance5AreaLocations = new IdIndexedArray <LocationId, Location[]>(Size); Distance5AreaOtherLocations = new IdIndexedArray <LocationId, OtherLocation[]>(Size); JobInfo = new IdIndexedArray <LocationId, JobWorkRemaining[]>(Size); }