gwnavruntime/navgraph/vertexdata.h Source File

vertexdata.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 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 
8 // ---------- Primary contact: JUBA - secondary contact: NOBODY
9 #ifndef Navigation_VertexData_H
10 #define Navigation_VertexData_H
11 
14 
15 namespace Kaim
16 {
17 class NavGraphLink;
18 
19 /* For internal use. */
20 class GraphVertexData
21 {
22  KY_DEFINE_NEW_DELETE_OPERATORS(MemStat_NavData)
23 
24 public:
25  GraphVertexData() : m_startIdxInEdgeDataArray(0), m_navGraphLink(KY_NULL) {}
26 
27 public:
28  KyUInt32 m_startIdxInEdgeDataArray; /*< index of the first index of the outgoingEdge in */
29  CellPos m_cellPos; // the CellPos in which the vertex has been spatialized
30  NavGraphLink* m_navGraphLink;
31 };
32 
33 }
34 
35 #endif //Navigation_VertexData_H
36 
Vec2i CellPos
A type that represents the position of a cell within a 2D grid.
Definition: navmeshtypes.h:33
#define KY_NULL
Null value.
Definition: types.h:247
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36