C# Class OpenRA.Mods.Common.Warheads.Warhead

Inheritance: IWarhead
Exibir arquivo Open project: OpenRA/OpenRA

Private Properties

Property Type Description

Public Methods

Method Description
DoImpact ( Target target, Actor firedBy, IEnumerable damageModifiers ) : void

Applies the warhead's effect against the target.

IsValidAgainst ( Actor victim, Actor firedBy ) : bool

Checks if the warhead is valid against (can do something to) the actor.

IsValidAgainst ( OpenRA.Traits.FrozenActor victim, Actor firedBy ) : bool

Checks if the warhead is valid against (can do something to) the frozen actor.

IsValidTarget ( IEnumerable targetTypes ) : bool

Method Details

DoImpact() public abstract method

Applies the warhead's effect against the target.
public abstract DoImpact ( Target target, Actor firedBy, IEnumerable damageModifiers ) : void
target OpenRA.Traits.Target
firedBy Actor
damageModifiers IEnumerable
return void

IsValidAgainst() public method

Checks if the warhead is valid against (can do something to) the actor.
public IsValidAgainst ( Actor victim, Actor firedBy ) : bool
victim Actor
firedBy Actor
return bool

IsValidAgainst() public method

Checks if the warhead is valid against (can do something to) the frozen actor.
public IsValidAgainst ( OpenRA.Traits.FrozenActor victim, Actor firedBy ) : bool
victim OpenRA.Traits.FrozenActor
firedBy Actor
return bool

IsValidTarget() public method

public IsValidTarget ( IEnumerable targetTypes ) : bool
targetTypes IEnumerable
return bool