VR-Forces 4.6 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
vrfmsgs
ifHostilityMatrix.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
15
16
17
#pragma once
18
19
#include <
vrfExtProtocol/simInterfaceContent.h
>
20
#include <vlutil/vlString.h>
21
#include <vlutil/vlNetTypes.h>
22
#include <vl/hostStructs.h>
23
24
#include <vector>
25
26
struct
DtNetIfHostityMatrix
27
{
28
DtNetU8
myNumForces
;
//Number of Forces in matrix (n x n matrix)
29
//list of force settings as chars
30
};
31
32
33
//forward defs
34
typedef
std::vector<bool>
DtHostilityVector
;
35
typedef
std::vector<DtHostilityVector>
DtHostilityMatrix
;
36
typedef
std::vector<DtString>
DtNameVector
;
37
typedef
std::vector<int>
DtForceTypeVector
;
38
43
#include "
vrfmsgs/vrfmsgsDefines.h
"
44
class
DT_DLL_vrfmsgs
DtIfHostilityMatrix
:
public
DtSimInterfaceContent
45
{
46
47
public
:
49
DtIfHostilityMatrix
();
50
52
DtIfHostilityMatrix
(
const
DtIfHostilityMatrix
& orig);
53
55
const
DtIfHostilityMatrix
&
operator=
(
const
DtIfHostilityMatrix
& orig);
56
57
virtual
~
DtIfHostilityMatrix
();
58
59
virtual
int
type
()
const
;
60
61
virtual
DtSimInterfaceContent
*
clone
()
const
;
62
64
virtual
int
numberOfForces()
const
;
65
virtual
void
setNumberOfForces(
int
num);
66
67
//get the hostility list for the given force
68
virtual
const
DtHostilityVector
& hostilityVector(
int
force)
const
;
69
virtual
DtHostilityVector
& hostilityVector(
int
force);
70
72
virtual
int
indexOfForce(
int
)
const
;
73
74
//get the names list
75
virtual
const
DtNameVector
& nameVector()
const
;
76
virtual
DtNameVector
& nameVector();
77
78
//get the force type list that matches indices to actual force ids
79
virtual
const
DtForceTypeVector
& forceTypeVector()
const
;
80
virtual
DtForceTypeVector
& forceTypeVector();
81
82
virtual
int
netRepSize
()
const
;
83
84
virtual
bool
setFromNet
(
const
char
* contentBuffer,
unsigned
contentSize);
85
86
virtual
bool
setToNet
();
87
89
virtual
void
printDataToString
(
DtString
& str);
90
91
static
DtSimInterfaceContent
* creator();
92
93
protected
:
94
DtHostilityMatrix
myHostilityMatrix
;
95
DtNameVector
myNameVector
;
96
DtForceTypeVector
myForceTypeVector
;
97
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)