45 virtual const char*
type()
const override;
55 virtual bool chooseAmmo(
const DtEntityType& name = DtEntityType::nullType());
69 virtual void tick()
override;
72 const DtString& functionGroup,
const DtString&
function,
double value,
bool repeat)
override;
DtConstrainedAnalogOutputPort * myElevationPort
Output Port Name: elevation Output Port Description: Output Port Range: -1. to 1. Output Port Default Value: Output Group Parent:
Definition: ballisticGunJoyController.h:101
Instances of DtBooleanOutputPort are output ports through which data producers can send boolean data...
Definition: boolIOPort.h:45
virtual const char * type() const override
Returns a string identifies the class type of component. Type values are defined in compTypes...
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:49
Definition: readerWriterRegistry.h:39
DtOutputPortGroup is a data port group of a data provider. It may contain any number of DtOutputPorts...
Definition: outputPortGroup.h:34
virtual void joystickDisconnected() override
Called when joystick is disconnected for this controller.
const DtBallisticGunJoyController & operator=(const DtBallisticGunJoyController &orig)
assignment operator; not implemented
DtConstrainedAnalogOutputPort is a version of DtAnalogOutputPort which will constrain any outgoing va...
Definition: constrainedAnalogIOPort.h:57
virtual bool createPorts() override
Overridden to create output ports.
bool myFireButtonDown
Definition: ballisticGunJoyController.h:114
!!!!!!!!!!!! DtJoyDeviceControllerDescriptor
Definition: joyDeviceControllerDescriptor.h:93
const char DtBallisticGunJoyControllerType[]
DtBallisticGunJoyController extends the DtBallisticGunController class with the ability to be control...
Definition: ballisticGunJoyController.h:27
static DtSimComponent * creator(const DtString &name, DtLocalObject *owner, DtSimulationServices *simManager, DtComponentDescriptor *desc=0, DtReaderWriterRegistry *parentRegistry=0)
DtBallisticGunController provides ammunition loading, unloading, and trigger inputs for use by a ball...
Definition: ballisticGunController.h:49
Definition: ballisticGunJoyController.h:29
virtual void tick() override
Calculate new control values.
virtual ~DtBallisticGunJoyController() override
destructor
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
virtual DtBooleanOutputPort * activeJoystickPort() const
virtual bool chooseAmmo(const DtEntityType &name=DtEntityType::nullType())
virtual bool createActiveJoystickPort()
These are called in init to create the ports used to communicate with the actuator.
VRF4API_METHOD const DtSimulationServices * simManager() const
This is the deprecated API that can be used as a reference to migrate 4.X code to 5...
Definition: simComponent.h:583
virtual bool createElevationPort()
DtBallisticGunJoyController()
Default constructor; not implemented.
virtual void joystickConnected() override
Called when joystick is connected for this controller.
DtBooleanOutputPort * myActiveJoystickPort
Output Port Name: joystick-active Output Port Description: Indicates whether controller behavior is b...
Definition: ballisticGunJoyController.h:109
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat) override
Override to set.
Will manage basic functionality of a joystick controller. Implement pure virtual functions to respons...
Definition: joystickControllerInterface.h:23
bool myFiring
Definition: ballisticGunJoyController.h:113
virtual DtSymbolString name() const
Accessor for name of this readable/writable object.
virtual DtConstrainedAnalogOutputPort * elevationPort() const
A locally simulated VRF object.
Definition: localObject.h:98