VR-Forces 5.0.3 Developer's Guide
 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) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <readerWriter/rwString.h>
14 #include <readerWriter/rwBoolean.h>
15 #include <readerWriter/rwReal.h>
16 #include <readerWriter/rwVector.h>
19 
21 
33 {
34 public:
35 
37 
38  DtRwDIGuyCharacterInfo( const DtString& name,
39  DtReaderWriterRegistry* const parentRegistry = NULL );
41  DtReaderWriterRegistry* const parentRegistry = NULL );
42 
44  DtReaderWriterRegistry* const parentRegistry = NULL );
45 
46  virtual ~DtRwDIGuyCharacterInfo();
47 
49 
51  virtual const char* readerWriterType() const;
52 
55  virtual void setDIGuyCharacter( const DtString& character );
56  virtual const DtString& diguyCharacter() const;
58 
63  virtual bool usingRandomAppearances() const;
64  virtual void setUsingRandomAppearances( bool useRandom );
65 
66  virtual void setRandomAppearancesList( const DtRwNLengthStringVector & list);
67  virtual const DtRwNLengthStringVector & randomAppearancesList() const;
68  virtual DtRwNLengthStringVector * randomAppearancesList();
70 
72  virtual DtString nextRandomAppearance();
73 
78  virtual bool usingRandomHandItems() const;
79  virtual void setUsingRandomHandItems( bool useRandom );
80 
81  virtual void setRandomHandItemsList( const DtRwNLengthStringVector& list);
82  virtual const DtRwNLengthStringVector & randomHandItemsList() const;
83  virtual DtRwNLengthStringVector * randomHandItemsList();
85 
87  virtual DtString nextRandomHandItem();
88 
93  virtual bool usingRandomHeads() const;
94  virtual void setUsingRandomHeads(bool useRandom);
95 
96  virtual void setRandomHeadsList( const DtRwNLengthStringVector & list);
97  virtual const DtRwNLengthStringVector & randomHeadsList() const;
98  virtual DtRwNLengthStringVector * randomHeadsList();
100 
102  virtual DtString nextRandomHead();
103 
105  virtual DtRwDIGuyCharacterInfo* clone(DtReaderWriterRegistry* const parentRegistry = 0) const;
106 
107  bool operator==(const DtRwDIGuyCharacterInfo&) const;
108 
109 protected:
110 
118 
122  std::vector<DtString> myUsedAppearances;
123 
124 };
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:117
DtRwBoolean myUsingRandomHandItems
Definition: rwDIGuyCharacterInfo.h:114
DtRwBoolean myUsingRandomAppearances
Definition: rwDIGuyCharacterInfo.h:112
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:116
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:122
The DtRwDIGuyCharactertInfo class is a readable/writable class that can store itself and read itself ...
Definition: rwDIGuyCharacterInfo.h:32
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:37
virtual const char * readerWriterType() const
DtRwNLengthStringVector myRandomHandItems
Definition: rwDIGuyCharacterInfo.h:115
DtRwString myCharacterType
Definition: rwDIGuyCharacterInfo.h:111
File: rwVector.h.
DtRwNLengthStringVector myRandomAppearances
Definition: rwDIGuyCharacterInfo.h:113

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)