VR-Forces 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 
48  virtual ~DtUnderFireDeterminationSensor() override;
49 
54  virtual bool init() override;
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 override;
73 
75  virtual void tick() override;
76 
79  virtual bool tickWhileDestroyed() const override;
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 underFireFromDetonation(const DtFireContext& fireContext) const;
94 
96  virtual bool underFireFromFire(const DtFireContext& fireContext) const;
97 
99  virtual bool registerForFireNotifications();
100 
102  virtual bool unregisterForFireNotifications();
103 
107  virtual bool isRegisteredForFireNotifications();
108  virtual void setIsRegisteredForFireNotifications(bool yesOrNo);
110 
112  virtual void setUnderFire(const DtFireContext& fireContext);
113 
115  virtual void clearUnderFire();
116 
117 private:
120 
123 
126 
127 protected:
128 
130 
131 private:
133 };
134 
135 
#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:24
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:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
DtUnderFireDeterminationComponentDescriptor * myUnderFireComponentDescriptor
Definition: underFireDeterminationSensor.h:129
bool myIsRegisteredForFireNotifications
Definition: underFireDeterminationSensor.h:132
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.
Definition: localObject.h:98

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)