World objects are to be used to describe all objects a virtual world can contain. More...
#include <OSDLWorldObject.h>
Public Member Functions | |
WorldObject () | |
Constructs a new blank world object. | |
virtual | ~WorldObject () throw () |
Virtual destructor. | |
virtual const std::string | toString (Ceylan::VerbosityLevels level=Ceylan::high) const |
Returns an user-friendly description of the state of this object. |
World objects are to be used to describe all objects a virtual world can contain.
Whereas world objects are meant to be passive by default (they do not get a slice of CPU time during which they live), using some specific child classes allows to have active world objects.
Basic world objects will not therefore act by themselves, which does not imply they cannot achieve complex trigger-based behaviours. For example if a stone on the ground may not require periodic processings, as it remains static, it can be though taken into account as soon as it is grabbed and thrown.
World objects are models, in the sense of the Model-Controller-View framework.
Definition at line 67 of file OSDLWorldObject.h.
WorldObject::WorldObject | ( | ) |
Constructs a new blank world object.
Definition at line 37 of file OSDLWorldObject.cc.
WorldObject::~WorldObject | ( | ) | throw () [virtual] |
Virtual destructor.
Definition at line 45 of file OSDLWorldObject.cc.
const string WorldObject::toString | ( | Ceylan::VerbosityLevels | level = Ceylan::high |
) | const [virtual] |
Returns an user-friendly description of the state of this object.
level | the requested verbosity level. |
Definition at line 52 of file OSDLWorldObject.cc.