VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
fixedWingGunneryController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
17 
18 
22 
30 {
31 
32 public:
33 
37  DtLocalObject* owner,
38  DtSimulationServices* simManager,
39  DtComponentDescriptor* desc = 0,
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  virtual ~DtFixedWingGunneryController() override;
44 
47  virtual const char* type() const override;
48 
50  virtual bool init() override;
51 
55  virtual bool postAddComponentsInit() override;
56 
60  virtual void tick() override;
61 
65  static DtSimComponent * creator(const DtString& name,
66  DtLocalObject* owner,
67  DtSimulationServices* simManager,
68  DtComponentDescriptor* desc = 0,
69  DtReaderWriterRegistry* parentRegistry = 0);
70 
74  virtual double entryAltitude() const;
75  virtual double entryAirspeed() const;
76  virtual double diveAngle() const;
77  virtual double strafeRange() const;
78  virtual double aaEngageRange() const;
79  virtual double aaBreakoffRange() const;
81 
87  static DtReaderWriter* provideEntryAltitude(void* controller);
88  static DtReaderWriter* provideEntryAirspeed(void* controller);
89  static DtReaderWriter* provideDiveAngle(void* controller);
90  static DtReaderWriter* provideStrafeRange(void* controller);
91  static DtReaderWriter* provideAaEngageRange(void* controller);
92  static DtReaderWriter* provideAaBreakoffRange(void* controller);
94 
95 protected:
96 
99 
102 
105  orig);
106 
108  virtual bool createPorts() override;
109 
117  virtual void lookupAndCacheProcessSR();
118 
120  virtual DtSimObjectReference chooseTarget(const DtEntityTargetList& targetList);
121 
124 
127 
134 
136 
143 };
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
virtual bool postAddComponentsInit() override
Calls enableTaskTypes()
const DtFixedWingGunneryControllerDescriptor * myFixedWingGunneryControllerDescriptor
Get gun behavior parameters from here.
Definition: fixedWingGunneryController.h:123
Definition: readerWriter.h:85
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
virtual const char * type() const override=0
This returns a string from compTypes.h, and identifies the type of component.
Definition: readerWriterRegistry.h:39
DtVrfTurretedBalGunPSR * myProcessState
Pointer to a process state repository used to store state data associated with this component...
Definition: fixedWingGunneryController.h:142
File: turBalGunPSR.h.
Definition: vrfTurretedBalGunPSR.h:26
virtual bool init() override
Calls setRadio()
Contains class declarations for DtEntityListInputPort, DtEntityListOutputPort, and DtEntityListPortDa...
Definition: entListIOPort.h:29
virtual void tick()
This gives the thread of control to the component. The component is ticked once each simulation from ...
DtEntityListInputPort * myTargetListPort
Input Port Name: target-list Input Port Description: List of detected hostile targets. Input Port Range: Input Port Default Value: Input Group Parent:
Definition: fixedWingGunneryController.h:133
virtual bool createPorts()
Called by init. Derived classes should override this method to create all their input/output ports an...
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:31
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:89
This controller captures the parameters having to do with aircraft cannons, i.e. strafing and aerial ...
Definition: fixedWingGunneryController.h:29
A locally simulated VRF object.
Definition: localObject.h:98
DtFixedWingGunneryControllerDescriptor, descriptor for the DtFixedWingGunneryController component...
Definition: fixedWingGunneryControllerDescriptor.h:20

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)