C# Class Pathfinding.Path

Exibir arquivo Open project: jgirald/ES2015F Class Usage Examples

Public Properties

Property Type Description
callback OnPathDelegate
duration float
enabledTags int
heuristic Heuristic
heuristicScale float
immediateCallback OnPathDelegate
nnConstraint NNConstraint
path List
searchIterations int
searchedNodes int
vectorPath List

Protected Properties

Property Type Description
currentR PathNode
hTarget Int3
hTargetNode GraphNode
hasBeenReset bool
internalTagPenalties int[]
manualTagPenalties int[]
maxFrameTime float

Public Methods

Method Description
AdvanceState ( ) : void
AdvanceState ( PathState s ) : void
CalculateHScore ( GraphNode node ) : uint
CalculateStep ( long targetTick ) : void
CanTraverse ( GraphNode node ) : bool
Claim ( System o ) : void
Cleanup ( ) : void
DebugString ( PathLog logMode ) : string
Error ( ) : void
ForceLogError ( string msg ) : void
GetConnectionSpecialCost ( GraphNode a, GraphNode b, uint currentCost ) : uint
GetHTarget ( ) : Int3
GetState ( ) : PathState
GetTagPenalty ( int tag ) : uint
GetTotalLength ( ) : float
GetTraversalCost ( GraphNode node ) : uint
Initialize ( ) : void
IsDone ( ) : bool
Log ( string msg ) : void
OnEnterPool ( ) : void
Prepare ( ) : void
PrepareBase ( PathHandler pathHandler ) : void
Release ( System o ) : void
ReleaseSilent ( System o ) : void
Reset ( ) : void
ReturnPath ( ) : void
WaitForPath ( ) : IEnumerator

Protected Methods

Method Description
HasExceededTime ( int searchedNodes, long targetTime ) : bool
Recycle ( ) : void
Trace ( PathNode from ) : void

Private Methods

Method Description
ErrorCheck ( ) : void
LogError ( string msg ) : void

Method Details

AdvanceState() public method

public AdvanceState ( ) : void
return void

AdvanceState() public method

public AdvanceState ( PathState s ) : void
s PathState
return void

CalculateHScore() public method

public CalculateHScore ( GraphNode node ) : uint
node GraphNode
return uint

CalculateStep() public abstract method

public abstract CalculateStep ( long targetTick ) : void
targetTick long
return void

CanTraverse() public method

public CanTraverse ( GraphNode node ) : bool
node GraphNode
return bool

Claim() public method

public Claim ( System o ) : void
o System
return void

Cleanup() public method

public Cleanup ( ) : void
return void

DebugString() public method

public DebugString ( PathLog logMode ) : string
logMode PathLog
return string

Error() public method

public Error ( ) : void
return void

ForceLogError() public method

public ForceLogError ( string msg ) : void
msg string
return void

GetConnectionSpecialCost() public method

public GetConnectionSpecialCost ( GraphNode a, GraphNode b, uint currentCost ) : uint
a GraphNode
b GraphNode
currentCost uint
return uint

GetHTarget() public method

public GetHTarget ( ) : Int3
return Int3

GetState() public method

public GetState ( ) : PathState
return PathState

GetTagPenalty() public method

public GetTagPenalty ( int tag ) : uint
tag int
return uint

GetTotalLength() public method

public GetTotalLength ( ) : float
return float

GetTraversalCost() public method

public GetTraversalCost ( GraphNode node ) : uint
node GraphNode
return uint

HasExceededTime() protected method

protected HasExceededTime ( int searchedNodes, long targetTime ) : bool
searchedNodes int
targetTime long
return bool

Initialize() public abstract method

public abstract Initialize ( ) : void
return void

IsDone() public method

public IsDone ( ) : bool
return bool

Log() public method

public Log ( string msg ) : void
msg string
return void

OnEnterPool() public method

public OnEnterPool ( ) : void
return void

Prepare() public abstract method

public abstract Prepare ( ) : void
return void

PrepareBase() public method

public PrepareBase ( PathHandler pathHandler ) : void
pathHandler PathHandler
return void

Recycle() protected abstract method

protected abstract Recycle ( ) : void
return void

Release() public method

public Release ( System o ) : void
o System
return void

ReleaseSilent() public method

public ReleaseSilent ( System o ) : void
o System
return void

Reset() public method

public Reset ( ) : void
return void

ReturnPath() public method

public ReturnPath ( ) : void
return void

Trace() protected method

protected Trace ( PathNode from ) : void
from PathNode
return void

WaitForPath() public method

public WaitForPath ( ) : IEnumerator
return IEnumerator

Property Details

callback public_oe property

public OnPathDelegate callback
return OnPathDelegate

currentR protected_oe property

protected PathNode currentR
return PathNode

duration public_oe property

public float duration
return float

enabledTags public_oe property

public int enabledTags
return int

hTarget protected_oe property

protected Int3 hTarget
return Int3

hTargetNode protected_oe property

protected GraphNode hTargetNode
return GraphNode

hasBeenReset protected_oe property

protected bool hasBeenReset
return bool

heuristic public_oe property

public Heuristic heuristic
return Heuristic

heuristicScale public_oe property

public float heuristicScale
return float

immediateCallback public_oe property

public OnPathDelegate immediateCallback
return OnPathDelegate

internalTagPenalties protected_oe property

protected int[] internalTagPenalties
return int[]

manualTagPenalties protected_oe property

protected int[] manualTagPenalties
return int[]

maxFrameTime protected_oe property

protected float maxFrameTime
return float

nnConstraint public_oe property

public NNConstraint nnConstraint
return NNConstraint

path public_oe property

public List path
return List

searchIterations public_oe property

public int searchIterations
return int

searchedNodes public_oe property

public int searchedNodes
return int

vectorPath public_oe property

public List vectorPath
return List