VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfObjectNavInterface.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
15 
16 class DtNavArea;
17 
19 {
20 private:
26  DtVrfObjectNavInterface& operator=(const DtVrfObjectNavInterface& orig);
27 
28 public:
29  //static DtVrfObjectNavInterface* create(DtVrfObject* vrfObject);
30 
32  virtual bool ableToNavigate() const;
33 
34 protected:
38  virtual bool init();
39 
40 public:
41 
44  virtual void postObjectInit() {};
45 
46  virtual void tick();
47  virtual void firstTick();
48 
49  virtual ~DtVrfObjectNavInterface() = 0;
50 
51  virtual void addNavAreaChangedCallback(DtNoArgumentCallbackList::DtCallbackFunctionType callback, void* usr) const;
52  virtual void removeNavAreaChangedCallback(DtNoArgumentCallbackList::DtCallbackFunctionType callback, void* usr) const;
53  virtual void invokeNavAreaChangedCallbacks();
54 
56  virtual void changingNavArea(DtNavArea* newNavArea);
57 
58 protected:
62  virtual bool isCollidableWhenDestroyed() const;
63 
64 protected:
68 
70 };
DtNoArgumentCallbackList myChangedNavAreaCallbackList
Definition: vrfObjectNavInterface.h:69
Definition: vrfObjectNavInterface.h:18
void(* DtCallbackFunctionType)(void *)
The function signature of the callback function.
Definition: noArgumentCallbackList.h:156
DtNavArea * myCurrentNavArea
Definition: vrfObjectNavInterface.h:67
DtSharedVrfObjectReference class will allocate an empty DtVrfObjectReference if one is not assigned s...
Definition: vrfObjectReference.h:102
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
Contains all the data and logic for navigation within a specific area.
Definition: navArea.h:179
This class works just as DtCalllbackTable, but manages callbacks that have no arguments, and therefore don't fit in the template defined by DtCallbackList.
Definition: noArgumentCallbackList.h:152
DtSharedVrfObjectReference myVrfObject
Definition: vrfObjectNavInterface.h:65
bool myFirstTick
Definition: vrfObjectNavInterface.h:66
virtual void postObjectInit()
Perform additional initialization after the object has been initialized.
Definition: vrfObjectNavInterface.h:44
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)