C# Class OpenRA.Mods.Common.ActorExts

显示文件 Open project: OpenRA/OpenRA

Public Methods

Method Description
AppearsFriendlyTo ( this self, Actor toActor ) : bool
AppearsHostileTo ( this self, Actor toActor ) : bool
CanHarvestAt ( this self, CPos pos, OpenRA.Traits.ResourceLayer resLayer, OpenRA.Mods.Common.Traits.HarvesterInfo harvInfo, ResourceClaimLayer territory ) : bool
ClosestCell ( this self, IEnumerable cells ) : CPos
IsAtGroundLevel ( this self ) : bool
NotifyBlocker ( this self, CPos position ) : void
NotifyBlocker ( this self, IEnumerable blockers ) : void
NotifyBlocker ( this self, IEnumerable positions ) : void
ResolveFrozenActorOrder ( this self, Order order, Color targetLine ) : Target

Method Details

AppearsFriendlyTo() public static method

public static AppearsFriendlyTo ( this self, Actor toActor ) : bool
self this
toActor Actor
return bool

AppearsHostileTo() public static method

public static AppearsHostileTo ( this self, Actor toActor ) : bool
self this
toActor Actor
return bool

CanHarvestAt() public static method

public static CanHarvestAt ( this self, CPos pos, OpenRA.Traits.ResourceLayer resLayer, OpenRA.Mods.Common.Traits.HarvesterInfo harvInfo, ResourceClaimLayer territory ) : bool
self this
pos CPos
resLayer OpenRA.Traits.ResourceLayer
harvInfo OpenRA.Mods.Common.Traits.HarvesterInfo
territory ResourceClaimLayer
return bool

ClosestCell() public static method

public static ClosestCell ( this self, IEnumerable cells ) : CPos
self this
cells IEnumerable
return CPos

IsAtGroundLevel() public static method

public static IsAtGroundLevel ( this self ) : bool
self this
return bool

NotifyBlocker() public static method

public static NotifyBlocker ( this self, CPos position ) : void
self this
position CPos
return void

NotifyBlocker() public static method

public static NotifyBlocker ( this self, IEnumerable blockers ) : void
self this
blockers IEnumerable
return void

NotifyBlocker() public static method

public static NotifyBlocker ( this self, IEnumerable positions ) : void
self this
positions IEnumerable
return void

ResolveFrozenActorOrder() public static method

public static ResolveFrozenActorOrder ( this self, Order order, Color targetLine ) : Target
self this
order Order
targetLine System.Drawing.Color
return OpenRA.Traits.Target