C# Class PathfindingTest.Selection.UnitSelection

Afficher le fichier Open project: Wotuu/RTS_XNA_v2 Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

DeselectAll() public méthode

Deselects all units in this UnitSelection
public DeselectAll ( ) : void
Résultat void

MoveTo() public méthode

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.
Résultat void

SelectAll() public méthode

Selects all units in this UnitSelection
public SelectAll ( ) : void
Résultat void

UnitSelection() public méthode

public UnitSelection ( ) : System
Résultat System

UnitSelection() public méthode

public UnitSelection ( CustomArrayList units ) : System
units CustomArrayList
Résultat System