Crossfire Server, Trunk  R20513
CREWrapperFormulae.h
Go to the documentation of this file.
1 #ifndef CRE_WRAPPER_FORMULAE_H
2 #define CRE_WRAPPER_FORMULAE_H
3 
4 #include <QObject>
5 #include <QStringList>
6 
7 extern "C" {
8 #include "global.h"
9 }
10 
11 #include "CREWrapperObject.h"
12 
13 class CREWrapperFormulae : public QObject
14 {
15  Q_OBJECT
16 
17  Q_PROPERTY(QString fullname READ fullname)
18  Q_PROPERTY(QString title READ title)
19  Q_PROPERTY(int chance READ chance)
20  Q_PROPERTY(int difficulty READ difficulty)
21  Q_PROPERTY(int experience READ experience)
22  Q_PROPERTY(QStringList archs READ archs)
23  Q_PROPERTY(QStringList ingredients READ ingredients)
24 
25  public:
27 
28  void setFormulae(const recipe* rec);
29 
30  QString fullname() const;
31  QString title() const;
32  int chance() const;
33  int difficulty() const;
34  int experience() const;
35  QStringList archs() const;
36  QStringList ingredients() const;
37 
38  protected:
40 };
41 
42 #endif // CRE_WRAPPER_FORMULAE_H
Information on one title.
Definition: readable.c:106
int chance() const
QString fullname() const
int experience() const
Global type definitions and header inclusions.
const recipe * myFormulae
QStringList ingredients() const
void setFormulae(const recipe *rec)
QStringList archs() const
int difficulty() const
One alchemy recipe.
Definition: recipe.h:10