Crossfire Server, Trunk  R20513
ResourcesManager.h
Go to the documentation of this file.
1 #ifndef RESOURCESMANAGER_H
2 #define RESOURCESMANAGER_H
3 
4 extern "C" {
5 #include "global.h"
6 }
7 
9 {
10  public:
12  virtual ~ResourcesManager();
13 
14  void load();
15 
16  QStringList archetypes() const;
17  const archt* archetype(const QString& name) const;
18 
19  QStringList treasureLists() const;
20  const treasurelist* treasureList(const QString& name);
21 
22  int recipeMaxIngredients() const;
23  QStringList recipes(int count) const;
24  const recipestruct* recipe(int ingredients, const QString& name) const;
25 
26  QStringList faces() const;
27  const New_Face* face(const QString& name) const;
28 
29  QStringList allAnimations() const;
30  const animations_struct* animation(const QString& name) const;
31 
32  protected:
33  QHash<QString, archt*> myArchetypes;
34  QHash<QString, treasurelist*> myTreasures;
35  QList<QHash<QString, recipestruct*> > myRecipes;
36  QHash<QString, New_Face*> myFaces;
37  QHash<QString, animations_struct*> myAnimations;
38 };
39 
40 #endif /* RESOURCESMANAGER_H */
QList< QHash< QString, recipestruct * > > myRecipes
QStringList archetypes() const
QHash< QString, animations_struct * > myAnimations
QHash< QString, archt * > myArchetypes
treasureliststruct represents one logical group of items to be generated together.
Definition: treasure.h:82
const New_Face * face(const QString &name) const
const treasurelist * treasureList(const QString &name)
const animations_struct * animation(const QString &name) const
QStringList recipes(int count) const
int recipeMaxIngredients() const
Global type definitions and header inclusions.
QStringList allAnimations() const
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
Definition: object.h:465
const archt * archetype(const QString &name) const
This represents one animation.
Definition: face.h:26
QStringList treasureLists() const
QHash< QString, New_Face * > myFaces
virtual ~ResourcesManager()
QStringList faces() const
New face structure - this enforces the notion that data is face by face only - you can not change the...
Definition: face.h:14
QHash< QString, treasurelist * > myTreasures
const recipestruct * recipe(int ingredients, const QString &name) const
One alchemy recipe.
Definition: recipe.h:10