#include <GeneticBehaviour.h>
Public Member Functions | |
GeneticBehaviour () | |
Constructor. | |
GeneticBehaviour (GeneticCode *c) | |
Constructor. | |
virtual | ~GeneticBehaviour () |
Destructor. | |
virtual void | think () |
Think at the strategy for this turn. | |
GeneticCode * | getGeneticCode () const |
Get the genetic code. | |
Protected Attributes | |
GeneticCode * | _code |
Definition at line 35 of file GeneticBehaviour.h.
GeneticBehaviour::GeneticBehaviour | ( | GeneticCode * | c | ) |
GeneticCode* GeneticBehaviour::getGeneticCode | ( | ) | const [inline] |
Get the genetic code.
Definition at line 71 of file GeneticBehaviour.h.
References _code.
Referenced by GeneticReplication::addSurvivor(), and GeneticReplication::createWorshiper().
00071 { 00072 return _code; 00073 }
GeneticCode* GeneticBehaviour::_code [protected] |
The genetic code
Definition at line 40 of file GeneticBehaviour.h.
Referenced by getGeneticCode(), think(), and ~GeneticBehaviour().