![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: humanWeaponStateAct.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00014 00015 #ifndef humanWeaponStateAct_H_ 00016 #define humanWeaponStateAct_H_ 00017 00018 #include "vrfobjcore/actCmpnt.h" 00019 00020 class DtIntegerInputPort; 00021 class DtHumanStateRepository; 00022 00032 #include "vrfmodel/vrfmodelDefines.h" 00033 class DT_DLL_vrfmodel DtHumanWeaponStateActuator : public DtActuatorComponent 00034 { 00035 00036 public: 00037 00040 DtHumanWeaponStateActuator(const DtString& name, 00041 DtVrfObject* owner, 00042 DtSimManager* simManager, 00043 DtComponentDescriptor* desc = 0, 00044 DtReaderWriterRegistry* parentRegistry = 0); 00045 00047 virtual ~DtHumanWeaponStateActuator(); 00048 00051 virtual DtString type() const; 00052 00057 virtual void tick(); 00058 00062 static DtSimComponent * creator(const DtString& name, 00063 DtVrfObject* owner, 00064 DtSimManager* simManager, 00065 DtComponentDescriptor* desc = 0, 00066 DtReaderWriterRegistry* parentRegistry = 0); 00067 00068 protected: 00069 00071 virtual bool createPorts(); 00072 00076 virtual bool postureSuitableForFiring(DtLifeformState posture); 00077 00078 00079 protected: 00080 00082 DtHumanWeaponStateActuator(); 00083 00085 DtHumanWeaponStateActuator( 00086 const DtHumanWeaponStateActuator& orig); 00087 00089 const DtHumanWeaponStateActuator& operator=( 00090 const DtHumanWeaponStateActuator& orig); 00091 00092 protected: 00093 00096 00102 DtIntegerInputPort* myLifeFormWeaponStatePort; 00103 00105 00106 DtHumanStateRepository* myHumanSR; 00107 }; 00108 00109 #endif