gwnavruntime/abstractgraph/abstractgraphutils.h Source File

abstractgraphutils.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 #ifndef Navigation_AbstractGraphUtils_H
8 #define Navigation_AbstractGraphUtils_H
9 
13 
14 namespace Kaim
15 {
16 
17 class ActiveData;
18 class NavCell;
19 class NavCellBlob;
20 
21 
22 class AbstractGraphUtils
23 {
24 public:
25  static bool HasCellBoundaries(const NavCellBlob* navCellBlob, KyUInt8 wantedCellBoundaries);
26  static void GetCellBoundaries(const NavCellBlob* navCellBlob, KyUInt8& cellBoundariesMask);
27  static void GetCellBoundariesInFloor(const NavCellBlob* navCellBlob, KyUInt32 floorIdx, KyUInt8& cellBoundaries);
28  static NavCell* GetNavCellFromCellPos(const CellPos& cellPos, ActiveData* activeData);
29 
30  // Determine along which axis the position will be compared :
31  // CardinalDir_NORTH or CardinalDir_SOUTH are done along X axis (index = 0)
32  // CardinalDir_EAST or CardinalDir_WEST are done along Y axis (index = 1)
33  static KyUInt32 GetNavVertexAxisIndexFromCellBoundary(CardinalDir cellBoundaryDir);
34 };
35 
36 }
37 
38 
39 #endif
Vec2i CellPos
A type that represents the position of a cell within a 2D grid.
Definition: navmeshtypes.h:33
KyUInt32 CardinalDir
Defines a type that refers to one of the cardinal points on the compass:
Definition: cardinaldir.h:23
unsigned char KyUInt8
Type used internally to represent an unsigned 8-bit integer.
Definition: types.h:41
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36