C# Класс moveExtensions, BarCrawl

Показать файл Открыть проект

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

Метод Описание
attackOrder ( this move ) : Vector2[]
getDirection ( this move ) : Vector2

Gets the direction of the move, with a magnitude of 1. Since there are no diagonals, this should always result in integer values.

getMove ( Vector2 direction ) : Move,
getMove ( this move, Vector2 direction ) : void
getPerpendicular ( this move ) : Move[],
isDirectional ( this move ) : bool

Описание методов

attackOrder() публичный статический Метод

public static attackOrder ( this move ) : Vector2[]
move this
Результат Vector2[]

getDirection() публичный статический Метод

Gets the direction of the move, with a magnitude of 1. Since there are no diagonals, this should always result in integer values.
public static getDirection ( this move ) : Vector2
move this The move to convert to a direction.
Результат Vector2

getMove() публичный статический Метод

public static getMove ( Vector2 direction ) : Move,
direction Vector2
Результат Move,

getMove() публичный статический Метод

public static getMove ( this move, Vector2 direction ) : void
move this
direction Vector2
Результат void

getPerpendicular() публичный статический Метод

public static getPerpendicular ( this move ) : Move[],
move this
Результат Move[],

isDirectional() публичный статический Метод

public static isDirectional ( this move ) : bool
move this
Результат bool