Base class for a brain. More...
#include <brain.h>
Inheritance diagram for april::Brain:Public Member Functions | |
| Brain (Actor *actor) | |
| constructor; sets cost and packed energy to 0 | |
| Brain (Actor *actor, quint64 cost, quint64 energy) | |
| constructor; sets cost and packed energy | |
| virtual bool | save (QSettings &s) const |
| save to a QSettings object | |
| virtual bool | load (QSettings &s) |
| load from a QSettings object | |
Public Member Functions inherited from april::ActorComp | |
| ActorComp (Actor *actor) | |
| constructor; sets cost and packed energy to 0 | |
| ActorComp (Actor *actor, quint64 cost, quint64 energy) | |
| constructor; sets cost and packed energy | |
| bool | isValid (void) const |
| tell if this is a valid instance | |
| Actor * | actor (void) const |
| parent actor | |
| QString | myName (void) const |
| get the name of my ID | |
| quint64 | cost (void) const |
| cost per time unit | |
| quint64 | energy (void) const |
| ammount of energy packed inside this component | |
Public Member Functions inherited from april::Component | |
| 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 | |
Static Public Member Functions | |
| static Q_REQUIRED_RESULT Brain * | fromStg (Actor *a, QSettings &stg) |
| constructor method; creates and loads an Brain from QSettings | |
Protected Member Functions | |
| virtual | ~Brain (void) |
| destructor; | |
Protected Member Functions inherited from april::ActorComp | |
| virtual | ~ActorComp (void) |
| destructor; | |
| void | setCost (quint64 new_val) |
| set cost per time unit | |
| void | setEnergy (quint64 new_val) |
| set cost per time unit | |
| virtual void | doSteps (int steps) |
| perform steps (called by the Actor) | |
Protected Member Functions inherited from april::Component | |
| virtual | ~Component (void) |
| destructor; | |
| virtual void | inserted (void) |
| the instance is informed that the parent attached it | |
Base class for a brain.