#include <Attachable.h>
Inheritance diagram for ogs::support::Attachable:
Public Member Functions | |
virtual bool | attachObject (Object &object)=0 |
Attach this attachable to an object. | |
virtual bool | detachObject ()=0 |
Detach this attachable from an object. | |
virtual Object * | getObject () const=0 |
Determine the object that this attachable is currently attached to. |
|
This function first determines whether this object can be attached to the specified object. This step usually checks whether the object is being attached to itself or whether it is already attached. If the object can be attached, this function then applies any modifications to the attached object and returns true. Otherwise, this function should simply return false.
Implemented in ogs::core::CClass, ogs::core::Feature, ogs::core::Item, ogs::cclasses::Paladin, ogs::feats::Alertness, ogs::feats::ImprovedInitiative, ogs::feats::ImprovedSave, and ogs::feats::Toughness. |
|
This function determines if this object is attached and, if so, whether it can be detached from the attached object. If it can, the function removes or otherwise reverses any modifications made to the attached object and returns true. Otherwise, the function returns false.
Implemented in ogs::core::CClass, ogs::core::Feature, ogs::core::Item, ogs::cclasses::Paladin, ogs::feats::Alertness, ogs::feats::ImprovedInitiative, and ogs::feats::ImprovedSave. |
|
If the attachable is not currently attached to any object, this function returns null.
Implemented in ogs::core::CClass, ogs::core::Feature, and ogs::core::Item. |