C# Class moveExtensions, BarCrawl

Afficher le fichier Open project: karatesaul/BarCrawl

Méthodes publiques

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

Method Details

attackOrder() public static méthode

public static attackOrder ( this move ) : Vector2[]
move this
Résultat Vector2[]

getDirection() public static méthode

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

getMove() public static méthode

public static getMove ( Vector2 direction ) : Move,
direction Vector2
Résultat Move,

getMove() public static méthode

public static getMove ( this move, Vector2 direction ) : void
move this
direction Vector2
Résultat void

getPerpendicular() public static méthode

public static getPerpendicular ( this move ) : Move[],
move this
Résultat Move[],

isDirectional() public static méthode

public static isDirectional ( this move ) : bool
move this
Résultat bool