Crossfire Server, Trunk  R20513
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
QStringList allowed() const
Global type definitions and header inclusions.
const artifact * myArtifact
int chance() const
This is one artifact, ie one special item.
Definition: artifact.h:14
CREWrapperObject myItem
QObject * item()
void setArtifact(const artifact *art)
int difficulty() const