VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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/objectType.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  virtual std::vector<DtString> appearances() const;
73 
75  virtual void addAppearance(const DtString & app);
76 
78  virtual std::vector<DtString> handItems() const;
79 
81  virtual void addHandItem(const DtString & app);
82 
84 
85 
86  virtual TaskAnimationMap * taskableAnimations();
87 
89  virtual AlternateNamesList taskableAnimationNames();
90 
92  virtual AlternateNamesList * animationNames();
93 
94  virtual void addTaskAnimation(const DtString & name, DtDiGuyAnimationSharedPtr animation);
96 
98 
99  virtual DtDiGuyIntrinsicAnimationMap * intrinsicAnimations();
100 
101  virtual void addIntrinsicAnimation(const DtString & name, DtDiGuyAnimationSharedPtr animation);
103 
104  virtual DtDiGuyAnimation * lookupIntrinsicAnimationByName(const DtString & name);
105 
107  virtual DtDiGuyCharacterData* clone() const;
108 
109 protected:
110 
112  std::vector<DtString> myCharacterApperances;
113  std::vector<DtString> myCharacterHandItems;
121 };
122 
123 #endif

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)