C# Class ArkaliaCore.Game.Game.Engines.PathEngine

显示文件 Open project: Emudofus/ArkaliaCore

Private Properties

Property Type Description

Public Methods

Method Description
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

Method Details

AddNode() public method

Add node from existing node
public AddNode ( Pathfinding node ) : void
node Pathfinding
return void

AddNode() public method

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

CreateNodePath() public static method

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

CreateNodePath() public static method

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

GetCellChars() public static method

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

GetCellNum() public static method

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

GetCellXCoord() public method

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

GetCellYCoord() public method

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

GetDirChar() public static method

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

GetDirNum() public static method

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

GetDirection() public method

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

GetNode() public method

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

GetPathPattern() public method

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

InLine() public method

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

LastNode() public method

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

LoadMoves() public method

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

NextCell() public method

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

PathEngine() public method

public PathEngine ( Database map ) : System
map Database
return System

PathEngine() public method

public PathEngine ( List cells, Database map ) : System
cells List
map Database
return System

PathEngine() public method

public PathEngine ( string path, Database map ) : System
path string
map Database
return System

PathEngine() public method

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