VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
rwForceDescriptionList.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: rwForceDescriptionList.h,v $ $Revision: 1.2 $ $State: Exp $
7
*******************************************************************************/
8
11
13
14
#ifndef rwForceDescriptionList_h
15
#define rwForceDescriptionList_h
16
17
#include "
vrfutil/rdrWritr.h
"
18
#include "
vrfutil/rwInt.h
"
19
#include "
vrfutil/rwIntegerList.h
"
20
#include "
vrfutil/rwVector.h
"
21
#include "
vrfutil/rwBoolean.h
"
22
#include "
vrfutil/rwString.h
"
23
#include "vlutil/vlFilename.h"
24
25
#include <list>
26
30
31
#include "
vrfutil/vrfutilDefines.h
"
32
class
DT_DLL_vrfutil
DtRwForceDescription
:
public
DtReaderWriter
33
{
34
public
:
35
DtRwForceDescription
();
36
38
DtRwForceDescription
(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
39
40
DtRwForceDescription
(
const
DtSymbolString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
41
43
DtRwForceDescription
(
const
DtRwForceDescription
& orig,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
44
46
DtRwForceDescription
&
operator=
(
const
DtRwForceDescription
& orig);
47
48
49
virtual
~
DtRwForceDescription
();
50
51
//get /set the force ID or DtForceType
52
virtual
void
setForceId(
int
newId);
53
virtual
int
forceId();
54
55
//get /set the force name
56
virtual
void
setForceName(
DtString
newName);
57
virtual
DtString
forceName();
58
59
//get /set the force color (0..255)
60
virtual
void
setForceColor(
int
r,
int
g,
int
b);
61
virtual
DtVector
forceColor();
62
63
//get /set whether or not the force should be included in dialogs
64
virtual
void
setIncludeInDialogs(
bool
include);
65
virtual
bool
includeInDialogs();
66
67
//sets which forces this force is hostile to
68
virtual
void
setHostileToForce(
int
forceId);
69
//gets a copy of the list of forces that this force is hostile to
70
virtual
std::list<int> hostileToList();
71
72
protected
:
73
DtRwInt
myForceId
;
74
DtRwString
myForceName
;
75
DtRwVector
myForceColor
;
76
DtRwBoolean
myIncludeInDialogs
;
77
DtRwIntegerList
myHostileToList
;
78
};
79
83
84
class
DT_DLL_vrfutil
DtRwForceDescriptionList
:
public
DtRwList
85
{
86
public
:
88
DtRwForceDescriptionList
();
89
91
DtRwForceDescriptionList
(
const
DtString
& name,
DtReaderWriterRegistry
*
const
92
parentRegistry = NULL);
93
DtRwForceDescriptionList
(
const
DtSymbolString
& name,
DtReaderWriterRegistry
*
const
94
parentRegistry = NULL);
95
97
virtual
~
DtRwForceDescriptionList
();
98
100
DtRwForceDescriptionList
(
const
DtString
& name,
const
DtRwForceDescriptionList
& orig,
101
DtReaderWriterRegistry
* parentRegistry = NULL);
102
103
DtRwForceDescriptionList
(
const
DtSymbolString
& name,
const
DtRwForceDescriptionList
& orig,
104
DtReaderWriterRegistry
* parentRegistry = NULL);
105
107
DtRwForceDescriptionList
&
operator=
(
const
DtRwForceDescriptionList
& orig);
108
110
virtual
void
addForce(
DtRwForceDescription
* rwForce);
111
115
virtual
void
removeForce(
DtRwForceDescription
* rwForce, DtListItem* listItem);
116
118
void
emptyList();
119
120
protected
:
121
124
virtual
DtlObjPtr
getData
(DtlObjPtr args,
const
DtFilename& searchPath,
125
const
DtVariableBindingsList
& variableBindings);
126
128
void
copyList(
const
DtRwForceDescriptionList
& orig);
129
};
130
131
#endif
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)