Crossfire Server, Trunk
ObjectWrapper.h File Reference
#include <QObject>
#include "global.h"
#include "assets/AssetWrapper.h"
#include "treasures/TreasureListWrapper.h"
+ Include dependency graph for ObjectWrapper.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  ObjectWrapper
 

Macros

#define OBJ_FLAG(name_, flag_)
 

Macro Definition Documentation

◆ OBJ_FLAG

#define OBJ_FLAG (   name_,
  flag_ 
)
Value:
public: \
bool name_() const { return QUERY_FLAG(myWrappedItem, flag_); } \
void name_(bool value) const { if (value) SET_FLAG(myWrappedItem, flag_); else CLEAR_FLAG(myWrappedItem, flag_); } \
Q_PROPERTY(bool name_ READ name_ WRITE name_)

Macro to add a read-write property for an object flag. Will generate functions to get and set the property.

Parameters
name_property name.
flag_flag of the object, FLAG_xxx value.

Definition at line 30 of file ObjectWrapper.h.

SET_FLAG
#define SET_FLAG(xyz, p)
Definition: define.h:224
QUERY_FLAG
#define QUERY_FLAG(xyz, p)
Definition: define.h:226
autojail.value
value
Definition: autojail.py:6
CLEAR_FLAG
#define CLEAR_FLAG(xyz, p)
Definition: define.h:225