VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfmsgs
ifForceHostility.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: ifForceHostility.h,v $ $Revision: 1.2 $ $State: Exp $
7
** Created: 7/16/04, MEM Updated:
8
*******************************************************************************/
9
12
13
19
20
21
#ifndef ifForceHostility_H_
22
#define ifForceHostility_H_
23
24
#include <
vrfExtProtocol/simInterfaceContent.h
>
25
#include <vlutil/vlString.h>
26
#include <vlutil/vlNetTypes.h>
27
#include <vl/hostStructs.h>
28
29
#include <vector>
30
31
struct
DtNetIfForceHostity
32
{
33
DtNetU8
myNumForces
;
34
DtNetU8
myForce
;
//id of force to set
35
//list of force settings as chars
36
};
37
38
39
//forward defs
40
typedef
std::vector<bool>
DtHostilityVector
;
41
47
#include "
vrfmsgs/vrfmsgsDefines.h
"
48
class
DT_DLL_vrfmsgs
DtIfForceHostility
:
public
DtSimInterfaceContent
49
{
50
51
public
:
53
DtIfForceHostility
();
54
56
DtIfForceHostility
(
const
DtIfForceHostility
& orig);
57
59
const
DtIfForceHostility
&
operator=
(
const
DtIfForceHostility
& orig);
60
61
virtual
~
DtIfForceHostility
();
62
63
virtual
int
type
()
const
;
64
65
virtual
DtSimInterfaceContent
*
clone
()
const
;
66
68
virtual
int
force()
const
;
69
virtual
void
setForce(
int
id
);
70
72
virtual
int
numberOfHostilityEntries()
const
;
73
virtual
void
setNumberOfHostilityEntries(
int
num);
74
75
virtual
const
DtHostilityVector
& hostilityVector()
const
;
76
virtual
DtHostilityVector
& hostilityVector();
77
78
virtual
int
netRepSize
()
const
;
79
80
virtual
bool
setFromNet
(
const
char
* contentBuffer,
unsigned
contentSize);
81
virtual
bool
setToNet
();
82
84
virtual
void
printDataToString
(
DtString
& str);
85
86
static
DtSimInterfaceContent
* creator();
87
88
protected
:
89
int
myForce
;
90
DtHostilityVector
myHostilityVector
;
91
};
92
93
#endif
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)