#include <colony.h>
Inheritance diagram for colony:

Public Methods | |
| colony (double *coordinates, int index) | |
| Creates a colony with a default number (5) of ants. More... | |
| colony (double *coordinates, int index, unsigned int ants) | |
| Creates a colony letting you choose how many ants you want it to create. More... | |
| ~colony () | |
| double | modifyFood (double modifier) |
| Changes the amount of food which has been stored by ants on this portion. More... | |
| double | getFood () |
| Returns how much food has been stored on the portion so far. More... | |
| bool | isColony () |
| Is this portion a colony ? | |
| void | update (long int updateStamp) |
| The code that makes the world evolve to its next iteration. | |
|
||||||||||||
|
Creates a colony with a default number (5) of ants.
|
|
||||||||||||||||
|
Creates a colony letting you choose how many ants you want it to create.
|
|
|
Returns how much food has been stored on the portion so far. 0 if the portion is NOT a colony. Reimplemented from portion. |
|
|
Changes the amount of food which has been stored by ants on this portion. Does nothing if the portion is not a colony.
Reimplemented from portion. |
1.2.15