VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmsgs
ifEmbarkationInformation.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2005 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: ifEmbarkationInformation.h,v $ $Revision: 1.7 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef DtIfEmbarkationInformation_H_
13
#define DtIfEmbarkationInformation_H_
14
15
#include <vrfExtProtocol/ifaceCont.h>
16
#include <vlutil/vlNetTypes.h>
17
#include <vlpi/NetStructs.h>
18
#include "
vrfmsgs/ifServerRequestResponse.h
"
19
20
#include <vector>
21
25
26
const
int
DtEmbarkCannotEmbark
= 0;
27
const
int
DtEmbarkSlotAvailable
= 1;
28
const
int
DtEmbarkCanDisembark
= 2;
29
const
int
DtEmbarkCannotDisembark
= 3;
30
const
int
DtEmbarkImmediatelyDisembark
= 4;
31
34
const
int
DtEmbarkNoSlotAvailableForEntity
= 4;
35
36
37
struct
DtNetIfEmbarkationInformation
38
{
39
DtNetU32
myResponseId
;
40
DtNetU8
myEmbarkObjectNameLength
;
41
DtNetU8
myParentNameLength
;
42
DtNetU8
myNumberPointsToLoadPosition
;
43
DtNetU8
myResult
;
44
DtNetU32
mySlot
;
45
DtNetU8
myPublishLoadPoints
;
46
DtNetEulerAngles
myEmbarkedOrientation
;
47
DtNetU32
myEmbarkedAppearance
;
48
DtNet64Vector
myEmbarkedPosition
;
49
DtNetU8
myJumpToLocation
;
50
DtNetU8
myTurnToHeading
;
51
};
52
58
#include "
vrfmsgs/vrfmsgsDefines.h
"
59
class
DT_DLL_vrfmsgs
DtIfEmbarkationInformation
:
public
DtIfServerRequestResponse
60
{
61
62
public
:
64
DtIfEmbarkationInformation
();
65
67
DtIfEmbarkationInformation
(
68
const
DtIfEmbarkationInformation
& orig);
69
71
const
DtIfEmbarkationInformation
&
operator=
(
72
const
DtIfEmbarkationInformation
& orig);
73
74
virtual
~
DtIfEmbarkationInformation
();
75
77
virtual
int
type()
const
;
78
80
virtual
DtSimInterfaceContent
* clone()
const
;
81
82
virtual
void
setEmbarkObject(
const
DtString
&);
83
virtual
const
DtString
& embarkObject()
const
;
84
85
virtual
void
setParent(
const
DtString
&);
86
virtual
const
DtString
& parent()
const
;
87
88
virtual
void
setResult(
short
);
89
virtual
short
result()
const
;
90
91
virtual
void
setSlot(
int
);
92
virtual
int
slot()
const
;
93
94
virtual
void
setEmbarkedAppearance(
int
);
95
virtual
int
embarkedAppearance()
const
;
96
97
virtual
void
setJumpToLocation(
bool
);
98
virtual
bool
jumpToLocation()
const
;
99
100
virtual
void
setTurnToHeading(
bool
);
101
virtual
bool
turnToHeading()
const
;
102
103
virtual
void
setEmbarkedOrientation(
const
DtTaitBryan&);
104
virtual
const
DtTaitBryan& embarkedOrientation()
const
;
105
106
virtual
void
setEmbarkedPosition(
const
DtVector
&);
107
virtual
const
DtVector
& embarkedPosition()
const
;
108
109
virtual
void
setLoadPath(
const
std::vector<DtVector>&);
110
virtual
void
addLoadPathPoint(
const
DtVector
&);
111
virtual
const
std::vector<DtVector>& loadPath()
const
;
112
114
virtual
int
netRepSize()
const
;
115
117
virtual
bool
setFromNet(
const
char
* contentBuffer,
unsigned
contentSize);
118
121
virtual
bool
setToNet();
122
125
virtual
void
printDataToString(
DtString
& str);
126
130
static
DtSimInterfaceContent
* creator();
131
132
virtual
void
setPublishLoadPoints(
bool
);
133
virtual
bool
publishLoadPoints()
const
;
134
135
protected
:
136
DtString
myEmbarkObject
;
137
DtString
myParent
;
138
short
myResult
;
139
int
mySlot
;
140
int
myEmbarkedAppearance
;
141
DtTaitBryan
myEmbarkedOrientation
;
142
DtVector
myEmbarkedPosition
;
143
std::vector<DtVector>
myLoadPath
;
144
bool
myPublishLoadPoints
;
145
bool
myJumpToLocation
;
146
bool
myTurnToHeading
;
147
};
148
149
#endif
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
)