VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmodel
groundMoveDirectionController.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
#pragma once
11
12
#include "
vrfmodel/vrfmodelDefines.h
"
13
#include "
vrfmodel/gndAutoCntlr.h
"
14
15
class
DtAnalogInputPort
;
16
class
DtInputPortGroup
;
17
class
DtGroundMoveDirectionControllerDescriptor
;
18
28
class
DT_DLL_vrfmodel
DtGroundMoveDirectionController
:
public
DtGroundAutoControllerComponent
29
{
30
private
:
32
DtGroundMoveDirectionController
();
34
DtGroundMoveDirectionController
(
const
DtGroundMoveDirectionController
&
35
orig);
37
const
DtGroundMoveDirectionController
&
operator=
(
const
38
DtGroundMoveDirectionController
& orig);
39
40
public
:
43
DtGroundMoveDirectionController
(
const
DtString
& name,
44
DtVrfObject
* owner,
45
DtSimManager
* simManager,
46
DtComponentDescriptor
* desc = 0,
47
DtReaderWriterRegistry
* parentRegistry = 0);
48
50
virtual
~
DtGroundMoveDirectionController
();
51
52
virtual
bool
init
();
53
56
virtual
DtString
type
()
const
;
57
58
virtual
void
tick
();
59
63
static
DtSimComponent
* creator(
const
DtString
& name,
64
DtVrfObject
* owner,
65
DtSimManager
* simManager,
66
DtComponentDescriptor
* desc = 0,
67
DtReaderWriterRegistry
* parentRegistry = 0);
68
69
protected
:
70
73
virtual
bool
createPorts
();
74
77
virtual
bool
createPortGroups
();
78
79
virtual
bool
createDirectionInputPort();
80
virtual
bool
createSpeedInputPort();
81
virtual
bool
movementControlInputPortGroup();
82
84
virtual
void
setControlsForNormalMove();
87
virtual
void
setControlsForTurnInPlace();
91
virtual
bool
shouldTurnInPlace();
92
93
protected
:
96
103
DtAnalogInputPort
*
myDirectionInputPort
;
104
110
DtAnalogInputPort
*
mySpeedInputPort
;
111
115
DtInputPortGroup
*
myMovementControlInputPortGroup
;
116
118
120
bool
myTurningLastTick
;
121
122
const
DtGroundMoveDirectionControllerDescriptor
*
myMoveDirectionDescriptor
;
123
124
};
125
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)