BM.PathFind
Type JSONpublic class in BM
Type metadata
- Assembly
CandideServer - Namespace
BM - Base type
BM.Leaf - Hash
19B41A1EB302A2FE7726F8B07CAC45DAF3D9A302EE2962DFDC25F318F94D7945
Relationships
Base type
Fields
| Name | Visibility | Signature |
|---|---|---|
AccelerationScaling# | public | public System.Single AccelerationScaling |
ApproachTimer# | public | public System.Single ApproachTimer |
CurrentNodeIndex# | public | public System.Int32 CurrentNodeIndex |
GoalPosition# | public | public Microsoft.Xna.Framework.Vector2 GoalPosition |
LastDirection# | public | public Microsoft.Xna.Framework.Vector2 LastDirection |
RecalculateTimer# | public | public System.Single RecalculateTimer |
ReversePath# | public | public System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2> ReversePath |
StuckTimer# | public | public System.Single StuckTimer |
TargetEntity# | public | public Shared.Entity.EntityWrapper TargetEntity |
TargetEntityStartPosition# | public | public Microsoft.Xna.Framework.Vector2 TargetEntityStartPosition |
_currentSpeed# | private | private System.Single _currentSpeed |
_entity# | private | private Shared.Entity.EntityWrapper _entity |
_status# | private | private System.Nullable<Node.Status> _status |
Methods
FailedToReachTarget
#
protected System.Void FailedToReachTarget()
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
F287F4DC520D639D8F534A535F7AE7A7CDA4A72EA9B066B830539266CB483387 - Body hash
25613559880A791CA606A35E4AD6AB4653624A06B2312D71571E4BDAD9CF5742 - IL size13
Referenced calls
System.Nullable<Node.Status>::.ctor(!0)
FinishReachedTarget
#
protected System.Void FinishReachedTarget()
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
FD52C3DDF08405DB3490C5F8C0D03FD6FD70148BBB4B47708331D9CE2BED05EA - Body hash
0F26EBF469525166C6588C439239DB1C0C08D00A74105E4900CD2B9B4BE7C7A5 - IL size95
Referenced calls
Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Helpers.VectorExtension::ToFloatDirection(Microsoft.Xna.Framework.Vector2)Shared.Entity.EntityWrapper::set_Direction(System.Single)Microsoft.Xna.Framework.Vector3::get_Zero()Shared.Entity.EntityWrapper::set_Acceleration(Microsoft.Xna.Framework.Vector3)System.Nullable<Node.Status>::.ctor(!0)
Initialize
#
protected System.Void Initialize(BM.BTUpdateContext updateCtx, BM.Blackboard blackboard)
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
A727576F621758D0093731CBDF45BBE8B8117EA8333CEAD05D6E5DF6EB188503 - Body hash
2904583D5741261E341394338F4AC0F6B9139223DD8FA9FBFFF18A8D8B3A71CE - IL size226
Referenced calls
BM.PathFind<T>::UpdateGoalPosition(BM.Blackboard)BM.PathFind<T>::NewPath(BM.Blackboard)BM.NodeArg<System.Boolean>::TryGet(BM.Blackboard, T&)CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::Length()System.Nullable<BM.NodeArg<System.Int32>>::get_HasValue()System.Nullable<BM.NodeArg<System.Int32>>::get_Value()BM.NodeArg<System.Int32>::TryGet(BM.Blackboard, T&)Shared.Entity.EntityWrapper::get_Id()CandideServer.SyncStrategies.SyncStrategy::Everyone()CandideServer.ServerManagers.EntityServerManager::UpdateEntityState(System.Guid, System.Int32, System.Boolean, CandideServer.SyncStrategies.SyncStrategy)
NewPath
#
private System.Void NewPath(BM.Blackboard blackboard)
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
9222F2161B86C4DBCE53DF977678E273A54F18DFD43C439B4AECF13BB3AA0056 - Body hash
B7C798EE99BFB201969904F08BF95C0CA6DB21428D669600A60D7810A77ADAAA - IL size598
Referenced calls
System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::Clear()BM.PathFind<T>::UpdateGoalPosition(BM.Blackboard)Shared.Entity.EntityWrapper::get_Position2()CandideServer.PathFinding.PathFindManager::SetSearchingEntity(Shared.Entity.EntityWrapper, CandideServer.Models.Worlds.WorldModel)System.Diagnostics.Stopwatch::StartNew()CandideServer.PathFinding.PathFindManager::FindPath(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2, System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>, System.Single, System.Int32)BM.PathFind<T>::FailedToReachTarget()System.Diagnostics.Stopwatch::get_Elapsed()System.TimeSpan::FromMilliseconds(System.Double)System.TimeSpan::op_GreaterThanOrEqual(System.TimeSpan, System.TimeSpan)CandideCreator.Shared.Helpers.ServerWarningHelper::Warning(System.String)Microsoft.Xna.Framework.Color::get_Blue()CandideCreator.Shared.Graphics.VisualDebug::Circle(Microsoft.Xna.Framework.Vector2, System.Single, Microsoft.Xna.Framework.Color, System.Single)System.Diagnostics.Stopwatch::Reset()System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::get_Count()Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::op_Division(Microsoft.Xna.Framework.Vector2, System.Single)Microsoft.Xna.Framework.Color::get_Red()System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::Add(!0)BM.PathFind<T>::NextNode()CandideCreator.Shared.Helpers.RandomHelper::NextFloat(System.Random, System.Single, System.Single)
String literals
Slow pathfind first stepSlow pathfind second step
NextNode
#
private System.Void NextNode()
Method metadata
- Visibilityprivate
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
022CC4F104251918B51D12551A7CA934573A7E4B46075A0B53C935A85C20A326 - Body hash
A00F34A783E7825FC8E085D291F483117673B41F5D98983484532B4C4715EAFF - IL size254
Referenced calls
Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::Length()BM.PathFind<T>::FinishReachedTarget()Shared.Helpers.EntityHelper::DistanceBetweenCollisions(Shared.Entity.EntityWrapper, Shared.Entity.EntityWrapper)BM.PathFind<T>::FailedToReachTarget()System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::get_Item(System.Int32)Microsoft.Xna.Framework.Vector2::DistanceSquared(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)
Terminate
#
protected System.Void Terminate(Node.Status s)
Method metadata
- Visibilityprotected
- Return type
System.Void - StaticFalse
- VirtualTrue
- Hash
B0E306A892DB9011413ADA31B5CBC8C74FD16B96F38319F63A664D07791790DF - Body hash
7FF4FEB7A44362BFA728CD30E6646933D43025E8291EE7CA8163404ED0D3DCE4 - IL size30
Referenced calls
Microsoft.Xna.Framework.Vector3::get_Zero()Shared.Entity.EntityWrapper::set_Acceleration(Microsoft.Xna.Framework.Vector3)
Update
#
protected Node.Status Update(BM.BTUpdateContext updateCtx, BM.Blackboard blackboard)
Method metadata
- Visibilityprotected
- Return type
Node.Status - StaticFalse
- VirtualTrue
- Hash
3905589088CD8E0218214F1C874BAA2AE0B678F1720925BD23CC239ED1FD151C - Body hash
6FE6A43BA50653C6A176B2D0B0D4D8FCE40A7F6E768EFB9553C45CA78E1C0EBF - IL size1043
Referenced calls
System.Nullable<Node.Status>::get_HasValue()System.Nullable<Node.Status>::GetValueOrDefault()BM.NodeArg<System.Single>::Get(BM.Blackboard)BM.PathFind<T>::FailedToReachTarget()Shared.Entity.EntityWrapper::get_Position2()Microsoft.Xna.Framework.Vector2::op_Subtraction(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector2::Length()BM.PathFind<T>::FinishReachedTarget()Shared.Helpers.EntityHelper::DistanceBetweenCollisions(Shared.Entity.EntityWrapper, Shared.Entity.EntityWrapper)BM.PathFind<T>::NewPath(BM.Blackboard)Shared.Entity.EntityWrapper::get_DistanceWalked()System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::get_Count()System.Collections.Generic.List<Microsoft.Xna.Framework.Vector2>::get_Item(System.Int32)Microsoft.Xna.Framework.Vector2::Dot(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)CandideCreator.Shared.Helpers.VectorExtension::ToFloatDirection(Microsoft.Xna.Framework.Vector2)Shared.Entity.EntityWrapper::set_Direction(System.Single)System.MathF::Max(System.Single, System.Single)CandideCreator.Shared.Helpers.MathExtension::IsWonky(System.Single)BM.NodeArg<System.Boolean>::TryGet(BM.Blackboard, T&)System.MathF::Min(System.Single, System.Single)CandideCreator.Shared.Helpers.CandideMathHelper::ClampSafe(System.Single, System.Single, System.Single)Shared.Entity.Components.GeneralComponent::Accelerate(Microsoft.Xna.Framework.Vector2)Microsoft.Xna.Framework.Vector3::op_Multiply(Microsoft.Xna.Framework.Vector3, System.Single)BM.PathFind<T>::NextNode()Microsoft.Xna.Framework.Vector2::get_Zero()
UpdateGoalPosition
#
public System.Void UpdateGoalPosition(BM.Blackboard blackboard)
Method metadata
- Visibilitypublic
- Return type
System.Void - StaticFalse
- VirtualFalse
- Hash
1720F31EF6696362704FAA9309C6A29DC523FE4E61937600EA52889880E66828 - Body hash
D29ECCC0596A3FD1D9577B4BA320041BF50A9251D237F321C214F55A5E4B3431 - IL size420
Referenced calls
BM.NodeArg<T>::Get(BM.Blackboard)Shared.Entity.EntityWrapper::get_Position2()System.Func<Shared.Entity.EntityWrapper, Microsoft.Xna.Framework.Vector2>::Invoke(!0)Microsoft.Xna.Framework.Vector2::op_Addition(Microsoft.Xna.Framework.Vector2, Microsoft.Xna.Framework.Vector2)System.Nullable<Microsoft.Xna.Framework.Vector2>::get_HasValue()System.Nullable<Microsoft.Xna.Framework.Vector2>::get_Value()CandideServer.ServerGameState::TryGetServerEntity(System.Guid, CandideServer.Entities.ServerEntityModel&, System.String)
String literals
UpdateGoalPosition