Crossfire Server, Trunk  R20513
CREWrapperArchetype.h
Go to the documentation of this file.
1 #ifndef CRE_WRAPPER_ARCHETYPE_H
2 #define CRE_WRAPPER_ARCHETYPE_H
3 
4 #include <QObject>
5 
6 extern "C"
7 {
8 #include "global.h"
9 }
10 
11 class CREWrapperObject;
12 
13 class CREWrapperArchetype : public QObject
14 {
15  Q_OBJECT
16 
17  Q_PROPERTY(QString name READ name)
18  Q_PROPERTY(QObject* clone READ clone)
19 
20  public:
21  CREWrapperArchetype(CREWrapperObject* parent, const archetype* arch);
22 
23  void setArchetype(const archetype* arch);
24 
25  QString name() const;
26  QObject* clone();
27 
28  protected:
31 };
32 
33 #endif // CRE_WRAPPER_ARCHETYPE_H
Global type definitions and header inclusions.
The archetype structure is a set of rules on how to generate and manipulate objects which point to ar...
Definition: object.h:465
QString name() const
const archetype * myArchetype
void setArchetype(const archetype *arch)
CREWrapperObject * myObject