gwnavgamekit/gamekitnavigationprofile.h Source File

gamekitnavigationprofile.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 
13 
14 namespace Kaim
15 {
16 
17 class GameKitSmartObjectCostTable;
18 
19 class GameKitPathEventListObserver : public IPathEventListObserver
20 {
21 public:
22  GameKitPathEventListObserver(Ptr<GameKitSmartObjectCostTable> smartObjectHashMap);
23  ~GameKitPathEventListObserver();
24 
25  virtual void OnPathEventListBuildingStageDone(Bot* bot, PathEventList& pathEventList, KyUInt32 firstIndexOfNewEvent, FirstIntervalStatus firstIntervalStatus);
26  virtual void OnPathEventListDestroy(Bot* bot, PathEventList& pathEventList, DestructionPurpose destructionPurpose);
27 
28 public:
29  Ptr<GameKitSmartObjectCostTable> m_smartObjectCostTable;
30 };
31 
32 
35 class GameKitNavigationProfile : public NavigationProfile<Kaim::GameKitTraverseLogic>
36 {
37 public:
38  GameKitNavigationProfile(Ptr<GameKitSmartObjectCostTable> smartObjectCostTable = nullptr);
40 
41  virtual Ptr<IPathEventListObserver> GetSharedPathEventListObserver() { return m_gamePathEventListObserver; }
42 
43 public:
44  Ptr<GameKitPathEventListObserver> m_gamePathEventListObserver;
45 };
46 
47 }
48 
GameKitNavigationProfile must be added to Kaim::World and set to Bot in order to use the GameKitPathE...
Definition: gamekitnavigationprofile.h:35
virtual Ptr< IPathEventListObserver > GetSharedPathEventListObserver()
IPathEventListObserver is called in BasePathProgressComputer::Update()
Definition: gamekitnavigationprofile.h:41
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
BaseNavigationProfile and its derivation NavigationProfile is a class that simplifies ...
Definition: navigationprofile.h:28
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17