8 #ifndef Navigation_BotNeedFullComputeFlags_H
9 #define Navigation_BotNeedFullComputeFlags_H
18 class BotNeedFullComputeFlags
25 BotNeedFullComputeFlags() { SetDefaults(); }
30 m_pathEventListNeedFullCompute =
true;
31 m_colliderCollectionNeedFullCompute =
true;
32 m_trajectoryNeedFullCompute =
true;
33 m_trajectoryFailedToFollowPath =
false;
34 m_pathEventListChangedLastUpdate =
false;
35 m_spatializationNeedUpdate =
true;
38 bool GetPathEventListNeedFullCompute()
const {
return m_pathEventListNeedFullCompute; }
39 bool GetColliderCollectionNeedFullCompute()
const {
return m_colliderCollectionNeedFullCompute; }
40 bool GetTrajectoryNeedFullCompute()
const {
return m_trajectoryNeedFullCompute; }
41 bool GetTrajectoryFailedToFollowPath()
const {
return m_trajectoryFailedToFollowPath; }
42 bool GetPathEventListChangedLastUpdate()
const {
return m_pathEventListChangedLastUpdate; }
43 bool GetSpatializationNeedUpdate()
const {
return m_spatializationNeedUpdate; }
47 m_trajectoryFailedToFollowPath =
false;
48 m_pathEventListNeedFullCompute =
true;
49 m_trajectoryNeedFullCompute =
true;
52 void PathEventListStartedFullCompute()
54 m_pathEventListNeedFullCompute =
false;
57 void PathEventListHasChanged()
59 m_pathEventListChangedLastUpdate =
true;
62 void PathEventListUnchanged()
64 m_pathEventListChangedLastUpdate =
false;
67 void TrajectoryHasBeenFullyRecomputed()
69 m_trajectoryNeedFullCompute =
false;
72 void TrajectoryFailedToFollowPath()
74 m_trajectoryFailedToFollowPath =
true;
77 void ColliderCollectionHasBeenFullyRecomputed()
79 m_colliderCollectionNeedFullCompute =
false;
82 void EnableAvoidanceHasChanged()
87 void PathEventListConfigHasChanged()
89 m_pathEventListNeedFullCompute =
true;
90 m_trajectoryNeedFullCompute =
true;
93 void ShortcutTrajectoryConfigHasChanged()
95 m_trajectoryNeedFullCompute =
true;
98 void SplineTrajectoryConfigHasChanged()
100 m_trajectoryNeedFullCompute =
true;
103 void TrajectoryModeHasChanged()
105 m_trajectoryNeedFullCompute =
true;
108 void ColliderCollectorConfigHasChanged()
110 m_colliderCollectionNeedFullCompute =
true;
111 m_trajectoryNeedFullCompute =
true;
114 void AvoidanceConfigHasChanged()
119 void DoComputeTrajectoryHasBecomeTrue()
121 m_trajectoryNeedFullCompute =
true;
124 void PositionHasChanged()
126 m_spatializationNeedUpdate =
true;
129 void SpatializationUpdated()
131 m_spatializationNeedUpdate =
false;
136 bool m_pathEventListNeedFullCompute;
137 bool m_colliderCollectionNeedFullCompute;
138 bool m_trajectoryNeedFullCompute;
139 bool m_trajectoryFailedToFollowPath;
140 bool m_pathEventListChangedLastUpdate;
141 bool m_spatializationNeedUpdate;
147 #endif // Navigation_BotNeedFullComputeFlags_H
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137