C# Class FacingsExtensions, Unity-SRPG

Mostra file Open project: Policenaut/Unity-SRPG

Public Methods

Method Description
AngleOfAttack ( this attacker, Unit, defender ) : Facings,

Private Methods

Method Description
FromFront ( Unit, attacker, Unit, defender ) : bool
FromSide ( Unit, attacker, Unit, defender ) : bool
GetOffset ( Directions, dir ) : Point
GetSides ( Directions, dir, Directions, &s1, Directions, &s2 ) : void
WithinAngle ( Point offset, Point delta ) : bool

Method Details

AngleOfAttack() public static method

public static AngleOfAttack ( this attacker, Unit, defender ) : Facings,
attacker this
defender Unit,
return Facings,