src/GeneticBehaviour.cpp File Reference

Behaviour of Worshipers created with GeneticReplication. More...

#include "GeneticBehaviour.h"
#include <map>
#include "Random.h"
#include "VisualContext.h"
#include "GeneticCode.h"
#include "MoveIterator.h"
#include "WorshiperInfo.h"

Include dependency graph for GeneticBehaviour.cpp:

Go to the source code of this file.

Defines

#define NOT_HUNGRY_FACTOR   0.5
#define BONUS_GREEDY   10
#define MALUS_ANOREXIC   (-10)
#define MALUS_NOT_HUNGRY   (-10)
#define BONUS_AGGRESSIVE   15
#define MALUS_COWARD   (-15)
#define MALUS_REASONABLE   (-10)
#define INFINITE   1000;


Detailed Description

Behaviour of Worshipers created with GeneticReplication.

Author:
Émilien Girault, Léo Terziman
Date:
: feb 02 2008

Definition in file GeneticBehaviour.cpp.


Define Documentation

#define BONUS_AGGRESSIVE   15

The bonus a Cell will obtains depending of the agressivity gene

Definition at line 44 of file GeneticBehaviour.cpp.

Referenced by GeneticBehaviour::think().

#define BONUS_GREEDY   10

The bonus a Cell will obtains depending of the greedy gene

Definition at line 38 of file GeneticBehaviour.cpp.

Referenced by GeneticBehaviour::think().

#define INFINITE   1000;

The value used as the infinite value

Definition at line 51 of file GeneticBehaviour.cpp.

Referenced by GeneticBehaviour::think().

#define MALUS_ANOREXIC   (-10)

The malus a Cell will obtains depending of the anorexic gene

Definition at line 40 of file GeneticBehaviour.cpp.

Referenced by GeneticBehaviour::think().

#define MALUS_COWARD   (-15)

The malus a Cell will obtains depending of the coward gene

Definition at line 46 of file GeneticBehaviour.cpp.

Referenced by GeneticBehaviour::think().

#define MALUS_NOT_HUNGRY   (-10)

The malus a Cell will obtains depending of the food of the Worshiper

Definition at line 42 of file GeneticBehaviour.cpp.

Referenced by GeneticBehaviour::think().

#define MALUS_REASONABLE   (-10)

The malus a Cell will obtains depending of the reasonable gene

Definition at line 48 of file GeneticBehaviour.cpp.

Referenced by GeneticBehaviour::think().

#define NOT_HUNGRY_FACTOR   0.5

The factor of hungryness ;) of the Worshiper

Definition at line 36 of file GeneticBehaviour.cpp.

Referenced by GeneticBehaviour::think().


Generated on Sat Feb 2 22:22:56 2008 for Teapot Colony Wars by  doxygen 1.5.4