VR-Forces 4.0.4 Class Documentation
include/vrfutil/rwDIGuyCharacterInfo.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: rwDIGuyCharacterInfo.h,v $ $Revision: 1.4 $ $State: Exp $
00007 ** Created: 3/31/08 MEM
00008 *******************************************************************************/
00009 
00012 
00013 #ifndef rwDiguyCharacterInfo_H_
00014 #define rwDiguyCharacterInfo_H_
00015 
00016 #include "vrfutil/rdrWritr.h"
00017 #include "vrfutil/rwString.h"
00018 #include "vrfutil/rwBoolean.h"
00019 #include "vrfutil/rwNLengthStringVector.h"
00020 
00021 class DtReaderWriterRegistry;
00022 
00026 
00027 #include "vrfutil/vrfutilDefines.h"
00028 class DT_DLL_vrfutil DtRwDIGuyCharacterInfo : public DtReaderWriter
00029 {
00030 public:
00031 
00032    DtRwDIGuyCharacterInfo();
00033 
00034    DtRwDIGuyCharacterInfo(const DtString& name,
00035       DtReaderWriterRegistry* const parentRegistry = NULL);
00036    DtRwDIGuyCharacterInfo(const DtSymbolString& name,
00037       DtReaderWriterRegistry* const parentRegistry = NULL);
00038 
00039    DtRwDIGuyCharacterInfo(const DtRwDIGuyCharacterInfo& orig,
00040       DtReaderWriterRegistry* const parentRegistry = NULL);
00041 
00042    virtual ~DtRwDIGuyCharacterInfo();
00043 
00044    DtRwDIGuyCharacterInfo& operator=(const DtRwDIGuyCharacterInfo& orig);
00045 
00047    virtual const char* readerWriterType() const;
00048 
00050 
00051    virtual void setDIGuyCharacter(const DtString& character);
00052    virtual const DtString & dIGuyCharacter() const;
00054 
00056 
00057    virtual void setDIGuyAnimation(const DtString & animation);
00058    virtual const DtString & dIGuyAnimation() const;
00060 
00062 
00063    virtual void setDIGuyAppearance(const DtString & app);
00064    virtual const DtString& dIGuyAppearance() const;
00066 
00070 
00071    virtual DtRwBoolean & usingRandomAppearances();
00072    virtual void setUsingRandomAppearances(bool useRandom);
00073 
00074    virtual void setRandomAppearancesList( const DtRwNLengthStringVector & list);
00075    virtual const DtRwNLengthStringVector & randomAppearancesList() const;
00076    virtual DtRwNLengthStringVector * randomAppearancesList();
00078 
00080    virtual DtString nextRandomAppearance();
00081 
00083    virtual DtRwDIGuyCharacterInfo* clone(DtReaderWriterRegistry* const parentRegistry = 0) const;
00084 
00085 protected:
00086 
00087    DtRwString              myCharacterType;
00088    DtRwString              myCharacterAppearance;
00089    DtRwString              myCurrentAnimation;
00090    DtRwBoolean             myUsingRandomAppearances;
00091    DtRwNLengthStringVector myRandomAppearances;
00092 
00096    std::vector<DtString>   myUsedAppearances;
00097 };
00098 
00099 
00100 #endif

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)