VR-Forces 5.0.1 Developer's Guide
 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  DtLocalObject* owner,
42  DtSimulationServices* 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  DtLocalObject* owner,
86  DtSimulationServices* 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
DtUnderFireDeterminationSensor is a sensor that provides, together with the fire manager, a simple under-fire determination model.
Definition: underFireDeterminationSensor.h:33
Definition: simRadio.h:30
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
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. The component is ticked once each simulation from ...
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
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:89
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:70
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. Type values are defined in compTypes...
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)