Crossfire Server, Trunk
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
global.h
CREWrapperFormulae::chance
int chance
Definition: CREWrapperFormulae.h:19
CREWrapperFormulae::keycode
QString keycode
Definition: CREWrapperFormulae.h:26
CREWrapperFormulae::transmute
bool transmute
Definition: CREWrapperFormulae.h:24
CREWrapperFormulae::fullname
QString fullname
Definition: CREWrapperFormulae.h:17
CREWrapperFormulae::experience
int experience
Definition: CREWrapperFormulae.h:21
CREWrapperFormulae::difficulty
int difficulty
Definition: CREWrapperFormulae.h:20
CREWrapperFormulae::archs
QStringList archs
Definition: CREWrapperFormulae.h:22
recipestruct
Definition: recipe.h:10
titlestruct
Definition: readable.c:107
CREWrapperFormulae::setFormulae
void setFormulae(const recipe *rec)
Definition: CREWrapperFormulae.cpp:8
CREWrapperFormulae
Definition: CREWrapperFormulae.h:13
CREWrapperFormulae::myFormulae
const recipe * myFormulae
Definition: CREWrapperFormulae.h:45
CREWrapperFormulae::minLevel
int minLevel
Definition: CREWrapperFormulae.h:25
CREWrapperFormulae::ingredients
QStringList ingredients
Definition: CREWrapperFormulae.h:23
CREWrapperObject.h