VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disaggregatedDamageActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
16 
17 class DtSimMessage;
18 class DtSimRadio;
19 
22 #define DISAGGDMG_LIFEFORM_VALUE 0.1
23 
30 {
31 private:
32 
35 
38 
41  const DtDisaggregatedDamageActuator& orig);
42 
43 public:
44 
48  DtLocalObject* owner,
49  DtSimulationServices* simManager,
50  DtComponentDescriptor* desc = 0,
51  DtReaderWriterRegistry* parentRegistry = 0);
52 
54  virtual ~DtDisaggregatedDamageActuator() override;
55 
58  virtual const char* type() const override;
59 
63  virtual void tick() override;
64 
68  static DtSimComponent * creator(const DtString& name,
69  DtLocalObject* owner,
70  DtSimulationServices* simManager,
71  DtComponentDescriptor* desc = 0,
72  DtReaderWriterRegistry* parentRegistry = 0);
73 
75  static void setDestroyedCallback(DtSimMessage * msg, void * usrData);
76 
78  static void setFunctionDamageStatusCallback(DtSimMessage * msg, void * usrData);
79 
80 protected:
81 
83  virtual void setDestroyed();
84 
86  virtual void processSetFunctionDamageStatus(DtSimMessage* msg);
87 
89  virtual void setRadio(DtSimRadio* radio) override;
90 
96  virtual double undamagedFraction(const DtDamageState damageLevel) const;
97 
101  virtual DtDamageState damageFromFraction(const double fraction) const;
102 
103 protected:
105 };
106 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Definition: simRadio.h:30
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual void setRadio(DtSimRadio *radio)
Definition: readerWriterRegistry.h:39
End User Description: DtActuator is the base class for all actuator model components. Developer Description: The DtActuator base class caches a pointer to the entity's radio for convenience. Derived classes may have articulated parts that are configured from the DtActuatorComponentDescriptor's DtSimArtPartDescriptorList. For each articulated part in the list a DtArticulatedPartStateRepository will be created to store the data for the part such as it's location, rotation and so forth. These are created in the entity's DtVrfObjectStateRepository createParts() function. This call creates all the attached parts for all the actuators. These articulated state repositories are managed by the DtAttachmentManager. They are cached by their partType which is the DIS Enumeration describing the part from the disEnums.h file and was specified in the actuator's DtActuatorComponentDescriptor as descriped above. The partType is used as the category of the DtEntityType used to look up articulated parts in the DtAttachementManager. When an actuator needs access to a particular articulated part it looks it up by the part's object type.
Definition: actuatorComponent.h:47
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 ...
DtAggregateLocalObjectFacade myAggregateLocalObjectFacade
Definition: disaggregatedDamageActuator.h:104
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
DtPseudoAggregateDamageActuator models damage of an aggregate entity.
Definition: disaggregatedDamageActuator.h:29
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)