An Actor with gui characteristics. More...
#include <agui.h>
Public Member Functions | |
AGui (World *w) | |
constructor; | |
Public Member Functions inherited from april::Actor | |
Actor (World *w) | |
constructor; creates an invalid actor that needs further initialisation | |
virtual bool | save (QSettings &s) const |
save to a QSettings object | |
virtual bool | load (QSettings &s) |
load from a QSettings object | |
virtual ID | identificator (void) const |
associated ID, if any | |
virtual Factory * | factory (void) const |
associated factory, if any | |
Sensor * | firstSensor (void) const |
first sensor in internal list | |
Actuator * | firstActuator (void) const |
first actuator in internal list | |
Reflex * | firstReflex (void) const |
first reflex in internal list | |
Brain * | firstBrain (void) const |
first brain in internal list | |
Sensor * | findSensor (ID id) const |
first sensor in internal list | |
Actuator * | findActuator (ID id) const |
first actuator in internal list | |
Reflex * | findReflex (ID id) const |
first reflex in internal list | |
Brain * | findBrain (ID id) const |
first brain in internal list | |
World * | world (void) const |
the world where we belong | |
ID | kind (void) const |
tell the kind | |
QString | kindName (void) const |
get the name of the kind (shortcut for UniqueId::name() ) | |
const DNA & | dna (void) const |
the DNA of this actor | |
quint64 | birth (void) const |
tell the date of birth | |
quint64 | death (void) const |
tell the date of death | |
quint64 | age (void) const |
tell the age of this actor | |
quint64 | toLive (void) const |
tell the life span of this actor | |
quint64 | energy (void) const |
own energy reserve | |
quint64 | totalEnergy (void) const |
total energy packed in this agent (the agent itself and the compoenets) | |
quint64 | cost (void) const |
energy cost | |
bool | isAlive (void) const |
alive or dead | |
bool | dies (void) const |
tell if this is the moment when the agent dies | |
Public Member Functions inherited from april::Component | |
Component (void) | |
constructor; | |
Amorph & | payload (void) |
associated data |
Protected Member Functions | |
virtual | ~AGui (void) |
destructor; | |
Protected Member Functions inherited from april::Actor | |
virtual | ~Actor (void) |
destructor; | |
void | killMe (void) |
kill the actor; both the actor and the world use this method | |
void | setDNA (const DNA &src) |
set the DNA to provided sequence (intended for ActorFactory) | |
bool | decodeDNA (void) |
load the components of the actor from the DNA | |
bool | addActuator (Actuator *act) |
add an Actuator | |
bool | addSensor (Sensor *act) |
add a Sensor | |
bool | addReflex (Reflex *act) |
add a Reflex | |
bool | addBrain (Brain *act) |
add a Brain | |
bool | remActuator (Actuator *act) |
remove an Actuator | |
bool | remSensor (Sensor *act) |
remove a Sensor | |
bool | remReflex (Reflex *act) |
remove a Reflex | |
bool | remBrain (Brain *act) |
remove a Brain | |
void | doSteps (int steps=1) |
perform steps (called by the World) | |
void | makeAlive (void) |
make the actor alive | |
void | setEnergy (quint64 new_val) |
set total energy (used by the world to initialise and terminate 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from april::Actor | |
static Q_REQUIRED_RESULT Actor * | fromStg (World *w, QSettings &s) |
constructor method; creates and loads an actor from QSettings |
An Actor with gui characteristics.