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

Inheritance: INotifyAttack, IPips, ITick, ISync
显示文件 Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
Info AmmoPoolInfo
PreviousAmmo int

Public Methods

Method Description
AmmoPool ( Actor self, AmmoPoolInfo info ) : System.Collections.Generic
FullAmmo ( ) : bool
GetAmmoCount ( ) : int
GetPips ( Actor self ) : IEnumerable
GiveAmmo ( ) : bool
HasAmmo ( ) : bool
TakeAmmo ( ) : bool
Tick ( Actor self ) : void

Private Methods

Method Description
INotifyAttack ( Actor self, Target target, Armament a, Barrel barrel ) : void

Method Details

AmmoPool() public method

public AmmoPool ( Actor self, AmmoPoolInfo info ) : System.Collections.Generic
self Actor
info AmmoPoolInfo
return System.Collections.Generic

FullAmmo() public method

public FullAmmo ( ) : bool
return bool

GetAmmoCount() public method

public GetAmmoCount ( ) : int
return int

GetPips() public method

public GetPips ( Actor self ) : IEnumerable
self Actor
return IEnumerable

GiveAmmo() public method

public GiveAmmo ( ) : bool
return bool

HasAmmo() public method

public HasAmmo ( ) : bool
return bool

TakeAmmo() public method

public TakeAmmo ( ) : bool
return bool

Tick() public method

public Tick ( Actor self ) : void
self Actor
return void

Property Details

Info public_oe property

public AmmoPoolInfo,OpenRA.Mods.Common.Traits Info
return AmmoPoolInfo

PreviousAmmo public_oe property

public int PreviousAmmo
return int