Crossfire Server, Trunk  R20513
CREWrapperObject.h
Go to the documentation of this file.
1 #ifndef CRE_WRAPPER_OBJECT_h
2 #define CRE_WRAPPER_OBJECT_h
3 
4 extern "C" {
5 #include "global.h"
6 }
7 
8 #include <QObject>
9 #include "CREWrapperArchetype.h"
10 
11 class CREWrapperObject : public QObject
12 {
13  Q_OBJECT
14 
15  Q_PROPERTY(QString name READ name)
16  Q_PROPERTY(QString race READ race)
17  Q_PROPERTY(int type READ type)
18  Q_PROPERTY(int level READ level)
19  Q_PROPERTY(bool isMonster READ isMonster)
20  Q_PROPERTY(bool isAlive READ isAlive)
21  Q_PROPERTY(qint64 experience READ experience)
22  Q_PROPERTY(quint32 attacktype READ attacktype)
23  Q_PROPERTY(qint8 ac READ ac)
24  Q_PROPERTY(qint8 wc READ wc)
25  Q_PROPERTY(QObject* arch READ arch)
26  Q_PROPERTY(qint16 damage READ damage)
27  Q_PROPERTY(qint16 hp READ hp)
28  Q_PROPERTY(qint32 weight READ weight)
29  Q_PROPERTY(QString materialName READ materialName)
30 
31  public:
33 
34  void setObject(const object* obj);
35 
37  QString name() const;
38  QString race() const;
39  int type() const;
40  int level() const;
41  bool isMonster() const;
42  bool isAlive() const;
43  qint64 experience() const;
44  quint32 attacktype() const;
45  qint8 ac() const;
46  qint8 wc() const;
47  qint16 damage() const;
48  qint16 hp() const;
49  qint32 weight() const;
50  QString materialName() const;
51 
52  protected:
53  const object* myObject;
55 };
56 
57 #endif // CRE_WRAPPER_OBJECT_h
Main Crossfire structure, one ingame object.
Definition: object.h:274
CREWrapperArchetype * arch()
qint16 damage() const
Global type definitions and header inclusions.
qint8 ac() const
bool isAlive() const
const object * myObject
int type() const
void setObject(const object *obj)
qint32 weight() const
qint64 experience() const
QString name() const
CREWrapperArchetype * myArchetype
qint8 wc() const
QString materialName() const
bool isMonster() const
QString race() const
int level() const
qint16 hp() const
quint32 attacktype() const