C# Класс ArkaliaCore.Game.Game.Engines.PathEngine

Показать файл Открыть проект

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