C# 클래스 ArkaliaCore.Game.Game.Engines.PathEngine

파일 보기 프로젝트 열기: Emudofus/ArkaliaCore

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AddNode ( Pathfinding node ) : void

Add node from existing node

AddNode ( int cellid, int direction ) : void

Add node from cellid and dir

CreateNodePath ( Pathfinding node ) : string

Return string path with a node

CreateNodePath ( int dir, int cellid ) : string

Return string path with a direction and cellid

GetCellChars ( int CellNum ) : string

get char by cellid

GetCellNum ( string CellChars ) : int

Get cellID by char

GetCellXCoord ( int cellid ) : int

Get X location for cell

GetCellYCoord ( int cellid ) : int

Get Y location for cell

GetDirChar ( int DirNum ) : string

Get dirchar by id

GetDirNum ( string DirChar ) : int

Get dir by chardir

GetDirection ( int Cell, int Cell2 ) : int

Get direction of cell with other cell

GetNode ( int index ) : PathNode

Get node in move by index

GetPathPattern ( int id ) : string

Get pattern for sending to client move

InLine ( int cell1, int cell2 ) : bool

Check if cells is in the same line

LastNode ( ) : PathNode

Get the last node of this move

LoadMoves ( string path ) : void

Load moves from a string

NextCell ( int cell, int dir ) : int

Get next cell in dir

PathEngine ( Database map ) : System
PathEngine ( List cells, Database map ) : System
PathEngine ( string path, Database map ) : System
PathEngine ( string path, int sCell, int sDir, Database map ) : System

메소드 상세

AddNode() 공개 메소드

Add node from existing node
public AddNode ( Pathfinding node ) : void
node Pathfinding
리턴 void

AddNode() 공개 메소드

Add node from cellid and dir
public AddNode ( int cellid, int direction ) : void
cellid int
direction int
리턴 void

CreateNodePath() 공개 정적인 메소드

Return string path with a node
public static CreateNodePath ( Pathfinding node ) : string
node Pathfinding
리턴 string

CreateNodePath() 공개 정적인 메소드

Return string path with a direction and cellid
public static CreateNodePath ( int dir, int cellid ) : string
dir int
cellid int
리턴 string

GetCellChars() 공개 정적인 메소드

get char by cellid
public static GetCellChars ( int CellNum ) : string
CellNum int
리턴 string

GetCellNum() 공개 정적인 메소드

Get cellID by char
public static GetCellNum ( string CellChars ) : int
CellChars string
리턴 int

GetCellXCoord() 공개 메소드

Get X location for cell
public GetCellXCoord ( int cellid ) : int
cellid int
리턴 int

GetCellYCoord() 공개 메소드

Get Y location for cell
public GetCellYCoord ( int cellid ) : int
cellid int
리턴 int

GetDirChar() 공개 정적인 메소드

Get dirchar by id
public static GetDirChar ( int DirNum ) : string
DirNum int
리턴 string

GetDirNum() 공개 정적인 메소드

Get dir by chardir
public static GetDirNum ( string DirChar ) : int
DirChar string
리턴 int

GetDirection() 공개 메소드

Get direction of cell with other cell
public GetDirection ( int Cell, int Cell2 ) : int
Cell int
Cell2 int
리턴 int

GetNode() 공개 메소드

Get node in move by index
public GetNode ( int index ) : PathNode
index int
리턴 ArkaliaCore.Game.Game.Engines.Pathfinding.PathNode

GetPathPattern() 공개 메소드

Get pattern for sending to client move
public GetPathPattern ( int id ) : string
id int
리턴 string

InLine() 공개 메소드

Check if cells is in the same line
public InLine ( int cell1, int cell2 ) : bool
cell1 int
cell2 int
리턴 bool

LastNode() 공개 메소드

Get the last node of this move
public LastNode ( ) : PathNode
리턴 ArkaliaCore.Game.Game.Engines.Pathfinding.PathNode

LoadMoves() 공개 메소드

Load moves from a string
public LoadMoves ( string path ) : void
path string
리턴 void

NextCell() 공개 메소드

Get next cell in dir
public NextCell ( int cell, int dir ) : int
cell int
dir int
리턴 int

PathEngine() 공개 메소드

public PathEngine ( Database map ) : System
map Database
리턴 System

PathEngine() 공개 메소드

public PathEngine ( List cells, Database map ) : System
cells List
map Database
리턴 System

PathEngine() 공개 메소드

public PathEngine ( string path, Database map ) : System
path string
map Database
리턴 System

PathEngine() 공개 메소드

public PathEngine ( string path, int sCell, int sDir, Database map ) : System
path string
sCell int
sDir int
map Database
리턴 System