Crossfire Server, Trunk  R22010
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  Q_PROPERTY(bool transmute READ transmute)
25  Q_PROPERTY(int minLevel READ minLevel)
26  Q_PROPERTY(QString keycode READ keycode)
27 
28  public:
30 
31  void setFormulae(const recipe* rec);
32 
33  QString fullname() const;
34  QString title() const;
35  int chance() const;
36  int difficulty() const;
37  int experience() const;
38  QStringList archs() const;
39  QStringList ingredients() const;
40  bool transmute() const;
41  int minLevel() const;
42  QString keycode() const;
43 
44  protected:
46 };
47 
48 #endif // CRE_WRAPPER_FORMULAE_H
int minLevel() const
int chance() const
QString keycode() const
bool transmute() const
const recipe * myFormulae
QStringList archs() const
void setFormulae(const recipe *rec)
QStringList ingredients() const
int difficulty() const
QString fullname() const
int experience() const