gwnavruntime/channel/bubblearray.h Source File
Go to the documentation of this file.
7 #ifndef Navigation_BubbleArray_H
8 #define Navigation_BubbleArray_H
20 class BubbleArrayDisplayConfig;
34 void PushBack(
const Bubble& bubble);
48 void SendVisualDebug(
World* world,
const BubbleArrayDisplayConfig& displayConfig,
const char* listBaseName =
"",
55 KY_INLINE BubbleArray::BubbleArray() {}
56 KY_INLINE BubbleArray::~BubbleArray(){ Clear(); }
58 KY_INLINE
void BubbleArray::Clear() { m_bubbleArray.Clear(); }
59 KY_INLINE
void BubbleArray::Reserve(
KyUInt32 bubbleCount) { m_bubbleArray.Reserve(bubbleCount); }
60 KY_INLINE
void BubbleArray::Resize(
KyUInt32 bubbleCount) { m_bubbleArray.Resize(bubbleCount); }
61 KY_INLINE
void BubbleArray::PushBack(
const Bubble& bubble) { m_bubbleArray.PushBack(bubble); }
62 KY_INLINE
void BubbleArray::Append(
const BubbleArray& other) { m_bubbleArray.Append(other.m_bubbleArray); }
63 KY_INLINE
bool BubbleArray::IsEmpty()
const {
return m_bubbleArray.IsEmpty(); }
64 KY_INLINE
KyUInt32 BubbleArray::GetCount()
const {
return m_bubbleArray.GetCount(); }
65 KY_INLINE Bubble& BubbleArray::At(
KyUInt32 nodeIdx) {
return m_bubbleArray.At(nodeIdx); }
66 KY_INLINE
const Bubble& BubbleArray::At(
KyUInt32 nodeIdx)
const {
return m_bubbleArray.At(nodeIdx); }
67 KY_INLINE Bubble& BubbleArray::operator[](
KyUInt32 nodeIdx) {
return m_bubbleArray[nodeIdx]; }
68 KY_INLINE
const Bubble& BubbleArray::operator[](
KyUInt32 nodeIdx)
const {
return m_bubbleArray[nodeIdx]; }
71 class BubbleArrayPersistentDisplayListIds
74 BubbleArrayPersistentDisplayListIds();
75 ~BubbleArrayPersistentDisplayListIds() {}
77 void Initialize(World* world);
88 class BubbleArrayDisplayConfig
91 BubbleArrayDisplayConfig() { SetDefaults(); }
95 VisualShapeColor m_bubbleColor_CCW;
96 VisualShapeColor m_bubbleColor_CW;
97 VisualColor m_bubbleIdxColor;
102 BubbleArrayPersistentDisplayListIds m_persistentDisplayListIds;
107 #endif // Navigation_BubbleArray_H
This class encapsulate an array of Bubbles.
Definition: bubblearray.h:23
General purpose array for movable objects that require explicit construction/destruction.
Definition: kyarray.h:118
This class is a runtime container for Gameware Navigation WorldElements such as NavData, Bots, BoxObstacles, TagVolumes...
Definition: world.h:54
This class represents a circle with potential rotation limitation.
Definition: bubble.h:35
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36
#define KyUInt32MAXVAL
The maximum value that can be stored in the KyUInt32 variable type.
Definition: types.h:226
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43