VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfmodel
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
12
#include "
vrfmodel/groundAutoControllerComponent.h
"
13
#include "
vrfmodel/joystickControllerInterface.h
"
14
#include "
vrfobjcore/simRadio.h
"
15
16
class
DtString
;
17
class
DtSimManager
;
18
class
DtJoyDeviceControllerDescriptor
;
19
20
25
#include "
vrfmodel/vrfmodelDefines.h
"
26
class
DT_DLL_vrfmodel
DtGroundJoyMoveController
:
public
DtGroundAutoControllerComponent
,
public
DtJoystickControllerInterface
27
{
28
public
:
29
32
DtGroundJoyMoveController
(
const
DtString
& name,
DtVrfObject
* owner,
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
57
DtGroundJoyMoveController
();
58
60
DtGroundJoyMoveController
(
61
const
DtGroundJoyMoveController
& orig);
62
64
DtGroundJoyMoveController
&
operator=
(
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(
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
:
79
int
myCurrentGear
;
80
int
myJoystickGear
;
81
82
bool
myCollisionDetected
;
83
bool
myInternalCollisionDetected
;
84
bool
myBreaking
;
85
};
86
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)