VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
groundJoyMoveController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2005 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
14 #include "vrfobjcore/simRadio.h"
15 
16 class DtString;
17 class DtSimManager;
19 
20 
27 {
28 public:
29 
33  DtSimManager* simManager, DtComponentDescriptor* desc,
34  DtReaderWriterRegistry * parentRegistry = 0);
35 
37  virtual ~DtGroundJoyMoveController();
38 
41  virtual const char* type() const;
42 
46  static DtSimComponent * creator(const DtString& name,
47  DtVrfObject* owner,
48  DtSimManager* simManager,
49  DtComponentDescriptor* desc = 0,
50  DtReaderWriterRegistry* parentRegistry = 0);
51 
52  virtual bool collisionDetected();
53 
54 private:
55 
58 
61  const DtGroundJoyMoveController& orig);
62 
65  const DtGroundJoyMoveController& orig);
66 
67 protected:
68  virtual bool detectCollision();
69 
70  // Process colliding with a lifeform. Default will destroy if the lifeform shares
71  // the same parent as the vehicle
72  virtual void collideWithLifeform(const DtVrfObject*);
73 
74  virtual void calcAndSetPortValues(const DtString& functionGroup, const DtString& function, double value, bool repeat);
75  virtual void joystickConnected();
76  virtual void joystickDisconnected();
77 
78 protected:
81 
84  bool myBreaking;
85 };
86 
#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
bool myBreaking
Definition: groundJoyMoveController.h:84
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
const DtGroundAutoControllerComponent & operator=(const DtGroundAutoControllerComponent &orig)
assignment operator; not implemented
bool myCollisionDetected
Definition: groundJoyMoveController.h:82
virtual const char * type() const
Returns a string identifies the class type of component.
virtual void joystickDisconnected()=0
Called when joystick is disconnected for this controller.
!!!!!!!!!!!! DtJoyDeviceControllerDescriptor
Definition: joyDeviceControllerDescriptor.h:93
virtual void joystickConnected()=0
Called when joystick is connected for this controller.
bool myInternalCollisionDetected
Definition: groundJoyMoveController.h:83
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
int myCurrentGear
Definition: groundJoyMoveController.h:79
virtual void calcAndSetPortValues(const DtString &functionGroup, const DtString &function, double value, bool repeat)=0
Override to set.
int myJoystickGear
Definition: groundJoyMoveController.h:80
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:103
DtGroundJoyMoveController is a controller that enables joystick control of a ground vehicle...
Definition: groundJoyMoveController.h:26
Will manage basic functionality of a joystick controller.
Definition: joystickControllerInterface.h:23
DtGroundAutoControllerComponent is a base controller that holds capabilitites common to all automotiv...
Definition: groundAutoControllerComponent.h:33

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)