VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
DtRwDIGuyCharacterInfo Class Reference

The DtRwDIGuyCharactertInfo class is a readable/writable class that can store itself and read itself from a file. More...

Inheritance diagram for DtRwDIGuyCharacterInfo:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtRwDIGuyCharacterInfo ()
 DtRwDIGuyCharacterInfo (const DtString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
 DtRwDIGuyCharacterInfo (const DtSymbolString &name, DtReaderWriterRegistry *const parentRegistry=NULL)
 DtRwDIGuyCharacterInfo (const DtRwDIGuyCharacterInfo &orig, DtReaderWriterRegistry *const parentRegistry=NULL)
virtual ~DtRwDIGuyCharacterInfo ()
DtRwDIGuyCharacterInfooperator= (const DtRwDIGuyCharacterInfo &orig)
virtual const char * readerWriterType () const
virtual DtString nextRandomAppearance ()
 Choices a random appearance from the available list.
virtual DtRwDIGuyCharacterInfoclone (DtReaderWriterRegistry *const parentRegistry=0) const
 Returns a newly created clone of this class.
virtual void setDIGuyCharacter (const DtString &character)
 The DI-Guy Character string for this entity.
virtual const DtStringdIGuyCharacter () const
 The DI-Guy Character string for this entity.
virtual void setDIGuyAnimation (const DtString &animation)
 The current DI-Guy animation the entity is displaying.
virtual const DtStringdIGuyAnimation () const
 The current DI-Guy animation the entity is displaying.
virtual void setDIGuyAppearance (const DtString &app)
 The current Di-Guy character appearance of the entity.
virtual const DtStringdIGuyAppearance () const
 The current Di-Guy character appearance of the entity.
virtual DtRwBooleanusingRandomAppearances ()
 Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.
virtual void setUsingRandomAppearances (bool useRandom)
 Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.
virtual void setRandomAppearancesList (const DtRwNLengthStringVector &list)
 Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.
virtual const
DtRwNLengthStringVector
randomAppearancesList () const
 Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.
virtual DtRwNLengthStringVectorrandomAppearancesList ()
 Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.

Protected Attributes

DtRwString myCharacterType
DtRwString myCharacterAppearance
DtRwString myCurrentAnimation
DtRwBoolean myUsingRandomAppearances
DtRwNLengthStringVector myRandomAppearances
std::vector< DtStringmyUsedAppearances
 If using a random appearance upon creation, when an appearance has been used it is removed from the appearances list and added to this one.

Detailed Description

The DtRwDIGuyCharactertInfo class is a readable/writable class that can store itself and read itself from a file.

This stores the DI-Guy character information that is used to display this entity as a DI-Guy character in any 3-D app that is hooked up to DI-Guy.


Constructor & Destructor Documentation

DtRwDIGuyCharacterInfo::DtRwDIGuyCharacterInfo ( const DtString name,
DtReaderWriterRegistry *const  parentRegistry = NULL 
)
DtRwDIGuyCharacterInfo::DtRwDIGuyCharacterInfo ( const DtSymbolString name,
DtReaderWriterRegistry *const  parentRegistry = NULL 
)

Member Function Documentation

DtRwDIGuyCharacterInfo& DtRwDIGuyCharacterInfo::operator= ( const DtRwDIGuyCharacterInfo orig)
virtual const char* DtRwDIGuyCharacterInfo::readerWriterType ( ) const [virtual]
Returns:
DtRwDIGuyCharacterInfoType from rwTypes.h.

Reimplemented from DtReaderWriter.

virtual void DtRwDIGuyCharacterInfo::setDIGuyCharacter ( const DtString character) [virtual]

The DI-Guy Character string for this entity.

virtual const DtString& DtRwDIGuyCharacterInfo::dIGuyCharacter ( ) const [virtual]

The DI-Guy Character string for this entity.

virtual void DtRwDIGuyCharacterInfo::setDIGuyAnimation ( const DtString animation) [virtual]

The current DI-Guy animation the entity is displaying.

virtual const DtString& DtRwDIGuyCharacterInfo::dIGuyAnimation ( ) const [virtual]

The current DI-Guy animation the entity is displaying.

virtual void DtRwDIGuyCharacterInfo::setDIGuyAppearance ( const DtString app) [virtual]

The current Di-Guy character appearance of the entity.

virtual const DtString& DtRwDIGuyCharacterInfo::dIGuyAppearance ( ) const [virtual]

The current Di-Guy character appearance of the entity.

Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.

virtual void DtRwDIGuyCharacterInfo::setUsingRandomAppearances ( bool  useRandom) [virtual]

Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.

Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.

Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.

Sets whether when placin this entity the user wishes it to be created with a random appearnace from the attached list of possible appearances.

Choices a random appearance from the available list.

virtual DtRwDIGuyCharacterInfo* DtRwDIGuyCharacterInfo::clone ( DtReaderWriterRegistry *const  parentRegistry = 0) const [virtual]

Returns a newly created clone of this class.


Member Data Documentation

If using a random appearance upon creation, when an appearance has been used it is removed from the appearances list and added to this one.

Once the appearances list is empty we reset it.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)