29 #ifndef M_PROPERTY_LIST
30 #define M_PROPERTY_LIST
43 friend class laTypedObject;
45 laPropertyList* _pParent;
58 std::map<std::string, M_BOOL> _mapBool;
59 std::map<std::string, int> _mapInt;
60 std::map<std::string, double> _mapDouble;
61 std::map<std::string, laColor> _mapColor;
62 std::map<std::string, laPoint3> _mapPoint;
64 std::map<std::string, rpgAttack> _mapAttack;
67 std::map<std::string, char*> _mapText;
68 std::map<std::string, class laAnimatedModel*> _mapModel;
69 std::map<std::string, class fxParticleSystem*> _mapFx;
71 std::vector<class laAnimatedModel*> _vModel;
72 std::vector<class fxParticleSystem*> _vFx;
74 std::map<std::string, class laPropertyList*> _mapChildren;
76 void _read_components(
laFileParser* fp,
char* strEndTag);
80 virtual ~laPropertyList(
void);
88 char* name() {
return _strName; }
92 M_BOOL getBool(std::string name);
93 int getInt(std::string name);
94 double getDouble(std::string name);
95 char* getText(std::string name);
96 laColor getColor(std::string name);
97 laPoint3 getPoint(std::string name);
101 fxParticleSystem* getFx(std::string name);
105 laPropertyList* getChild(std::string name);
107 laPropertyList* getParent() {
return _pParent; }
109 laPropertyList* getTopmost();
118 unsigned getModelCnt() {
return _vModel.size(); }
120 fxParticleSystem* getFx(
unsigned i);
121 unsigned getFxCnt() {
return _vFx.size(); }
Interface for loadable objects.