C# Class OpenRA.Mods.Common.AI.HackyAI

Inheritance: ITick, IBot, INotifyDamage
Afficher le fichier Open project: cjshmyr/OpenRA Class Usage Examples

Méthodes publiques

Свойство Type Description
Info HackyAIInfo
IsEnabled bool
Squads List
World World

Private Properties

Свойство Type Description
ChooseEnemyTarget Actor
ChooseRallyLocationNear CPos
ChooseRandomUnitToBuild ActorInfo
ChooseUnitToBuild ActorInfo
CountBuilding int
CountBuildingByCommonName int
CountUnits int
FindClosestEnemy Actor
FindClosestEnemy Actor
FindCoarseAttackLocationToSupportPower CPos?
FindEnemyConstructionYards List
FindFineAttackLocationToSupportPower CPos?
FindNextResource CPos
FindQueues IEnumerable
GetSquadOfType Squad
HasAdequateAirUnitReloadBuildings bool
IsRallyPointValid bool
RegisterNewSquad Squad

Méthodes publiques

Méthode Description
Activate ( Player p ) : void
AssignRolesToIdleUnits ( Actor self ) : void
BotDebug ( string s ) : void
BuildUnit ( string category, bool buildRandom ) : void
BuildUnit ( string category, string name ) : void
ChooseBuildLocation ( string actorType, bool distanceToBaseIsImportant, BuildingType type ) : CPos?
CleanSquads ( ) : void
CloseEnoughToWater ( ) : bool
CreateAttackForce ( ) : void
Damaged ( Actor self, OpenRA.Traits.AttackInfo e ) : void
EnoughWaterToBuildNaval ( ) : bool
FindAndDeployBackupMcv ( Actor self ) : void
FindNewUnits ( Actor self ) : void
GetInfoByCommonName ( HashSet names, Player owner ) : ActorInfo
GetRandomBaseCenter ( ) : CPos
GiveOrdersToIdleHarvesters ( ) : void
HackyAI ( HackyAIInfo info, ActorInitializer init ) : System
HasAdequateFact ( ) : bool
HasAdequateProc ( ) : bool
HasMinimumProc ( ) : bool
InitializeBase ( Actor self ) : void
ProductionUnits ( Actor self ) : void
ProtectOwn ( Actor attacker ) : void
QueueOrder ( Order order ) : void
SetRallyPointsForNewProductionBuildings ( Actor self ) : void
Tick ( Actor self ) : void
TryToRushAttack ( ) : void
TryToUseSupportPower ( Actor self ) : void

Private Methods

Méthode Description
ChooseEnemyTarget ( ) : Actor
ChooseRallyLocationNear ( Actor producer ) : CPos
ChooseRandomUnitToBuild ( ProductionQueue queue ) : ActorInfo
ChooseUnitToBuild ( ProductionQueue queue ) : ActorInfo
CountBuilding ( string frac, Player owner ) : int
CountBuildingByCommonName ( HashSet buildings, Player owner ) : int
CountUnits ( string unit, Player owner ) : int
FindClosestEnemy ( WPos pos ) : Actor
FindClosestEnemy ( WPos pos, WDist radius ) : Actor
FindCoarseAttackLocationToSupportPower ( SupportPowerInstance readyPower ) : CPos?

Scans the map in chunks, evaluating all actors in each.

FindEnemyConstructionYards ( ) : List
FindFineAttackLocationToSupportPower ( SupportPowerInstance readyPower, CPos checkPos, int extendedRange = 1 ) : CPos?

Detail scans an area, evaluating positions.

FindNextResource ( Actor harvester ) : CPos
FindQueues ( string category ) : IEnumerable
GetSquadOfType ( SquadType type ) : Squad
HasAdequateAirUnitReloadBuildings ( ActorInfo actorInfo ) : bool
IsRallyPointValid ( CPos x, OpenRA.Traits.BuildingInfo info ) : bool
RegisterNewSquad ( SquadType type, Actor target = null ) : Squad

Method Details

Activate() public méthode

public Activate ( Player p ) : void
p Player
Résultat void

AssignRolesToIdleUnits() public méthode

public AssignRolesToIdleUnits ( Actor self ) : void
self Actor
Résultat void

BotDebug() public static méthode

public static BotDebug ( string s ) : void
s string
Résultat void

BuildUnit() public méthode

public BuildUnit ( string category, bool buildRandom ) : void
category string
buildRandom bool
Résultat void

BuildUnit() public méthode

public BuildUnit ( string category, string name ) : void
category string
name string
Résultat void

ChooseBuildLocation() public méthode

public ChooseBuildLocation ( string actorType, bool distanceToBaseIsImportant, BuildingType type ) : CPos?
actorType string
distanceToBaseIsImportant bool
type BuildingType
Résultat CPos?

CleanSquads() public méthode

public CleanSquads ( ) : void
Résultat void

CloseEnoughToWater() public méthode

public CloseEnoughToWater ( ) : bool
Résultat bool

CreateAttackForce() public méthode

public CreateAttackForce ( ) : void
Résultat void

Damaged() public méthode

public Damaged ( Actor self, OpenRA.Traits.AttackInfo e ) : void
self Actor
e OpenRA.Traits.AttackInfo
Résultat void

EnoughWaterToBuildNaval() public méthode

public EnoughWaterToBuildNaval ( ) : bool
Résultat bool

FindAndDeployBackupMcv() public méthode

public FindAndDeployBackupMcv ( Actor self ) : void
self Actor
Résultat void

FindNewUnits() public méthode

public FindNewUnits ( Actor self ) : void
self Actor
Résultat void

GetInfoByCommonName() public méthode

public GetInfoByCommonName ( HashSet names, Player owner ) : ActorInfo
names HashSet
owner Player
Résultat ActorInfo

GetRandomBaseCenter() public méthode

public GetRandomBaseCenter ( ) : CPos
Résultat CPos

GiveOrdersToIdleHarvesters() public méthode

public GiveOrdersToIdleHarvesters ( ) : void
Résultat void

HackyAI() public méthode

public HackyAI ( HackyAIInfo info, ActorInitializer init ) : System
info HackyAIInfo
init ActorInitializer
Résultat System

HasAdequateFact() public méthode

public HasAdequateFact ( ) : bool
Résultat bool

HasAdequateProc() public méthode

public HasAdequateProc ( ) : bool
Résultat bool

HasMinimumProc() public méthode

public HasMinimumProc ( ) : bool
Résultat bool

InitializeBase() public méthode

public InitializeBase ( Actor self ) : void
self Actor
Résultat void

ProductionUnits() public méthode

public ProductionUnits ( Actor self ) : void
self Actor
Résultat void

ProtectOwn() public méthode

public ProtectOwn ( Actor attacker ) : void
attacker Actor
Résultat void

QueueOrder() public méthode

public QueueOrder ( Order order ) : void
order Order
Résultat void

SetRallyPointsForNewProductionBuildings() public méthode

public SetRallyPointsForNewProductionBuildings ( Actor self ) : void
self Actor
Résultat void

Tick() public méthode

public Tick ( Actor self ) : void
self Actor
Résultat void

TryToRushAttack() public méthode

public TryToRushAttack ( ) : void
Résultat void

TryToUseSupportPower() public méthode

public TryToUseSupportPower ( Actor self ) : void
self Actor
Résultat void

Property Details

Info public_oe property

public HackyAIInfo,OpenRA.Mods.Common.AI Info
Résultat HackyAIInfo

IsEnabled public_oe property

public bool IsEnabled
Résultat bool

Squads public_oe property

public List Squads
Résultat List

World public_oe property

public World World
Résultat World