C# Class PathfindingTest.Selection.UnitSelection

Mostra file Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Public Methods

Method Description
Assault ( UnitGroupPattern pattern ) : void

Moves this unit group according to the given pattern.

DeselectAll ( ) : void

Deselects all units in this UnitSelection

MoveTo ( UnitGroupPattern pattern ) : void

Moves this unit group according to the given pattern.

SelectAll ( ) : void

Selects all units in this UnitSelection

UnitSelection ( ) : System
UnitSelection ( CustomArrayList units ) : System

Private Methods

Method Description
GetClosestPoint ( Unit unit, CustomArrayList points ) : Point

Gets the point that is closest of a collection from a unit.

GetFarthestPoint ( Unit unit, CustomArrayList points ) : Point

Gets the point that is furthest away of a collcetion from a unit.

Method Details

Assault() public method

Moves this unit group according to the given pattern.
public Assault ( UnitGroupPattern pattern ) : void
pattern PathfindingTest.Selection.Patterns.UnitGroupPattern The pattern to use when calculating where the units should go.
return void

DeselectAll() public method

Deselects all units in this UnitSelection
public DeselectAll ( ) : void
return void

MoveTo() public method

Moves this unit group according to the given pattern.
public MoveTo ( UnitGroupPattern pattern ) : void
pattern PathfindingTest.Selection.Patterns.UnitGroupPattern The pattern to use when calculating where the units should go.
return void

SelectAll() public method

Selects all units in this UnitSelection
public SelectAll ( ) : void
return void

UnitSelection() public method

public UnitSelection ( ) : System
return System

UnitSelection() public method

public UnitSelection ( CustomArrayList units ) : System
units CustomArrayList
return System