C# 클래스 OpenRA.GameRules.WeaponInfo

파일 보기 프로젝트 열기: OpenRA/OpenRA 1 사용 예제들

공개 메소드들

메소드 설명
Impact ( Target target, Actor firedBy, IEnumerable damageModifiers ) : void

Applies all the weapon's warheads to the target.

IsValidAgainst ( Actor victim, Actor firedBy ) : bool

Checks if the weapon is valid against (can target) the actor.

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

Checks if the weapon is valid against (can target) the frozen actor.

IsValidAgainst ( Target target, World world, Actor firedBy ) : bool

Checks if the weapon is valid against (can target) the target.

IsValidTarget ( IEnumerable targetTypes ) : bool
WeaponInfo ( string name, MiniYaml content ) : System

비공개 메소드들

메소드 설명
LoadProjectile ( MiniYaml yaml ) : object
LoadWarheads ( MiniYaml yaml ) : object

메소드 상세

Impact() 공개 메소드

Applies all the weapon's warheads to the target.
public Impact ( Target target, Actor firedBy, IEnumerable damageModifiers ) : void
target OpenRA.Traits.Target
firedBy Actor
damageModifiers IEnumerable
리턴 void

IsValidAgainst() 공개 메소드

Checks if the weapon is valid against (can target) the actor.
public IsValidAgainst ( Actor victim, Actor firedBy ) : bool
victim Actor
firedBy Actor
리턴 bool

IsValidAgainst() 공개 메소드

Checks if the weapon is valid against (can target) the frozen actor.
public IsValidAgainst ( OpenRA.Traits.FrozenActor victim, Actor firedBy ) : bool
victim OpenRA.Traits.FrozenActor
firedBy Actor
리턴 bool

IsValidAgainst() 공개 메소드

Checks if the weapon is valid against (can target) the target.
public IsValidAgainst ( Target target, World world, Actor firedBy ) : bool
target OpenRA.Traits.Target
world World
firedBy Actor
리턴 bool

IsValidTarget() 공개 메소드

public IsValidTarget ( IEnumerable targetTypes ) : bool
targetTypes IEnumerable
리턴 bool

WeaponInfo() 공개 메소드

public WeaponInfo ( string name, MiniYaml content ) : System
name string
content MiniYaml
리턴 System