#include <object.h>
Public Types | |
enum | Permissions { READ = ( 1 << 0 ), WRITE = ( 1 << 1 ), FERTILE = ( 1 << 2 ) } |
typedef enum Object::Permissions | Permissions |
Public Member Functions | |
void | move (Object *pWhere) |
void | setParent (ObjectId pNewParentId) |
void | save (QDataStream &pData) const |
void | load (QDataStream &pData) |
bool | matchName (const QString &pName) |
quint16 | permissions (void) const |
void | setPermissions (quint16 pPerms) |
void | ancestors (QList< ObjectId > &pList) |
void | descendants (QList< ObjectId > &pList) |
void | propAdd (const QString &pName, Property &pProp) |
void | propDelete (const QString &pName) |
void | propClear (const QString &pName) |
void | propSet (const QString &pName, const QVariant &pValue) |
bool | propFind (const QString &pName, Property **pProp, Object **pObject) |
void | propNames (QStringList &pList) |
Property * | prop (const QString &pName) |
Property * | propParent (const QString &pName) |
const QMap< QString, Property > & | properties (void) const |
void | verbAdd (const QString &pName, Verb &pVerb) |
void | verbDelete (const QString &pName) |
bool | verbFind (const QString &pName, Verb **pVerb, Object **pObject, ObjectId pDirectObjectId=OBJECT_NONE, const QString &pPreposition="", ObjectId pIndirectObjectId=OBJECT_NONE) |
Verb * | verbMatch (const QString &pName, ObjectId pDirectObjectId=OBJECT_NONE, const QString &pPreposition="", ObjectId pIndirectObjectId=OBJECT_NONE) |
Verb * | verbParent (const QString &pName, ObjectId pDirectObjectId=OBJECT_NONE, const QString &pPreposition="", ObjectId pIndirectObjectId=OBJECT_NONE) |
const QMap< QString, Verb > & | verbs (void) const |
Verb * | verb (const QString &pName) |
operator ObjectId (void) const | |
ObjectId | id (void) const |
const QString & | name (void) const |
bool | player (void) const |
ObjectId | location (void) const |
ObjectId | parent (void) const |
const QList< ObjectId > & | children (void) const |
const QList< ObjectId > & | contents (void) const |
bool | valid (void) const |
bool | programmer (void) const |
bool | wizard (void) const |
bool | fertile (void) const |
ObjectId | owner (void) const |
bool | recycle (void) const |
bool | read (void) const |
bool | write (void) const |
void | setOwner (ObjectId pOwner) |
void | setPlayer (bool pPlayer) |
void | setName (const QString &pName) |
void | setProgrammer (bool pProgrammer) |
void | setWizard (bool pWizard) |
void | setRead (bool pRead) |
void | setWrite (bool pWrite) |
void | setFertile (bool pFertile) |
void | setRecycle (bool pRecycle) |
Friends | |
class | ObjectManager |
class | lua_object |
typedef enum Object::Permissions Object::Permissions |
enum Object::Permissions |
void Object::ancestors | ( | QList< ObjectId > & | pList | ) |
const QList<ObjectId>& Object::children | ( | void | ) | const [inline] |
const QList<ObjectId>& Object::contents | ( | void | ) | const [inline] |
void Object::descendants | ( | QList< ObjectId > & | pList | ) |
bool Object::fertile | ( | void | ) | const [inline] |
ObjectId Object::id | ( | void | ) | const [inline] |
void Object::load | ( | QDataStream & | pData | ) |
ObjectId Object::location | ( | void | ) | const [inline] |
bool Object::matchName | ( | const QString & | pName | ) |
void Object::move | ( | Object * | pWhere | ) |
const QString& Object::name | ( | void | ) | const [inline] |
Object::operator ObjectId | ( | void | ) | const [inline] |
ObjectId Object::owner | ( | void | ) | const [inline] |
ObjectId Object::parent | ( | void | ) | const [inline] |
quint16 Object::permissions | ( | void | ) | const |
bool Object::player | ( | void | ) | const [inline] |
bool Object::programmer | ( | void | ) | const [inline] |
Property * Object::prop | ( | const QString & | pName | ) |
void Object::propAdd | ( | const QString & | pName, |
Property & | pProp | ||
) |
void Object::propClear | ( | const QString & | pName | ) |
void Object::propDelete | ( | const QString & | pName | ) |
const QMap<QString,Property>& Object::properties | ( | void | ) | const [inline] |
bool Object::propFind | ( | const QString & | pName, |
Property ** | pProp, | ||
Object ** | pObject | ||
) |
void Object::propNames | ( | QStringList & | pList | ) |
Property * Object::propParent | ( | const QString & | pName | ) |
void Object::propSet | ( | const QString & | pName, |
const QVariant & | pValue | ||
) |
bool Object::read | ( | void | ) | const [inline] |
bool Object::recycle | ( | void | ) | const [inline] |
void Object::save | ( | QDataStream & | pData | ) | const |
void Object::setFertile | ( | bool | pFertile | ) | [inline] |
void Object::setName | ( | const QString & | pName | ) | [inline] |
void Object::setOwner | ( | ObjectId | pOwner | ) | [inline] |
void Object::setParent | ( | ObjectId | pNewParentId | ) |
void Object::setPermissions | ( | quint16 | pPerms | ) |
void Object::setPlayer | ( | bool | pPlayer | ) | [inline] |
void Object::setProgrammer | ( | bool | pProgrammer | ) | [inline] |
void Object::setRead | ( | bool | pRead | ) | [inline] |
void Object::setRecycle | ( | bool | pRecycle | ) | [inline] |
void Object::setWizard | ( | bool | pWizard | ) | [inline] |
void Object::setWrite | ( | bool | pWrite | ) | [inline] |
bool Object::valid | ( | void | ) | const [inline] |
Verb * Object::verb | ( | const QString & | pName | ) |
void Object::verbAdd | ( | const QString & | pName, |
Verb & | pVerb | ||
) |
void Object::verbDelete | ( | const QString & | pName | ) |
bool Object::verbFind | ( | const QString & | pName, |
Verb ** | pVerb, | ||
Object ** | pObject, | ||
ObjectId | pDirectObjectId = OBJECT_NONE , |
||
const QString & | pPreposition = "" , |
||
ObjectId | pIndirectObjectId = OBJECT_NONE |
||
) |
Verb * Object::verbMatch | ( | const QString & | pName, |
ObjectId | pDirectObjectId = OBJECT_NONE , |
||
const QString & | pPreposition = "" , |
||
ObjectId | pIndirectObjectId = OBJECT_NONE |
||
) |
Verb * Object::verbParent | ( | const QString & | pName, |
ObjectId | pDirectObjectId = OBJECT_NONE , |
||
const QString & | pPreposition = "" , |
||
ObjectId | pIndirectObjectId = OBJECT_NONE |
||
) |
const QMap<QString,Verb>& Object::verbs | ( | void | ) | const [inline] |
bool Object::wizard | ( | void | ) | const [inline] |
bool Object::write | ( | void | ) | const [inline] |
friend class lua_object [friend] |
friend class ObjectManager [friend] |