gwnavruntime/queries/blobs/pathfinderqueryblob.h Source File
Go to the documentation of this file.
8 #ifndef Navigation_PathFinderQueryBlob_H
9 #define Navigation_PathFinderQueryBlob_H
16 class PathFinderQueryBlob
18 KY_ROOT_BLOB_CLASS(Query, PathFinderQueryBlob, 0)
21 PathFinderQueryBlob() : m_queryType(
KyUInt32MAXVAL), m_result((
KyUInt32)IPathFinderQuery::PathFinderNotInitialized), m_isPathfinderWithDest(0) {}
27 BlobArray<char> m_errorMessage;
32 SwapEndianness(e,
self.m_startPos3f);
33 SwapEndianness(e,
self.m_destPos3f);
34 SwapEndianness(e,
self.m_queryType);
35 SwapEndianness(e,
self.m_result);
36 SwapEndianness(e,
self.m_errorMessage);
37 SwapEndianness(e,
self.m_isPathfinderWithDest);
40 class PathFinderInfoBlobBuilder:
public BaseBlobBuilder<PathFinderQueryBlob>
45 PathFinderInfoBlobBuilder(const IPathFinderQuery* pathFinderQuery): m_pathFinderQuery(pathFinderQuery) {}
46 ~PathFinderInfoBlobBuilder() {}
49 virtual void DoBuild()
51 if (m_pathFinderQuery != NULL)
54 const Vec3f* dest = m_pathFinderQuery->GetDestination();
69 m_pathFinderQuery->GetPathFinderTextResult(text);
75 const IPathFinderQuery* m_pathFinderQuery;
81 #endif // Kaim_PathFinderQueryInputBlob_H
#define BLOB_SET(blob, value)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:136
#define KyFloat32MAXVAL
The maximum value that can be stored in the KyFloat32 variable type.
Definition: types.h:227
#define KY_NULL
Null value.
Definition: types.h:247
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
unsigned char KyUInt8
Type used internally to represent an unsigned 8-bit integer.
Definition: types.h:41
PathFinderQueryBlob * m_blob
The blob maintained by this builder. Only modify using the macros listed under DoBuild().
Definition: baseblobbuilder.h:117
Definition: gamekitcrowddispersion.h:20
#define BLOB_STRING(str, src)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:179
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