GeneticBehaviour Class Reference

#include <GeneticBehaviour.h>

Inheritance diagram for GeneticBehaviour:

Inheritance graph
[legend]
Collaboration diagram for GeneticBehaviour:

Collaboration graph
[legend]

Public Member Functions

 GeneticBehaviour ()
 Constructor.
 GeneticBehaviour (GeneticCode *c)
 Constructor.
virtual ~GeneticBehaviour ()
 Destructor.
virtual void think ()
 Think at the strategy for this turn.
GeneticCodegetGeneticCode () const
 Get the genetic code.

Protected Attributes

GeneticCode_code

Detailed Description

< Genetic behaviour strategy

Definition at line 35 of file GeneticBehaviour.h.


Constructor & Destructor Documentation

GeneticBehaviour::GeneticBehaviour ( GeneticCode c  ) 

Constructor.

Parameters:
c genetic code

Definition at line 60 of file GeneticBehaviour.cpp.

00060 : Behaviour(), _code(c) {}


Member Function Documentation

GeneticCode* GeneticBehaviour::getGeneticCode (  )  const [inline]

Get the genetic code.

Returns:
genetic code

Definition at line 71 of file GeneticBehaviour.h.

References _code.

Referenced by GeneticReplication::addSurvivor(), and GeneticReplication::createWorshiper().

00071                                               {
00072     return _code;
00073   }

Here is the caller graph for this function:


Field Documentation

GeneticCode* GeneticBehaviour::_code [protected]

The genetic code

Definition at line 40 of file GeneticBehaviour.h.

Referenced by getGeneticCode(), think(), and ~GeneticBehaviour().


The documentation for this class was generated from the following files:
Generated on Sat Feb 2 22:23:14 2008 for Teapot Colony Wars by  doxygen 1.5.4