gwnavgamekit/gamekitnavigationprofile.h Source File

gamekitnavigationprofile.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 
9 // primary contact: MAMU - secondary contact:
10 #ifndef Navigation_GameKitNavigationProfile_H
11 #define Navigation_GameKitNavigationProfile_H
12 
15 
18 
19 
20 namespace Kaim
21 {
22 class GameKitSmartObjectCostTable;
23 
24 class GameKitPathEventListObserver : public IPathEventListObserver
25 {
26 public:
27  GameKitPathEventListObserver(Ptr<GameKitSmartObjectCostTable> smartObjectHashMap);
28  ~GameKitPathEventListObserver();
29 
30  virtual void OnPathEventListBuildingStageDone(Bot* bot, PathEventList& pathEventList, KyUInt32 firstIndexOfNewEvent, FirstIntervalStatus firstIntervalStatus);
31  virtual void OnPathEventListDestroy(Bot* bot, PathEventList& pathEventList, DestructionPurpose destructionPurpose);
32 
33 public:
34  Ptr<GameKitSmartObjectCostTable> m_smartObjectCostTable;
35 };
36 
37 
40 class GameKitNavigationProfile : public NavigationProfile<Kaim::GameKitTraverseLogic>
41 {
42 public:
43  GameKitNavigationProfile(Ptr<GameKitSmartObjectCostTable> smartObjectCostTable = KY_NULL);
45 
46  virtual Ptr<IPathEventListObserver> GetSharedPathEventListObserver() { return m_gamePathEventListObserver; }
47 
48 public:
49  Ptr<GameKitPathEventListObserver> m_gamePathEventListObserver;
50 };
51 
52 }
53 
54 #endif
GameKitNavigationProfile must be added to Kaim::World and set to Bot in order to use the GameKitPathE...
Definition: gamekitnavigationprofile.h:42
virtual Ptr< IPathEventListObserver > GetSharedPathEventListObserver()
IPathEventListObserver is called in BasePathProgressComputer::Update()
Definition: gamekitnavigationprofile.h:49
#define KY_NULL
Null value.
Definition: types.h:247
Definition: gamekitcrowddispersion.h:20
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36