VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dieWhenHitActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 
12 
16 {
17 public:
18 
19  //constructor
20  DtDieWhenHitActuator(const DtString& name, DtVrfObject* object,
21  DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
22  DtReaderWriterRegistry* parentRegistry = 0);
23 
24  //destructor
25  virtual ~DtDieWhenHitActuator();
26 
27  //Perform any initialization required by the actuator
28  virtual bool init();
29 
30  //Returns a string from compTypes.h, identifying the type of component
31  virtual const char* type() const;
32 
33  //Calculate new kinematic state, and copy it to state repository
34  virtual void tick();
35 
36 protected:
39  virtual bool isEmbarkationParent(const DtVrfObject* object, const DtVrfObject* parentObject);
40 
41 public:
42  static DtSimComponent* creator(const DtString& name, DtVrfObject* object,
43  DtSimManager* simManager, DtComponentDescriptor* compDescriptor,
44  DtReaderWriterRegistry* parentRegistry);
45 
46 protected:
48 };
49 
50 
DtDieWhenHitDescriptor; descriptor for the DtDieWhenHitActuator component.
Definition: dieWhenHitDescriptor.h:21
#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
const DtDieWhenHitDescriptor * myDieWhenHitDescriptor
Definition: dieWhenHitActuator.h:47
virtual bool init()
Overridden to cache a pointer to the entity's radio in this class.
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
End User Description: DtActuator is the base class for all actuator model components.
Definition: actuatorComponent.h:48
virtual void tick()
This gives the thread of control to the component.
This actuator checks for vehicles running this entity over, and if they do, this entity is changed to...
Definition: dieWhenHitActuator.h:15
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:103
virtual const char * type() const =0
Returns a string identifies the class type of component.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)