WorkerAutomation
Contains the logic for worker automation.
This is instantiated from CivilizationInfo.getWorkerAutomation and cached there.
Parameters
The Civilization - data common to all automated workers is cached once per Civ
The turn number this was created for - a recreation of the instance is forced on different turn numbers
Constructors
Types
Functions
Automate one Worker - decide what to do and where, move, start or continue work.
Determine the improvement appropriate to a given tile and worker
Do we want a Fort here considering surroundings?
Looks for a worthwhile tile to improve
Calculate a priority for improving a tile
Checks whether a given tile allows a Fort and whether a Fort may be undesirable (without checking surroundings).
Checks whether the improvement matching the tile resource requires any terrain feature to be removed first.
Tests if tile can be improved by a specific unit, or if no unit is passed, any unit at all (but does not check whether the ruleset contains any unit capable of it)
Looks for work connecting cities