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

Afficher le fichier Open project: Emudofus/ArkaliaCore

Private Properties

Свойство Type Description

Méthodes publiques

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

Add node from existing node
public AddNode ( Pathfinding node ) : void
node Pathfinding
Résultat void

AddNode() public méthode

Add node from cellid and dir
public AddNode ( int cellid, int direction ) : void
cellid int
direction int
Résultat void

CreateNodePath() public static méthode

Return string path with a node
public static CreateNodePath ( Pathfinding node ) : string
node Pathfinding
Résultat string

CreateNodePath() public static méthode

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

GetCellChars() public static méthode

get char by cellid
public static GetCellChars ( int CellNum ) : string
CellNum int
Résultat string

GetCellNum() public static méthode

Get cellID by char
public static GetCellNum ( string CellChars ) : int
CellChars string
Résultat int

GetCellXCoord() public méthode

Get X location for cell
public GetCellXCoord ( int cellid ) : int
cellid int
Résultat int

GetCellYCoord() public méthode

Get Y location for cell
public GetCellYCoord ( int cellid ) : int
cellid int
Résultat int

GetDirChar() public static méthode

Get dirchar by id
public static GetDirChar ( int DirNum ) : string
DirNum int
Résultat string

GetDirNum() public static méthode

Get dir by chardir
public static GetDirNum ( string DirChar ) : int
DirChar string
Résultat int

GetDirection() public méthode

Get direction of cell with other cell
public GetDirection ( int Cell, int Cell2 ) : int
Cell int
Cell2 int
Résultat int

GetNode() public méthode

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

GetPathPattern() public méthode

Get pattern for sending to client move
public GetPathPattern ( int id ) : string
id int
Résultat string

InLine() public méthode

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

LastNode() public méthode

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

LoadMoves() public méthode

Load moves from a string
public LoadMoves ( string path ) : void
path string
Résultat void

NextCell() public méthode

Get next cell in dir
public NextCell ( int cell, int dir ) : int
cell int
dir int
Résultat int

PathEngine() public méthode

public PathEngine ( Database map ) : System
map Database
Résultat System

PathEngine() public méthode

public PathEngine ( List cells, Database map ) : System
cells List
map Database
Résultat System

PathEngine() public méthode

public PathEngine ( string path, Database map ) : System
path string
map Database
Résultat System

PathEngine() public méthode

public PathEngine ( string path, int sCell, int sDir, Database map ) : System
path string
sCell int
sDir int
map Database
Résultat System