C# 클래스 PathfindingTest.Selection.UnitSelection

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

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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.

메소드 상세

Assault() 공개 메소드

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.
리턴 void

DeselectAll() 공개 메소드

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

MoveTo() 공개 메소드

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.
리턴 void

SelectAll() 공개 메소드

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

UnitSelection() 공개 메소드

public UnitSelection ( ) : System
리턴 System

UnitSelection() 공개 메소드

public UnitSelection ( CustomArrayList units ) : System
units CustomArrayList
리턴 System