VR-Forces 4.8 Class Documentation
 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  DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
28  DtReaderWriterRegistry* parentRegistry = 0);
29 
30  //destructor
32 
33  //Perform any initialization required by the actuator
34  virtual bool init();
35 
36  //Returns a string from compTypes.h, identifying the type of component
37  virtual const char* type() const;
38 
41  virtual void sendDetonation(DtVrfObject *impactedEntity,
42  const DtVector& detonLocation);
43 
46  virtual void sendDetonation(DtDetonationResult result,
47  const DtVector& collisionPt);
48 
49 public:
50 
51  //Creator function to be registered with the DtSimComponentFactory --
52  //see main.cxx
53  static DtSimComponent* creator(const DtString& name, DtVrfObject* object,
54  DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
55  DtReaderWriterRegistry* parentRegistry);
56 
57 protected:
59 
60 };
61 
62 
#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
Parameters for the DtWarheadDetonationActuator.
Definition: spawnObjectWarheadActuatorDescriptor.h:17
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
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual bool init()
Overridden to cache a pointer to the entity's radio in this class.
const DtSpawnObjectWarheadActuatorDescriptor * myDescriptor
Definition: spawnObjectWarheadActuator.h:58
This actuator acts similarly to the DtWarheadDetonationActuator, except that is spawns another object...
Definition: spawnObjectWarheadActuator.h:21
virtual const char * type() const
Returns a string identifies the class type of component.
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
virtual void sendDetonation(const DtVrfObject *impactedEntity, const DtVector &detonLocation)
Creates, fills out, and sends a DtDetonation interaction as a result of an entity collision...
DtWarheadDetonationActuator is an actuator that simulates the detonation for any type of warhead that...
Definition: warheadDetonationActuator.h:48

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)