|
mkRPG
|
The InheritableObject class is the base class for every objects that can inherit attributes from an other InheritableObject. More...
#include <gameobject.h>
Public Member Functions | |
| bool | hasAncestor () const |
| InheritableObject * | ancestor () |
| virtual bool | isInheritedParam (const QString ¶m) const |
| virtual bool | isRedefiniedParam (const QString ¶m) const |
| virtual int | getParamMin (const QString ¶m) const |
| virtual int | getParamMax (const QString ¶m) const |
| virtual void | setParam (const QString ¶m, int value) |
| virtual int | getParam (const QString ¶m) const |
| virtual bool | hasParam (const QString ¶m) const |
| virtual QList< QString > | params () const |
| virtual QList< QString > | properParams () const |
| HierarchicalAttr | paramTree () const |
| virtual bool | isInheritedFlag (const QString &flag) const |
| virtual bool | isRedefiniedFlag (const QString &flag) const |
| virtual bool | getFlag (const QString &flag) const |
| virtual bool | hasFlag (const QString &flag) const |
| virtual QList< QString > | flags () const |
| virtual QList< QString > | properFlags () const |
| HierarchicalAttr | flagTree () const |
| virtual bool | isInheritedEvent (const QString &event) const |
| virtual bool | hasEvent (const QString &event) const |
| virtual Event & | getEvent (const QString &event) const |
| virtual QList< QString > | events () const |
| virtual QList< QString > | properEvents () const |
| HierarchicalAttr | eventTree () const |
| virtual bool | isInheritedOrder (const QString &order) const |
| virtual bool | hasOrder (const QString &order) const |
| virtual Order & | getOrder (const QString &order) const |
| virtual QList< QString > | orders () const |
| virtual QList< QString > | properOrders () const |
| HierarchicalAttr | orderTree () const |
Protected Member Functions | |
| InheritableObject (GameObject &parent, InheritableObject *ancestor=nullptr) | |
Protected Attributes | |
| InheritableObject * | aAncestor |
The InheritableObject class is the base class for every objects that can inherit attributes from an other InheritableObject.
It is the base class of Type and TypedObject.
Returns the object from with the current instance inherits
| QList< QString > InheritableObject::events | ( | ) | const [virtual] |
Returns the list of the events of the object, both proper and inherited.
Reimplemented from GameObject.
| HierarchicalAttr InheritableObject::eventTree | ( | ) | const |
Returns the hierarchy of event, that is the list of ancestors and which event they define.
| QList< QString > InheritableObject::flags | ( | ) | const [virtual] |
Returns the list of the flags of the object, both proper and inherited.
Reimplemented from GameObject.
| HierarchicalAttr InheritableObject::flagTree | ( | ) | const |
Returns the hierarchy of flags, that is the list of ancestors and which flags they define.
| Event & InheritableObject::getEvent | ( | const QString & | event | ) | const [virtual] |
Returns the event event, loocking for it in the different ancestors if not found.
Reimplemented from GameObject.
| bool InheritableObject::getFlag | ( | const QString & | flag | ) | const [virtual] |
Returns the value of the flag flag, loocking for it in the different ancestors if not found.
Reimplemented from GameObject.
| Order & InheritableObject::getOrder | ( | const QString & | order | ) | const [virtual] |
Returns the order order, loocking for it in the different ancestors if not found.
Reimplemented from GameObject.
| int InheritableObject::getParam | ( | const QString & | param | ) | const [virtual] |
Returns the value of the param parameter, loocking for it in the different ancestors if not found.
Reimplemented from GameObject.
| int InheritableObject::getParamMax | ( | const QString & | param | ) | const [virtual] |
Returns the upeer bound of the param parameter if it exists (or is inherited).
param param is not defined, a default value is returned (100).Reimplemented from GameObject.
| int InheritableObject::getParamMin | ( | const QString & | param | ) | const [virtual] |
Returns the lower bound of the param parameter if it exists (or is inherited).
param param is not defined, a default value is returned (0).Reimplemented from GameObject.
| bool InheritableObject::hasAncestor | ( | ) | const |
Returns true if the object inherits from an other one.
| bool InheritableObject::hasEvent | ( | const QString & | event | ) | const [virtual] |
Returns true if the event event is defined in the object or one of its ancestors.
Reimplemented from GameObject.
| bool InheritableObject::hasFlag | ( | const QString & | flag | ) | const [virtual] |
Returns true if the flag flag is defined in the object or one of its ancestors.
Reimplemented from GameObject.
| bool InheritableObject::hasOrder | ( | const QString & | order | ) | const [virtual] |
Returns true if the order order is defined in the object or one of its ancestors.
Reimplemented from GameObject.
| bool InheritableObject::hasParam | ( | const QString & | param | ) | const [virtual] |
Returns true if the param parameter is defined in the object or one of its ancestors.
Reimplemented from GameObject.
| bool InheritableObject::isInheritedEvent | ( | const QString & | event | ) | const [virtual] |
Returns true if the event event is define in one of the ancestors of the object.
| bool InheritableObject::isInheritedFlag | ( | const QString & | flag | ) | const [virtual] |
Returns true if the flag flag is define in one of the ancestors of the object.
| bool InheritableObject::isInheritedOrder | ( | const QString & | order | ) | const [virtual] |
Returns true if the order order is define in one of the ancestors of the object.
| bool InheritableObject::isInheritedParam | ( | const QString & | param | ) | const [virtual] |
Returns true if the param parameter is define in one of the ancestors of the object.
| bool InheritableObject::isRedefiniedFlag | ( | const QString & | flag | ) | const [virtual] |
Returns true if the flag flag is an inherited flag with a object proper value.
| bool InheritableObject::isRedefiniedParam | ( | const QString & | param | ) | const [virtual] |
Returns true if the param parameter is an inherited parameter with a object proper value.
| QList< QString > InheritableObject::orders | ( | ) | const [virtual] |
Returns the list of the orders of the object, both proper and inherited.
Reimplemented from GameObject.
| HierarchicalAttr InheritableObject::orderTree | ( | ) | const |
Returns the hierarchy of orders, that is the list of ancestors and which orders they define.
| QList< QString > InheritableObject::params | ( | ) | const [virtual] |
Returns the list of the parameters of the object, both proper and inherited.
Reimplemented from GameObject.
| HierarchicalAttr InheritableObject::paramTree | ( | ) | const |
Returns the hierarchy of parameters, that is the list of ancestors and which parameters they define.
| QList< QString > InheritableObject::properEvents | ( | ) | const [virtual] |
Returns the list of the events that are only defined in the object (the uninherited events)
| QList< QString > InheritableObject::properFlags | ( | ) | const [virtual] |
Returns the list of the flags that are only defined in the object (the uninherited flags)
| QList< QString > InheritableObject::properOrders | ( | ) | const [virtual] |
Returns the list of the orders that are only defined in the object (the uninherited orders)
| QList< QString > InheritableObject::properParams | ( | ) | const [virtual] |
Returns the list of the parameters that are only defined in the object (the uninherited parameters)
| void InheritableObject::setParam | ( | const QString & | param, |
| int | value | ||
| ) | [virtual] |
1.7.6.1