gwnavruntime/pathfollower/pathprogressconfig.h Source File

pathprogressconfig.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #pragma once
8 
10 
11 namespace Kaim
12 {
13 
16 {
18 
19 public:
20  AdvancedPathProgressConfig() { SetDefaults(); }
21 
22  void SetDefaults()
23  {
27  }
28 
29 public:
34 
39 
44 };
45 inline void SwapEndianness(Endianness::Target e, AdvancedPathProgressConfig& self)
46 {
47  SwapEndianness(e, self.m_pathValidationMinDistanceBackward);
48  SwapEndianness(e, self.m_pathValidationMinDistanceForward);
49  SwapEndianness(e, self.m_localMaxCostMultiplierOnPathDistance);
50 }
51 
54 {
56 
57 public:
58  PathProgressConfig() { SetDefaults(); }
59 
60  void SetDefaults()
61  {
62  m_checkPointRadius = 0.2f;
63  m_advancedConfig.SetDefaults();
64  }
65 
66 public:
70 
72  AdvancedPathProgressConfig m_advancedConfig;
73 };
74 inline void SwapEndianness(Endianness::Target e, PathProgressConfig& self)
75 {
76  SwapEndianness(e, self.m_checkPointRadius);
77  SwapEndianness(e, self.m_advancedConfig);
78 }
79 
80 } // namespace Kaim
81 
KyFloat32 m_pathValidationMinDistanceForward
The distance the Path is checked forward each time a new Path is computed.
Definition: pathprogressconfig.h:38
Class that aggregates parameters that allow to configure the progress of a Bot on its path...
Definition: pathprogressconfig.h:53
KyFloat32 m_checkPointRadius
The radius around check points that trigger their validation.
Definition: pathprogressconfig.h:69
KyFloat32 m_pathValidationMinDistanceBackward
The distance the Path is checked backward each time a new Path is computed.
Definition: pathprogressconfig.h:33
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:27
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
Class that aggregates path validation minimum distances (advanced parameters)
Definition: pathprogressconfig.h:15
KyFloat32 m_localMaxCostMultiplierOnPathDistance
Distance along the path from the ProgressOnPath used to compute the local maximum-cost-multiplier on ...
Definition: pathprogressconfig.h:43
float KyFloat32
float
Definition: types.h:32