VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwDIGuyCharacterInfo.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwString.h>
13 #include <readerWriter/rwBoolean.h>
14 #include <readerWriter/rwReal.h>
15 #include <readerWriter/rwVector.h>
18 
20 
32 {
33 public:
34 
36 
37  DtRwDIGuyCharacterInfo(const DtString& name,
38  DtReaderWriterRegistry* const parentRegistry = NULL);
40  DtReaderWriterRegistry* const parentRegistry = NULL);
41 
43  DtReaderWriterRegistry* const parentRegistry = NULL);
44 
45  virtual ~DtRwDIGuyCharacterInfo();
46 
48 
50  virtual const char* readerWriterType() const;
51 
53 
54  virtual void setDIGuyCharacter(const DtString& character);
55  virtual const DtString & dIGuyCharacter() const;
57 
61 
62  virtual bool usingRandomAppearances() const;
63  virtual void setUsingRandomAppearances(bool useRandom);
64 
65  virtual void setRandomAppearancesList( const DtRwNLengthStringVector & list);
66  virtual const DtRwNLengthStringVector & randomAppearancesList() const;
67  virtual DtRwNLengthStringVector * randomAppearancesList();
69 
71  virtual DtString nextRandomAppearance();
72 
76 
77  virtual bool usingRandomHandItems() const;
78  virtual void setUsingRandomHandItems(bool useRandom);
79 
80  virtual void setRandomHandItemsList( const DtRwNLengthStringVector & list);
81  virtual const DtRwNLengthStringVector & randomHandItemsList() const;
82  virtual DtRwNLengthStringVector * randomHandItemsList();
84 
86  virtual DtString nextRandomHandItem();
87 
91 
92  virtual bool usingRandomHeads() const;
93  virtual void setUsingRandomHeads(bool useRandom);
94 
95  virtual void setRandomHeadsList( const DtRwNLengthStringVector & list);
96  virtual const DtRwNLengthStringVector & randomHeadsList() const;
97  virtual DtRwNLengthStringVector * randomHeadsList();
99 
101  virtual DtString nextRandomHead();
102 
104  virtual DtRwDIGuyCharacterInfo* clone(DtReaderWriterRegistry* const parentRegistry = 0) const;
105 
106  bool operator==(const DtRwDIGuyCharacterInfo&) const;
107 
108 protected:
109 
117 
121  std::vector<DtString> myUsedAppearances;
122 };
Contains the DtRwDIGuyCharacterState class declaration.
bool operator==(const DtRwDIGuyCharacterState &rhs) const
Equality operator.
Definition: symbolString.h:20
DtRwNLengthStringVector is a named, readable/writable vector of strings of arbitrary length...
Definition: rwNLengthStringVector.h:28
DtRwNLengthStringVector myRandomHeads
Definition: rwDIGuyCharacterInfo.h:116
DtRwBoolean myUsingRandomHandItems
Definition: rwDIGuyCharacterInfo.h:113
DtRwBoolean myUsingRandomAppearances
Definition: rwDIGuyCharacterInfo.h:111
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
DtRwDIGuyCharacterState & operator=(const DtRwDIGuyCharacterState &orig)
Assignment operator.
virtual DtRwDIGuyCharacterState * clone(DtReaderWriterRegistry *const parentRegistry=NULL) const
Returns a newly created clone of this class.
DtRwBoolean myUsingRandomHeads
Definition: rwDIGuyCharacterInfo.h:115
std::vector< DtString > myUsedAppearances
If using a random appearance upon creation, when an appearance has been used it is removed from the a...
Definition: rwDIGuyCharacterInfo.h:121
The DtRwDIGuyCharactertInfo class is a readable/writable class that can store itself and read itself ...
Definition: rwDIGuyCharacterInfo.h:31
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
The DtRwDIGuyCharacterState class is a readable/writable class that can store itself and read itself ...
Definition: rwDIGuyCharacterState.h:32
virtual const char * readerWriterType() const
DtRwNLengthStringVector myRandomHandItems
Definition: rwDIGuyCharacterInfo.h:114
DtRwString myCharacterType
Definition: rwDIGuyCharacterInfo.h:110
File: rwVector.h.
DtRwNLengthStringVector myRandomAppearances
Definition: rwDIGuyCharacterInfo.h:112

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)