Crossfire Server, Trunk
CREWrapperTreasure.h
Go to the documentation of this file.
1 #ifndef CREWRAPPERTREASURE_H
2 #define CREWRAPPERTREASURE_H
3 
4 #include <QObject>
5 #include <QStringList>
6 
7 extern "C" {
8 #include "global.h"
9 }
10 
11 class CREWrapperTreasureList : public QObject
12 {
13  Q_OBJECT
14 
15  Q_PROPERTY(QString name READ name)
16  Q_PROPERTY(int total_chance READ totalChance)
17  Q_PROPERTY(int item_count READ itemCount)
18 
19 public:
21 
22  QString name() const { return myList->name; }
23  int totalChance() const { return myList->total_chance; }
24  int itemCount() const;
25 
26 private:
28 };
29 
30 #endif /* CREWRAPPERTREASURE_H */
31 
global.h
CREWrapperTreasureList::totalChance
int totalChance() const
Definition: CREWrapperTreasure.h:23
guildoracle.list
list
Definition: guildoracle.py:87
CREWrapperTreasureList::itemCount
int itemCount() const
Definition: CREWrapperTreasure.cpp:7
CREWrapperTreasureList::total_chance
int total_chance
Definition: CREWrapperTreasure.h:16
CREWrapperTreasureList::myList
const treasurelist * myList
Definition: CREWrapperTreasure.h:27
treasureliststruct::name
const char * name
Definition: treasure.h:83
treasureliststruct::total_chance
int16_t total_chance
Definition: treasure.h:84
CREWrapperTreasureList::name
QString name
Definition: CREWrapperTreasure.h:15
CREWrapperTreasureList::item_count
int item_count
Definition: CREWrapperTreasure.h:17
treasureliststruct
Definition: treasure.h:82
CREWrapperTreasureList
Definition: CREWrapperTreasure.h:11