C# Class RTSEngine.Algorithms.Pathfinder

Inheritance: IDisposable
Mostra file Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Protected Properties

Property Type Description
end Point
gScore ].int[
prev ].Point[
start Point

Private Properties

Property Type Description
BuildPath void
CanMoveFrom bool
Comparison int
DiagDecomp IEnumerable
Estimate int
FindClosestGoal Point
Pathfind void

Public Methods

Method Description
Add ( PathQuery q ) : void
Dispose ( ) : void
InGrid ( Point p ) : bool
Neighborhood ( Point p ) : IEnumerable
NeighborhoodAlign ( Point p ) : IEnumerable
NeighborhoodDiag ( Point p ) : IEnumerable
Pathfinder ( GameState g ) : System
ReissuePathQuery ( PathQuery query, Vector2 start, Vector2 goal, int teamIndex ) : PathQuery
WorkThread ( ) : void

Private Methods

Method Description
BuildPath ( List p, Point cur ) : void
CanMoveFrom ( Point p, Point n, int fowI ) : bool
Comparison ( Point p1, Point p2 ) : int
DiagDecomp ( Point p, Point n ) : IEnumerable
Estimate ( int x, int y ) : int
FindClosestGoal ( Point e, int f, bool c, int &s, int iters ) : Point
Pathfind ( PathQuery q ) : void

Method Details

Add() public method

public Add ( PathQuery q ) : void
q PathQuery
return void

Dispose() public method

public Dispose ( ) : void
return void

InGrid() public static method

public static InGrid ( Point p ) : bool
p Point
return bool

Neighborhood() public static method

public static Neighborhood ( Point p ) : IEnumerable
p Point
return IEnumerable

NeighborhoodAlign() public static method

public static NeighborhoodAlign ( Point p ) : IEnumerable
p Point
return IEnumerable

NeighborhoodDiag() public static method

public static NeighborhoodDiag ( Point p ) : IEnumerable
p Point
return IEnumerable

Pathfinder() public method

public Pathfinder ( GameState g ) : System
g RTSEngine.Data.GameState
return System

ReissuePathQuery() public method

public ReissuePathQuery ( PathQuery query, Vector2 start, Vector2 goal, int teamIndex ) : PathQuery
query PathQuery
start Vector2
goal Vector2
teamIndex int
return PathQuery

WorkThread() public method

public WorkThread ( ) : void
return void

Property Details

end protected_oe property

protected Point end
return Point

gScore protected_oe property

protected int[,] gScore
return ].int[

prev protected_oe property

protected Point[,] prev
return ].Point[

start protected_oe property

protected Point start
return Point