Class capable of creating worlds. More...
#include <worldfactory.h>
Public Member Functions | |
WorldFactory (const QString &s) | |
constructor; | |
virtual | ~WorldFactory (void) |
destructor; | |
virtual FactoryType | factoryType (void) |
the generic type of the factory | |
virtual QString | factoryName (void) |
the name used to save this factory | |
virtual World * | create (const QString &name, quint64 tot_energ) |
create a world; the base class implementation creates a basic World | |
virtual World * | create (QSettings &stg) |
create a world from the settings object | |
Public Member Functions inherited from april::Factory | |
Factory (World *w) | |
constructor; | |
World * | world (void) const |
the world that hosts us; | |
virtual const QString & | name (ID id) const |
name of the element represented by provided ID | |
virtual QList< qreal > | averageDNA (ID id) const |
get the default DNA sequence for a particular ID | |
virtual bool | save (QSettings &s) const |
save to a QSettings object | |
virtual bool | load (QSettings &s) |
load from a QSettings object |
Additional Inherited Members | |
Protected Member Functions inherited from april::Factory | |
virtual | ~Factory (void) |
destructor; | |
void | setName (const QString &s) |
chang the name of the element represented by provided ID | |
bool | setEnergy (ActorComp *comp, quint64 energy, quint64 cost) |
set the packed energy and the ammount of energy consumed on each time unit |
Class capable of creating worlds.