VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
underFireDeterminationSensor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2004 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 class DtSimMessage;
14 class DtSimRadio;
15 
16 
18 #include "vrfobjcore/fireContext.h"
20 
34 {
35 
36 public:
37 
41  DtVrfObject* owner,
42  DtSimManager* simManager,
43  DtComponentDescriptor* desc = NULL,
44  DtReaderWriterRegistry* parentRegistry = NULL);
45 
49 
54  virtual bool init();
55 
63  static bool processFireCallback(const DtFireContext& fireContext, void* usr);
64 
68  virtual bool determineUnderFire(const DtFireContext& fireContext);
69 
72  virtual const char* type() const;
73 
75  virtual void tick();
76 
79  virtual bool tickWhileDestroyed() const;
80 
84  static DtSimComponent * creator(const DtString& name,
85  DtVrfObject* owner,
86  DtSimManager* simManager,
87  DtComponentDescriptor* desc = 0,
88  DtReaderWriterRegistry* parentRegistry = 0);
89 
90 protected:
91 
93  virtual bool registerForFireNotifications();
94 
96  virtual bool unregisterForFireNotifications();
97 
101  virtual bool isRegisteredForFireNotifications();
102  virtual void setIsRegisteredForFireNotifications(bool yesOrNo);
104 
106  virtual void setUnderFire(const DtFireContext& fireContext);
107 
109  virtual void clearUnderFire();
110 
111 private:
114 
117 
120 
121 protected:
122 
124 
125 private:
127 };
128 
129 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
DtUnderFireDeterminationSensor is a sensor that provides, together with the fire manager, a simple under-fire determination model.
Definition: underFireDeterminationSensor.h:33
class DtSimRadio:
Definition: simRadio.h:25
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
The DtFireContext class exists to contain all the relevent information necessary for an entity to pro...
Definition: fireContext.h:23
virtual bool init()
Calls createPorts and createPortGroups Initializes myLastTickSimTime.
DtUnderFireDeterminationComponentDescriptor; descriptor for the DtUnderFireDeterminationSensor compon...
Definition: underFireDeterminationComponentDescriptor.h:26
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
DtSimComponent & operator=(const DtSimComponent &orig)
assignment operator, not implemented
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102
DtUnderFireDeterminationComponentDescriptor * myUnderFireComponentDescriptor
Definition: underFireDeterminationSensor.h:123
bool myIsRegisteredForFireNotifications
Definition: underFireDeterminationSensor.h:126
virtual const char * type() const =0
Returns a string identifies the class type of component.

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)