#include <ObjectDesc.h>
Public Member Functions | |
| ClassID | get_class_id () const |
| unsigned | get_id () const |
Public Attributes | |
| bool | phantom |
| unsigned | created |
| unsigned | deleted |
| friend | World |
Protected Member Functions | |
| ObjectDesc (ClassID class_id, unsigned id) | |
| ObjectDesc (const ObjectDesc &rhs) | |
| ObjectDesc & | operator= (const ObjectDesc &rhs) |
| virtual | ~ObjectDesc (void) |
The base object description class.
| cyber::world::ObjectDesc::ObjectDesc | ( | ClassID | class_id, | |
| unsigned | id | |||
| ) | [protected] |
Explicit constructor.
| cyber::world::ObjectDesc::ObjectDesc | ( | const ObjectDesc & | rhs | ) | [protected] |
Copy constructor.
| cyber::world::ObjectDesc::~ObjectDesc | ( | void | ) | [protected, virtual] |
Destructor.
| ClassID cyber::world::ObjectDesc::get_class_id | ( | ) | const [inline] |
Returns the ID of the class of this object.
| unsigned cyber::world::ObjectDesc::get_id | ( | ) | const [inline] |
Returns the ID of this object.
| ObjectDesc & cyber::world::ObjectDesc::operator= | ( | const ObjectDesc & | rhs | ) | [protected] |
Copy assignment operator.
unsigned cyber::world::ObjectDesc::created [mutable] |
In accordance with the "phantom flag", this value specifies the "moment" (the number of the editing action command) the object description has been created (or gets deleted through an undo action).
unsigned cyber::world::ObjectDesc::deleted [mutable] |
In accordance with the "phantom flag", this value specifies the "moment" (the number of the editing action command) the object description has been deleted (or gets recreated through a redo action).
bool cyber::world::ObjectDesc::phantom [mutable] |
The flag specifying whether this object description is a phantom and should be ignored on any occurrence. Set this flag to true, if this object has been "deleted" during world editing. Set it back to false, if the deletion gets undone. Also set it to true, if this object has not been created (theoretically) because of an undo action. A redo action then could re-create it (set the flag to false, then).
Reimplemented in cyber::world::blocks::FixedBlockDesc.
1.7.1