44 virtual const char*
type()
const;
48 virtual bool createActiveJoystickPort();
51 virtual bool createElevationPort();
56 virtual bool canFire();
DtConstrainedAnalogOutputPort * myElevationPort
Output Port Name: elevation Output Port Description: Output Port Range: -1.
Definition: ballisticGunJoyController.h:99
virtual const char * type() const
Returns a string identifies the class type of component.
#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
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
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
DtOutputPortGroup is a data port group of a data provider.
Definition: outputPortGroup.h:30
DtConstrainedAnalogOutputPort is a version of DtAnalogOutputPort which will constrain any outgoing va...
Definition: constrainedAnalogIOPort.h:54
bool myFireButtonDown
Definition: ballisticGunJoyController.h:112
virtual void joystickDisconnected()=0
Called when joystick is disconnected for this controller.
!!!!!!!!!!!! DtJoyDeviceControllerDescriptor
Definition: joyDeviceControllerDescriptor.h:93
virtual bool createPorts()
Called by init to create the output ports.
virtual void joystickConnected()=0
Called when joystick is connected for this controller.
DtBallisticGunController provides ammunition loading, unloading, and trigger inputs for use by a ball...
Definition: ballisticGunController.h:45
DtBallisticGunJoyController extends the DtBallisticGunController class with the ability to be control...
Definition: ballisticGunJoyController.h:28
const DtBallisticGunController & operator=(const DtBallisticGunController &orig)
Not implemented.
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
virtual bool chooseAmmo(const DtEntityType &targetType, const DtUUID &target, DtSimMunition &munition, DtDetonatorFuze &fuze, int &ammoAvailable)
The chooseAmmo() function is passed a pointer to a target entity and returns the best ammunition to u...
static DtSimComponent * creator(const DtString &name, DtVrfObject *owner, DtSimManager *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat)=0
Override to set.
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtBooleanOutputPort * myActiveJoystickPort
Output Port Name: joystick-active Output Port Description: Indicates whether controller behavior is b...
Definition: ballisticGunJoyController.h:107
Will manage basic functionality of a joystick controller.
Definition: joystickControllerInterface.h:23
bool myFiring
Definition: ballisticGunJoyController.h:111
virtual void tick()
Calculate new control values.