VR-Forces 4.3 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
bhaveMsgs
ifSpawnList.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
8
#include <vrfExtProtocol/simInterfaceContent.h>
9
#include "
bhaveMsgs/bhaveMsgsDefines.h
"
10
#include <vector>
11
#include <
vrfmsgs/rwSpawnDataList.h
>
12
//#include <vrfmsgs/rwSpawnData.h>
13
14
namespace
BHAVE
15
{
16
struct
SpawnTemplateListEntry
17
{
18
DtString
myName
;
19
DtString
myDescription
;
20
unsigned
int
mySpawnPtsCount
;
21
unsigned
int
mySinkPtsCount
;
22
23
bool
operator==
(
const
SpawnTemplateListEntry
& rhs)
const
24
{
25
return
((
myName
== rhs.
myName
) && (
myDescription
== rhs.
myDescription
) &&
26
(
mySpawnPtsCount
== rhs.
mySpawnPtsCount
) && (
mySinkPtsCount
== rhs.
mySinkPtsCount
));
27
}
28
29
bool
operator!=
(
const
SpawnTemplateListEntry
& rhs)
const
30
{
31
return
!(*
this
== rhs);
32
}
33
};
34
36
typedef
std::vector<SpawnTemplateListEntry>
SpawnTemplateDescriptionList
;
37
41
class
DT_DLL_bhaveMsgs
DtIfSpawnList
:
public
DtSimInterfaceContent
42
{
43
44
public
:
45
47
DtIfSpawnList
();
48
50
DtIfSpawnList
(
const
DtIfSpawnList
& orig);
51
53
const
DtIfSpawnList
& operator=(
const
DtIfSpawnList
& orig);
54
56
virtual
~
DtIfSpawnList
();
57
59
virtual
int
type()
const
;
60
62
virtual
DtSimInterfaceContent
* clone()
const
;
63
66
const
SpawnTemplateDescriptionList
& spawnTemplateAndDescriptionList()
67
const
;
69
71
virtual
void
setInitialSend(
bool
);
72
bool
initialSend()
const
;
73
76
virtual
void
addTemplateEntry(
DtRwSpawnData
* spawnTemplate,
unsigned
int
spawnPointCount);
77
78
virtual
int
netRepSize()
const
;
79
80
virtual
bool
setFromNet(
const
char
* contentBuffer,
unsigned
contentSize);
81
82
virtual
bool
setToNet();
83
84
virtual
void
printDataToString(
DtString
& str);
85
86
static
DtSimInterfaceContent
* creator();
87
88
protected
:
89
90
SpawnTemplateDescriptionList
mySpawnTemplateList
;
91
bool
myInitialSend
;
92
};
93
94
}
95
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)