gwnavruntime/channel/stringpulledbubblelist.h Source File
Go to the documentation of this file.
7 #ifndef Navigation_StringPulledBubbleList_H
8 #define Navigation_StringPulledBubbleList_H
20 class StringPullerPersistentDisplayListIds
23 StringPullerPersistentDisplayListIds()
30 ~StringPullerPersistentDisplayListIds() {}
32 void Initialize(World* world);
39 BubbleArrayPersistentDisplayListIds m_bubbleArrayPersistentDisplayListIds;
44 class StringPulledBubbleListDisplayConfig
47 StringPulledBubbleListDisplayConfig() { SetDefaults(); }
51 VisualShapeColor m_edgeColor;
52 VisualColor m_sectorStartColor;
53 VisualColor m_sectorEndColor;
57 BubbleArrayDisplayConfig m_bubbleArrayDisplayConfig;
58 StringPullerPersistentDisplayListIds m_persistentDisplayListIds;
63 class StringPulledEdge
70 Vec2f m_normalizedDir;
73 class StringPulledBubbleList
76 StringPulledBubbleList() {}
81 void PushBubble(
const Bubble& bubble,
KyUInt32 bubbleIndex) { m_bubbleArray.PushBack(bubble); m_bubbleIndexArray.PushBack(bubbleIndex); }
82 void Append(
const StringPulledBubbleList& other);
85 bool IsEmpty()
const {
return m_bubbleArray.IsEmpty(); }
86 KyUInt32 GetBubbleCount()
const {
return m_bubbleArray.GetCount(); }
87 const Bubble& GetBubble(
KyUInt32 bubbleIdx)
const {
return m_bubbleArray[bubbleIdx]; }
88 KyUInt32 GetBubbleIndex(
KyUInt32 bubbleIdx)
const {
return m_bubbleIndexArray[bubbleIdx]; }
89 KyUInt32 GetEdgeCount()
const {
return m_edges.GetCount(); }
90 const StringPulledEdge& GetEdge(
KyUInt32 edgeIdx)
const {
return m_edges[edgeIdx]; }
92 void SendVisualDebug(World* world,
const StringPulledBubbleListDisplayConfig& displayConfig,
const char* listBaseName =
"",
const char* groupName =
"StringPuller",
KyUInt32 visualDebugId =
KyUInt32MAXVAL)
const;
95 BubbleArray m_bubbleArray;
96 KyArray<KyUInt32> m_bubbleIndexArray;
97 KyArray<StringPulledEdge> m_edges;
102 #endif // Navigation_StringPulledBubbleList_H
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
#define KY_NULL
Null value.
Definition: types.h:247
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