C# Класс Pathfinding.Path

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
callback OnPathDelegate
duration float
enabledTags int
heuristic Heuristic
heuristicScale float
immediateCallback OnPathDelegate
nnConstraint NNConstraint
path List
searchIterations int
searchedNodes int
vectorPath List

Защищенные свойства (Protected)

Свойство Тип Описание
currentR PathNode
hTarget Int3
hTargetNode GraphNode
hasBeenReset bool
internalTagPenalties int[]
manualTagPenalties int[]
maxFrameTime float

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
HasExceededTime ( int searchedNodes, long targetTime ) : bool
Recycle ( ) : void
Trace ( PathNode from ) : void

Приватные методы

Метод Описание
ErrorCheck ( ) : void
LogError ( string msg ) : void

Описание методов

AdvanceState() публичный Метод

public AdvanceState ( ) : void
Результат void

AdvanceState() публичный Метод

public AdvanceState ( PathState s ) : void
s PathState
Результат void

CalculateHScore() публичный Метод

public CalculateHScore ( GraphNode node ) : uint
node GraphNode
Результат uint

CalculateStep() публичный абстрактный Метод

public abstract CalculateStep ( long targetTick ) : void
targetTick long
Результат void

CanTraverse() публичный Метод

public CanTraverse ( GraphNode node ) : bool
node GraphNode
Результат bool

Claim() публичный Метод

public Claim ( System o ) : void
o System
Результат void

Cleanup() публичный Метод

public Cleanup ( ) : void
Результат void

DebugString() публичный Метод

public DebugString ( PathLog logMode ) : string
logMode PathLog
Результат string

Error() публичный Метод

public Error ( ) : void
Результат void

ForceLogError() публичный Метод

public ForceLogError ( string msg ) : void
msg string
Результат void

GetConnectionSpecialCost() публичный Метод

public GetConnectionSpecialCost ( GraphNode a, GraphNode b, uint currentCost ) : uint
a GraphNode
b GraphNode
currentCost uint
Результат uint

GetHTarget() публичный Метод

public GetHTarget ( ) : Int3
Результат Int3

GetState() публичный Метод

public GetState ( ) : PathState
Результат PathState

GetTagPenalty() публичный Метод

public GetTagPenalty ( int tag ) : uint
tag int
Результат uint

GetTotalLength() публичный Метод

public GetTotalLength ( ) : float
Результат float

GetTraversalCost() публичный Метод

public GetTraversalCost ( GraphNode node ) : uint
node GraphNode
Результат uint

HasExceededTime() защищенный Метод

protected HasExceededTime ( int searchedNodes, long targetTime ) : bool
searchedNodes int
targetTime long
Результат bool

Initialize() публичный абстрактный Метод

public abstract Initialize ( ) : void
Результат void

IsDone() публичный Метод

public IsDone ( ) : bool
Результат bool

Log() публичный Метод

public Log ( string msg ) : void
msg string
Результат void

OnEnterPool() публичный Метод

public OnEnterPool ( ) : void
Результат void

Prepare() публичный абстрактный Метод

public abstract Prepare ( ) : void
Результат void

PrepareBase() публичный Метод

public PrepareBase ( PathHandler pathHandler ) : void
pathHandler PathHandler
Результат void

Recycle() защищенный абстрактный Метод

protected abstract Recycle ( ) : void
Результат void

Release() публичный Метод

public Release ( System o ) : void
o System
Результат void

ReleaseSilent() публичный Метод

public ReleaseSilent ( System o ) : void
o System
Результат void

Reset() публичный Метод

public Reset ( ) : void
Результат void

ReturnPath() публичный Метод

public ReturnPath ( ) : void
Результат void

Trace() защищенный Метод

protected Trace ( PathNode from ) : void
from PathNode
Результат void

WaitForPath() публичный Метод

public WaitForPath ( ) : IEnumerator
Результат IEnumerator

Описание свойств

callback публичное свойство

public OnPathDelegate callback
Результат OnPathDelegate

currentR защищенное свойство

protected PathNode currentR
Результат PathNode

duration публичное свойство

public float duration
Результат float

enabledTags публичное свойство

public int enabledTags
Результат int

hTarget защищенное свойство

protected Int3 hTarget
Результат Int3

hTargetNode защищенное свойство

protected GraphNode hTargetNode
Результат GraphNode

hasBeenReset защищенное свойство

protected bool hasBeenReset
Результат bool

heuristic публичное свойство

public Heuristic heuristic
Результат Heuristic

heuristicScale публичное свойство

public float heuristicScale
Результат float

immediateCallback публичное свойство

public OnPathDelegate immediateCallback
Результат OnPathDelegate

internalTagPenalties защищенное свойство

protected int[] internalTagPenalties
Результат int[]

manualTagPenalties защищенное свойство

protected int[] manualTagPenalties
Результат int[]

maxFrameTime защищенное свойство

protected float maxFrameTime
Результат float

nnConstraint публичное свойство

public NNConstraint nnConstraint
Результат NNConstraint

path публичное свойство

public List path
Результат List

searchIterations публичное свойство

public int searchIterations
Результат int

searchedNodes публичное свойство

public int searchedNodes
Результат int

vectorPath публичное свойство

public List vectorPath
Результат List