VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
spawnObjectWarheadActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 
14 
17 
22 {
23 public:
24 
25  //constructor
27  DtSimulationServices* simManager, DtComponentDescriptor* compDescriptor,
28  DtReaderWriterRegistry* parentRegistry = 0);
29 
30  //destructor
31  virtual ~DtSpawnObjectWarheadActuator() override;
32 
33  //Perform any initialization required by the actuator
34  virtual bool init() override;
35 
36  //Returns a string from compTypes.h, identifying the type of component
37  virtual const char* type() const override;
38 
41  virtual void sendDetonation(const DtSimObject* impactedEntity, const DtVector& detonLocation) override;
42 
45  virtual void sendDetonation(DtDetonationResult result, const DtVector& collisionPt) override;
46 
47 public:
48 
49  //Creator function to be registered with the DtSimComponentFactory --
50  //see main.cxx
51  static DtSimComponent* creator(const DtString& name, DtLocalObject* object,
52  DtSimulationServices* simManager, DtComponentDescriptor* compDescriptor,
53  DtReaderWriterRegistry* parentRegistry);
54 
55 protected:
57 
58 };
59 
60 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
Parameters for the DtWarheadDetonationActuator. Determines under what circumstances the warhead will ...
Definition: spawnObjectWarheadActuatorDescriptor.h:17
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
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
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
const DtSpawnObjectWarheadActuatorDescriptor * myDescriptor
Definition: spawnObjectWarheadActuator.h:56
This actuator acts similarly to the DtWarheadDetonationActuator, except that is spawns another object...
Definition: spawnObjectWarheadActuator.h:21
virtual void sendDetonation(const DtSimObject *impactedEntity, const DtVector &detonLocation)
Creates, fills out, and sends a DtDetonation interaction as a result of an entity collision...
virtual bool init() override
Overridden to cache a pointer to the entity's radio in this class.
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
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
DtWarheadDetonationActuator is an actuator that simulates the detonation for any type of warhead that...
Definition: warheadDetonationActuator.h:53
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)