Base class for various components. More...
#include <component.h>
Public Member Functions | |
Component (void) | |
constructor; | |
Amorph & | payload (void) |
associated data | |
virtual ID | identificator (void) const |
associated ID, if any | |
virtual Factory * | factory (void) const |
associated factory, if any | |
virtual bool | save (QSettings &s) const =0 |
save to a QSettings object | |
virtual bool | load (QSettings &s)=0 |
load from a QSettings object |
Protected Member Functions | |
virtual | ~Component (void) |
destructor; | |
virtual void | inserted (void) |
the instance is informed that the parent attached it |
Friends | |
class | AprilLibrary |
class | World |
class | Actor |
Base class for various components.
Components may be chained in a linked list as they inherit List2De; also, they are reference-counted.
|
inlineprotectedvirtual |
the instance is informed that the parent attached it
The method signals that insertion process ended succesfully.