C# 클래스 moveExtensions, BarCrawl

파일 보기 프로젝트 열기: karatesaul/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