C# Class EpPathFinding.StaticGrid

Inheritance: BaseGrid
Exibir arquivo Open project: OpenNos/OpenNos Class Usage Examples

Public Methods

Method Description
Clone ( ) : BaseGrid
GetNodeAt ( EpPathFinding.GridPos iPos ) : Node
GetNodeAt ( int iX, int iY ) : Node
IsWalkableAt ( EpPathFinding.GridPos iPos ) : bool
IsWalkableAt ( int iX, int iY ) : bool
Reset ( ) : void
Reset ( bool iMatrix ) : void
SetWalkableAt ( EpPathFinding.GridPos iPos, byte iWalkable ) : bool
SetWalkableAt ( int iX, int iY, byte iWalkable ) : bool
StaticGrid ( StaticGrid b ) : System.Collections.Generic
StaticGrid ( int iWidth, int iHeight, bool iMatrix = null ) : System.Collections.Generic

Protected Methods

Method Description
IsInside ( EpPathFinding.GridPos iPos ) : bool
IsInside ( int iX, int iY ) : bool

Private Methods

Method Description
buildNodes ( int iWidth, int iHeight, IList iMatrix ) : EpPathFinding.Node[][]

Method Details

Clone() public method

public Clone ( ) : BaseGrid
return BaseGrid

GetNodeAt() public method

public GetNodeAt ( EpPathFinding.GridPos iPos ) : Node
iPos EpPathFinding.GridPos
return Node

GetNodeAt() public method

public GetNodeAt ( int iX, int iY ) : Node
iX int
iY int
return Node

IsInside() protected method

protected IsInside ( EpPathFinding.GridPos iPos ) : bool
iPos EpPathFinding.GridPos
return bool

IsInside() protected method

protected IsInside ( int iX, int iY ) : bool
iX int
iY int
return bool

IsWalkableAt() public method

public IsWalkableAt ( EpPathFinding.GridPos iPos ) : bool
iPos EpPathFinding.GridPos
return bool

IsWalkableAt() public method

public IsWalkableAt ( int iX, int iY ) : bool
iX int
iY int
return bool

Reset() public method

public Reset ( ) : void
return void

Reset() public method

public Reset ( bool iMatrix ) : void
iMatrix bool
return void

SetWalkableAt() public method

public SetWalkableAt ( EpPathFinding.GridPos iPos, byte iWalkable ) : bool
iPos EpPathFinding.GridPos
iWalkable byte
return bool

SetWalkableAt() public method

public SetWalkableAt ( int iX, int iY, byte iWalkable ) : bool
iX int
iY int
iWalkable byte
return bool

StaticGrid() public method

public StaticGrid ( StaticGrid b ) : System.Collections.Generic
b StaticGrid
return System.Collections.Generic

StaticGrid() public method

public StaticGrid ( int iWidth, int iHeight, bool iMatrix = null ) : System.Collections.Generic
iWidth int
iHeight int
iMatrix bool
return System.Collections.Generic