VR-Forces 4.1.1 Class Documentation
diGuyCharacterData.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: diGuyCharacterData.h,v $ $Revision: 1.6 $ $State: Exp $
7 ** Created: 4/7/08 MEM
8 *******************************************************************************/
9 
12 
13 #ifndef diGuyCharacterData_H_
14 #define diGuyCharacterData_H_
15 
16 #include <vlutil/vlString.h>
17 #include <vector>
18 #include <map>
19 #include <vrfExtProtocol/objType.h>
22 #include "vrfutil/diGuyAnimation.h"
23 
24 class DtDIGuyAnimation;
26 
29 
32  typedef std::pair<DtString,DtString> AlternateNamesPair;
33 
34  typedef std::vector<AlternateNamesPair> AlternateNamesList;
35  typedef AlternateNamesList::iterator AlternateNamesListIterator;
36  typedef AlternateNamesList::const_iterator const_AlternateNamesListIterator;
37 
38 #include "vrfutil/vrfutilDefines.h"
40 {
41 public:
42 
43  typedef std::map<DtString, DtDIGuyAnimationSharedPtr> TaskAnimationMap;
44  typedef TaskAnimationMap::iterator TaskAnimationMapIterator;
45  typedef TaskAnimationMap::const_iterator const_TaskAnimationMapIterator;
46 
48 
49  DtDIGuyCharacterData(const DtString& name);
50 
52 
53  virtual ~DtDIGuyCharacterData();
54 
55  DtDIGuyCharacterData& operator=(const DtDIGuyCharacterData& orig);
56 
57  virtual void init();
58 
60 
61  virtual void setCharacterTypeName(const DtString& name);
62  virtual const DtString & characterTypeName() const;
64 
65  virtual void setDeadAnimation(DtDIGuyAnimationSharedPtr deadAnimation);
66  virtual DtDIGuyAnimation * deadAnimation();
67 
69  virtual DtDIGuyAnimation * lookupTaskAnimationByName(const DtString & name);
70 
72 
73  virtual std::vector<DtString> appearances() const;
75 
76  virtual void addAppearance(const DtString & app);
77 
79 
80 
81  virtual TaskAnimationMap * taskableAnimations();
82 
84  virtual AlternateNamesList taskableAnimationNames();
85 
87  virtual AlternateNamesList * animationNames();
88 
89  virtual void addTaskAnimation(const DtString & name, DtDIGuyAnimationSharedPtr animation);
91 
93 
94  virtual DtDIGuyIntrinsicAnimationMap * intrinsicAnimations();
95 
96  virtual void addIntrinsicAnimation(const DtString & name, DtDIGuyAnimationSharedPtr animation);
98 
99  virtual DtDIGuyAnimation * lookupIntrinsicAnimationByName(const DtString & name);
100 
102  virtual DtDIGuyCharacterData* clone() const;
103 
104 protected:
105 
107  std::vector<DtString> myCharacterApperances;
115 };
116 
117 #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)