VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
humanWeaponStateActuator.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
15 
16 class DtIntegerInputPort;
17 class DtStringOutputPort;
20 
32 {
33 
34 public:
35 
39  DtVrfObject* owner,
40  DtSimManager* simManager,
41  DtComponentDescriptor* desc = 0,
42  DtReaderWriterRegistry* parentRegistry = 0);
43 
45  virtual ~DtHumanWeaponStateActuator();
46 
49  virtual const char* type() const;
50 
55  virtual void tick();
56 
60  static DtSimComponent * creator(const DtString& name,
61  DtVrfObject* owner,
62  DtSimManager* simManager,
63  DtComponentDescriptor* desc = 0,
64  DtReaderWriterRegistry* parentRegistry = 0);
65 
66 protected:
67 
69  virtual bool createPorts();
70 
74  virtual bool postureSuitableForFiring(DtLifeformState posture);
75 
76 
77 protected:
78 
81 
84  const DtHumanWeaponStateActuator& orig);
85 
88  const DtHumanWeaponStateActuator& orig);
89 
90 protected:
91 
94 
101 
108 
110 
112 
114 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtHumanWeaponStateActuatorDescriptor; a descriptor for the DtHumanWeaponStateActuator component...
Definition: humanWeaponStateActuatorDescriptor.h:19
DtIntegerInputPort * myLifeFormWeaponStatePort
Input Port Name: weapon-state Input Port Description: Lifeform posture state enumeration.
Definition: humanWeaponStateActuator.h:100
Instances of DtStringOutputPort are output ports through which data producers can send a DtString obj...
Definition: stringIOPort.h:52
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtActuatorComponent & operator=(const DtActuatorComponent &orig)
assignment operator
Description: This repository holds all information that is common to all the forms of humans within t...
Definition: humanStateRepository.h:32
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
Contains class declarations for DtIntegerInputPort, DtIntegerOutputPort, and DtIntegerPortData.
Definition: integerIOPort.h:25
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.
DtHumanWeaponStateActuator updates the weapon state for the an individual lifeform entity...
Definition: humanWeaponStateActuator.h:31
virtual bool createPorts()
Called by init.
const DtHumanWeaponStateActuatorDescriptor * myWeaponStateDescriptor
Definition: humanWeaponStateActuator.h:113
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
DtHumanStateRepository * myHumanSR
Definition: humanWeaponStateActuator.h:111
DtStringOutputPort * myHandItemPort
Output Port Name: hand-item Output Port Description: Outputs the hand item to be used.
Definition: humanWeaponStateActuator.h:107
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)