VR-Forces 4.6.1 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
vrftasks
weaponListResponseAdmin.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2012 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include "
vrftasks/adminContent.h
"
14
#include <list>
15
17
enum
DtWeaponSystemType
18
{
19
DtWeaponAllTypes
= 0,
20
DtWeaponDirectFireBallistic
,
21
DtWeaponDirectFireLauncher
,
22
DtWeaponIndirectArtillery
,
23
DtWeaponIndirectFireBombs
24
};
25
26
struct
WeaponSystem
27
{
28
DtString
myWeaponName
;
29
DtWeaponSystemType
myWeaponType
;
30
std::list<DtString>
myResources
;
31
bool
operator==
(
const
WeaponSystem
& rhs)
const
32
{
33
return
((
myWeaponName
== rhs.
myWeaponName
) && (
myWeaponType
== rhs.
myWeaponType
) && (
myResources
== rhs.
myResources
) );
34
}
35
36
bool
operator!=
(
const
WeaponSystem
& rhs)
const
37
{
38
return
!(*
this
== rhs);
39
}
40
};
41
42
typedef
std::list<WeaponSystem>
DtWeaponList
;
43
46
class
DT_DLL_vrftasks
DtWeaponListResponseAdmin
:
public
DtAdminContent
47
{
48
public
:
49
51
DtWeaponListResponseAdmin
();
52
54
DtWeaponListResponseAdmin
(
const
DtWeaponListResponseAdmin
& orig);
55
57
const
DtWeaponListResponseAdmin
&
operator=
(
const
58
DtWeaponListResponseAdmin
& orig);
59
61
virtual
~
DtWeaponListResponseAdmin
();
62
64
static
DtAdminContent
* create();
65
67
virtual
bool
init
();
68
70
virtual
const
DtAdminContentMessageType
&
type
()
const
;
71
73
74
virtual
const
DtWeaponList
& weaponSystems()
const
;
75
virtual
DtWeaponList
& weaponSystems();
77
80
virtual
void
addWeaponSystem(
const
DtString
& modeName,
DtWeaponSystemType
systemType,std::list<DtString>& resourceList);
82
virtual
void
clearWeaponSystems();
83
86
virtual
DtAdminContent
*
clone
()
const
;
87
89
virtual
DtString
stringRep
()
const
;
90
92
virtual
int
netRepSize
()
const
;
93
95
virtual
bool
setFromNet
(
const
char
* contentBuffer,
96
unsigned
contentSize);
97
99
virtual
bool
setToNet
();
100
101
protected
:
103
DtWeaponList
myWeaponSystems
;
104
};
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)