C# Класс PathfindingTest.Selection.UnitSelection

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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