Click or drag to resize

EmptyKeys.Strategy.AI.Components.ActionsPlayer Namespace

 
Classes
  ClassDescription
Public classFindBuilderInSystem
Implements player action for behavior. This action finds existing Builder unit in EnvironmentTarget, which is without behavior. The result is stored in BehaviorTarget of PlayerBehaviorContext.
Public classFindClosestEnemySystem
Implements player action for behavior. This action finds the closest enemy system. Enemy system is found based on utility value calculated from influence and distance. The result is stored in EnvironmentTarget of PlayerBehaviorContext.
Public classFindPlanetForBuild
Implements player action for behavior. This action finds avail planet for building with highest Production. The result is stored in BehaviorTarget of PlayerBehaviorContext.
Public classFindPlanetForBuildColonyShip
Implements player action for behavior. This action finds best planet to colonize and based on that it finds best planet to build colony ship. Calculations are using utility values. The result is stored in BehaviorTarget of PlayerBehaviorContext.
Public classFindPlanetWithMinValue
Implements player action for behavior. This action finds Planet with minimum value in specific attribute. The result is stored in BehaviorTarget of PlayerBehaviorContext.
Public classFindPlanetWithoutBehavior
Implements player action for behavior. This action finds Planet without behavior. The result is stored in BehaviorTarget of PlayerBehaviorContext.
Public classFindSystemWithoutDefense
Implements player action for behavior. This action finds owned star system without any defense. The result is stored in EnvironmentTarget of PlayerBehaviorContext.
Public classFindTradeUnitWithoutRoute
Implements player action for behavior. This action finds ITradeUnit without assigned trade route. The result is stored in BehaviorTarget of PlayerBehaviorContext.
Public classFindUnitWithoutBehavior
Implements player action for behavior. This action finds specific unit of UnitTypeName, which is without behavior. The result is stored in BehaviorTarget of PlayerBehaviorContext.
Public classFindUnitWithUpgradePoint
Implements player action for behavior. This action finds unit with available upgrade point. The result is stored in Unit of PlayerBehaviorContext.
Public classPlayerDestroyUnit
Implements player action for behavior. This action destroys unit (see conditions in code).
Public classPlayerGetAllPlayerRelations
Implements player action for behavior. This action creates RelationValues enumerator for PlayerBehaviorContext and for each relation finds Player instance.
Public classPlayerNextPlayerRelations
Implements player action for behavior. This action is using enumerator and gets next relation value.
Public classPlayerRelationCloseBorders
Implements player action for behavior. This action closes borders to other Player.
Public classPlayerRelationDeclareWar
Implements player action for behavior. This action declares war to other Player.
Public classPlayerRelationMakePeace
Implements player action for behavior. This action makes peace with other Player.
Public classPlayerRelationOpenBorders
Implements player action for behavior. This action opens borders to other Player.
Public classPlayerResearchTech
Implements player action for behavior. This action starts technology research based on goal technology. Process starts with researching all parent technologies if they are not Acquired.
Public classPlayerSetPlanetBehavior
Implements player action for behavior. This action sets Planet (BehaviorTarget) behavior.
Public classPlayerSetTradeRoute
Implements player action for behavior. This action sets Trade Route of trade unit (BehaviorTarget).
Public classPlayerSetUnitBehavior
Implements player action for behavior. This action sets Unit (BehaviorTarget) behavior.
Public classPlayerSetUnitsEnvTarget
Implements player action for behavior. This action sets EnvironmentTarget of the unit in UnitBehaviorContext.
Public classPlayerUpdateRelationsValue
Implements player action for behavior. This action updates diplomatic relation with other player.
Public classPlayerUpgradeUnit
Implements player action for behavior. This action upgrades Unit with selected UnitUpgrade.