#include <ObjectFixed.h>
Inheritance diagram for ObjectFixed:
Public Member Functions | |
ObjectFixed (const Config &config) | |
Constructor - initialize whole object. | |
virtual | ~ObjectFixed () |
Destructor. | |
virtual void | Collision (Object *collisionObject) |
Handles collision caused by another object, fixed object does no action. | |
virtual Object::Config * | CreateObjectConfig () const |
Returns full object's config (allocated on the heap). | |
virtual void | LoadFromConfig (const Object::Config &config, bool fullLoad=true) |
Loads state (attributes etc.) from the selected config. | |
virtual void | SetAction (const Action &newAction) |
Sets a new action. | |
virtual void | SetDirection (const Direction &newDirection) |
Sets a new direction. | |
virtual const Priority & | GetPriority () const |
Returns object's priority. | |
virtual bool | CanAppearMoreThenOnce () const |
Returns true if selected object can appear more then once in the container (in Matrix). | |
virtual const string & | GetClassName () const |
Returns object's name (class name, respectively). | |
virtual void | ChooseNextAction () |
Object will choose it's new action. | |
virtual bool | IsImaginary () const |
Some kinds of objects are only imaginary and other objects can stand or lay on it. Fixed objects aren't imaginery. | |
virtual bool | IsEditableByUser () const |
Returns true if the object is editable by user (e.g. via graphical window). | |
virtual bool | IsMoveableByUser () const |
Returns true if the object is moveable by user (e.g. moved to another place). | |
Static Public Attributes | |
static const string | CLASS_NAME = "ObjectFixed" |
Name of the class. | |
Static Private Attributes | |
static const Object::Priority | PRIORITY = 10 |
Priority of the object. | |
static const bool | CAN_APPEAR_MORE_THEN_ONCE = false |
If true, object can appear more then once in the container (in Matrix). | |
Classes | |
class | Config |
Config object for fixed objects in the matrix. More... |
ObjectFixed::ObjectFixed | ( | const Config & | config | ) | [inline] |
virtual ObjectFixed::~ObjectFixed | ( | ) | [inline, virtual] |
Destructor.
virtual bool ObjectFixed::CanAppearMoreThenOnce | ( | ) | const [inline, virtual] |
virtual void ObjectFixed::ChooseNextAction | ( | ) | [inline, virtual] |
virtual void ObjectFixed::Collision | ( | Object * | collisionObject | ) | [inline, virtual] |
Handles collision caused by another object, fixed object does no action.
collisionObject | Conflicting object |
Implements Object.
Object::Config * ObjectFixed::CreateObjectConfig | ( | ) | const [virtual] |
virtual const string& ObjectFixed::GetClassName | ( | ) | const [inline, virtual] |
virtual const Priority& ObjectFixed::GetPriority | ( | ) | const [inline, virtual] |
virtual bool ObjectFixed::IsEditableByUser | ( | ) | const [inline, virtual] |
virtual bool ObjectFixed::IsImaginary | ( | ) | const [inline, virtual] |
Some kinds of objects are only imaginary and other objects can stand or lay on it. Fixed objects aren't imaginery.
Implements Object.
virtual bool ObjectFixed::IsMoveableByUser | ( | ) | const [inline, virtual] |
void ObjectFixed::LoadFromConfig | ( | const Object::Config & | config, | |
bool | fullLoad = true | |||
) | [virtual] |
Loads state (attributes etc.) from the selected config.
config | Object's config | |
fullLoad | Should object load all data from the config, or only some? |
Reimplemented from Object.
virtual void ObjectFixed::SetAction | ( | const Action & | newAction | ) | [inline, virtual] |
Sets a new action.
newAction | New action that has to be set |
virtual void ObjectFixed::SetDirection | ( | const Direction & | newDirection | ) | [inline, virtual] |
const bool ObjectFixed::CAN_APPEAR_MORE_THEN_ONCE = false [static, private] |
If true, object can appear more then once in the container (in Matrix).
const string ObjectFixed::CLASS_NAME = "ObjectFixed" [static] |
Name of the class.
const Object::Priority ObjectFixed::PRIORITY = 10 [static, private] |
Priority of the object.