C# Class OpenRA.Traits.Target

Show file Open project: pchote/OpenRA Class Usage Examples

Public Properties

Property Type Description
Invalid Target
None OpenRA.Traits.Target[]

Public Methods

Method Description
FromActor ( Actor a ) : Target
FromCell ( World w, CPos c, SubCell subCell = SubCell.FullCell ) : Target
FromFrozenActor ( OpenRA.Traits.FrozenActor a ) : Target
FromOrder ( World w, Order o ) : Target
FromPos ( WPos p ) : Target
IsInRange ( WPos origin, WDist range ) : bool
IsValidFor ( Actor targeter ) : bool
ToString ( ) : string

Method Details

FromActor() public static method

public static FromActor ( Actor a ) : Target
a Actor
return Target

FromCell() public static method

public static FromCell ( World w, CPos c, SubCell subCell = SubCell.FullCell ) : Target
w World
c CPos
subCell SubCell
return Target

FromFrozenActor() public static method

public static FromFrozenActor ( OpenRA.Traits.FrozenActor a ) : Target
a OpenRA.Traits.FrozenActor
return Target

FromOrder() public static method

public static FromOrder ( World w, Order o ) : Target
w World
o Order
return Target

FromPos() public static method

public static FromPos ( WPos p ) : Target
p WPos
return Target

IsInRange() public method

public IsInRange ( WPos origin, WDist range ) : bool
origin WPos
range WDist
return bool

IsValidFor() public method

public IsValidFor ( Actor targeter ) : bool
targeter Actor
return bool

ToString() public method

public ToString ( ) : string
return string

Property Details

Invalid public static property

public static Target,OpenRA.Traits Invalid
return Target

None public static property

public static Target[],OpenRA.Traits None
return OpenRA.Traits.Target[]