gwnavruntime/abstractgraph/abstractgraphutils.h Source File

abstractgraphutils.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 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 #pragma once
8 
12 
13 namespace Kaim
14 {
15 
16 class ActiveData;
17 class NavCell;
18 class NavCellBlob;
19 
20 
21 class AbstractGraphUtils
22 {
23 public:
24  static bool HasCellBoundaries(const NavCellBlob* navCellBlob, KyUInt8 wantedCellBoundaries);
25  static void GetCellBoundaries(const NavCellBlob* navCellBlob, KyUInt8& cellBoundariesMask);
26  static void GetCellBoundariesInFloor(const NavCellBlob* navCellBlob, KyUInt32 floorIdx, KyUInt8& cellBoundaries);
27  static NavCell* GetNavCellFromCellPos(const CellPos& cellPos, ActiveData* activeData);
28 
29  // Determine along which axis the position will be compared :
30  // CardinalDir_NORTH or CardinalDir_SOUTH are done along X axis (index = 0)
31  // CardinalDir_EAST or CardinalDir_WEST are done along Y axis (index = 1)
32  static KyUInt32 GetNavVertexAxisIndexFromCellBoundary(CardinalDir cellBoundaryDir);
33 };
34 
35 }
36 
37 
Vec2i CellPos
A type that represents the position of a cell within a 2D grid.
Definition: navmeshtypes.h:30
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
KyUInt32 CardinalDir
Defines a type that refers to one of the cardinal points on the compass:
Definition: cardinaldir.h:15
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
std::uint8_t KyUInt8
uint8_t
Definition: types.h:27