C# Class OpenRA.Mods.Common.Traits.GiveUnitCrateAction

Inheritance: CrateAction
显示文件 Open project: pchote/OpenRA

Public Methods

Method Description
Activate ( Actor collector ) : void
CanGiveTo ( Actor collector ) : bool
GetSelectionShares ( Actor collector ) : int
GiveUnitCrateAction ( Actor self, GiveUnitCrateActionInfo info ) : System.Collections.Generic

Private Methods

Method Description
ChooseEmptyCellNear ( Actor a, string unit ) : CPos?
GetSuitableCells ( CPos near, string unitName ) : IEnumerable

Method Details

Activate() public method

public Activate ( Actor collector ) : void
collector Actor
return void

CanGiveTo() public method

public CanGiveTo ( Actor collector ) : bool
collector Actor
return bool

GetSelectionShares() public method

public GetSelectionShares ( Actor collector ) : int
collector Actor
return int

GiveUnitCrateAction() public method

public GiveUnitCrateAction ( Actor self, GiveUnitCrateActionInfo info ) : System.Collections.Generic
self Actor
info GiveUnitCrateActionInfo
return System.Collections.Generic