VR-Forces Development_Version 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>
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  typedef DtDiGuyIntrinsicAnimationMap* (*DtDiGuyIntrinsicAnimationMapCreatorFcn)();
39 
40 #include "vrfutil/vrfutilDefines.h"
42 {
43 public:
44 
45  typedef std::map<DtString, DtDiGuyAnimationSharedPtr> TaskAnimationMap;
46  typedef TaskAnimationMap::iterator TaskAnimationMapIterator;
47  typedef TaskAnimationMap::const_iterator const_TaskAnimationMapIterator;
48 
50 
51  DtDiGuyCharacterData(const DtString& name);
52 
54 
55  virtual ~DtDiGuyCharacterData();
56 
57  DtDiGuyCharacterData& operator=(const DtDiGuyCharacterData& orig);
58 
59  virtual void init();
60 
62 
63  virtual void setCharacterTypeName(const DtString& name);
64  virtual const DtString & characterTypeName() const;
66 
67  virtual void setDeadAnimation(DtDiGuyAnimationSharedPtr deadAnimation);
68  virtual DtDiGuyAnimation * deadAnimation();
69 
71  virtual DtDiGuyAnimation * lookupTaskAnimationByName(const DtString & name);
72 
74  virtual std::vector<DtString> appearances() const;
75 
77  virtual void addAppearance(const DtString & app);
78 
80  virtual std::vector<DtString> handItems() const;
81 
83  virtual void addHandItem(const DtString & app);
84 
86 
87 
88  virtual TaskAnimationMap * taskableAnimations();
89 
91  virtual AlternateNamesList taskableAnimationNames();
92 
94  virtual AlternateNamesList * animationNames();
95 
96  virtual void addTaskAnimation(const DtString & name, DtDiGuyAnimationSharedPtr animation);
98 
100 
101  virtual DtDiGuyIntrinsicAnimationMap * intrinsicAnimations();
102 
103  virtual void addIntrinsicAnimation(const DtString & name, DtDiGuyAnimationSharedPtr animation);
105 
106  virtual DtDiGuyAnimation * lookupIntrinsicAnimationByName(const DtString & name);
107 
109  virtual DtDiGuyCharacterData* clone() const;
110 
111 public:
118  static void setCreatorFcn(const DtDiGuyIntrinsicAnimationMapCreatorFcn& fcn);
119 
120 protected:
121 
123  std::vector<DtString> myCharacterApperances;
124  std::vector<DtString> myCharacterHandItems;
132 
134 };
135 
136 #endif

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)