![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: humanAimWeaponController.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00013 00014 #ifndef humanAimWeaponController_h 00015 #define humanAimWeaponController_h 00016 00017 #include "vrfobjcore/cntrlCmpnt.h" 00018 #include "vrfmodel/vrfmodelDefines.h" 00019 00020 class DtHumanMovementControlOutputPortGroup; 00021 class DtAnalogInputPort; 00022 00029 class DT_DLL_vrfmodel DtHumanAimWeaponController : public DtControllerComponent 00030 { 00031 00032 public: 00033 00036 DtHumanAimWeaponController(const DtString& name, 00037 DtVrfObject* owner, 00038 DtSimManager* simManager, 00039 DtComponentDescriptor* desc = 0, 00040 DtReaderWriterRegistry* parentRegistry = 0); 00041 00043 virtual ~DtHumanAimWeaponController(); 00044 00045 virtual bool init(); 00046 00049 virtual DtString type() const; 00050 00051 virtual void tick(); 00052 00056 static DtSimComponent * creator(const DtString& name, 00057 DtVrfObject* owner, 00058 DtSimManager* simManager, 00059 DtComponentDescriptor* desc = 0, 00060 DtReaderWriterRegistry* parentRegistry = 0); 00061 00062 protected: 00063 00065 virtual bool createPortGroups(); 00066 00068 virtual bool createPorts(); 00069 00070 virtual bool createAimDirectionPort(); 00071 00072 private: 00073 00075 DtHumanAimWeaponController(); 00076 00078 DtHumanAimWeaponController(const 00079 DtHumanAimWeaponController & orig); 00080 00082 const DtHumanAimWeaponController & operator=( 00083 const DtHumanAimWeaponController & orig); 00084 00085 00086 protected: 00087 00089 00090 00097 DtAnalogInputPort* myAimDirectionPort; 00098 00100 DtHumanMovementControlOutputPortGroup* myHumanMovementControlOutputPortGroup; 00101 00103 }; 00104 00105 #endif