![]() |
Object Class ReferenceDatabase cache object, base class.
More...
|
Public Member Functions | |
Object (Database &) | |
virtual | ~Object () |
virtual bool | Exists ()=0 |
Check if the object already exists in database. | |
virtual void | Save ()=0 |
Save the object in database. | |
virtual long | GetNum ()=0 |
Get integer primary key from object. | |
Protected Attributes | |
Database & | m_db |
Definition at line 29 of file Object.h.
Object::Object | ( | Database & | ) |
Object::~Object | ( | ) | [virtual] |
virtual bool Object::Exists | ( | ) | [pure virtual] |
virtual void Object::Save | ( | ) | [pure virtual] |
virtual long Object::GetNum | ( | ) | [pure virtual] |
Database& Object::m_db [protected] |
Definition at line 44 of file Object.h.
Referenced by Chunk::AddPortal(), Area::GetAreaBorders(), Chunk::GetInfo(), Chunk::Init(), Player::LoadSteps(), Player::SightRange(), Player::VerifyPos(), and Area::VerifyTerrain().