Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ant Class Reference

A class implementing an ant. More...

#include <ant.h>

List of all members.

Public Methods

bool isLoaded ()
 Does it carry food on its back ?

char getHemisphere ()
 Returns ant species : 1 for North, 0 for South.

void update (long int updateStamp)
 Makes the ant decide what it is going to do next, and actually do it.

 ant (portion *birthPortion, int antIndex, char myHemisphere)
double getPhMult ()
 ~ant ()

Public Attributes

portioncurrentPortion
 the portion the ant is currently standing on.

portionpreviousPortion
 the portion the ant previously was on.

char * antName
 Ant name, generated from the index of its birth portion, its creation rank and its species.


Detailed Description

A class implementing an ant.


Constructor & Destructor Documentation

ant::ant portion   birthPortion,
int    antIndex,
char    myHemisphere
 

Parameters:
birthPortion  the original portion of the ant
antIndex  Ant creation rank
myHemisphere  Ant species, North (1) or South (0) ?


The documentation for this class was generated from the following files:
Generated on Mon Jun 14 09:29:38 2004 by doxygen1.2.15