Crossfire Server, Trunk
CREWrapperArtifact.h
Go to the documentation of this file.
1 #ifndef CRE_WRAPPER_ARTIFACT_H
2 #define CRE_WRAPPER_ARTIFACT_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 CREWrapperArtifact : public QObject
14 {
15  Q_OBJECT
16 
17  Q_PROPERTY(QObject* item READ item)
18  Q_PROPERTY(int chance READ chance)
19  Q_PROPERTY(int difficulty READ difficulty)
20  Q_PROPERTY(QStringList allowed READ allowed)
21 
22  public:
24 
25  void setArtifact(const artifact* art);
26 
27  QObject* item();
28  int chance() const;
29  int difficulty() const;
30  QStringList allowed() const;
31 
32  protected:
35 };
36 
37 #endif // CRE_WRAPPER_ARTIFACT_H
global.h
CREWrapperArtifact::difficulty
int difficulty
Definition: CREWrapperArtifact.h:19
CREWrapperObject
Definition: CREWrapperObject.h:12
CREWrapperArtifact::allowed
QStringList allowed
Definition: CREWrapperArtifact.h:20
CREWrapperArtifact::myItem
CREWrapperObject myItem
Definition: CREWrapperArtifact.h:34
artifactstruct
Definition: artifact.h:14
item
Definition: item.py:1
CREWrapperArtifact::myArtifact
const artifact * myArtifact
Definition: CREWrapperArtifact.h:33
CREWrapperArtifact::chance
int chance
Definition: CREWrapperArtifact.h:18
CREWrapperArtifact::setArtifact
void setArtifact(const artifact *art)
Definition: CREWrapperArtifact.cpp:8
CREWrapperArtifact
Definition: CREWrapperArtifact.h:13
CREWrapperObject.h