#include <pheromone.h>
Public Methods | |
| pheromone (portion *location, char hemisphere) | |
| Creates a pheromone object. More... | |
| ~pheromone () | |
| void | update () |
| Makes the pheromones spread due to wind, air dynamics, and dispear under molecular unstability. | |
| double | modifyDeparture (double modifier) |
| Changes the amount (better : density) of departure pheromones. More... | |
| double | modifyReturn (double modifier) |
| Changes the amount (better : density) of return pheromones. More... | |
| double | getDeparture () |
| Returns the amount of departure pheromones (the type ants lay down when they are looking for food). | |
| double | getReturn () |
| Returns the amount of return pheromones (the kind ants lay down when they are making their way home. | |
| double | getPheromone (char type) |
| Returns the amount of a given type of pheromone. More... | |
| char | getHemisphere () |
| Returns the pheromone species. More... | |
| double | getMax () |
| Returns the maximum pheromone intensity. | |
|
||||||||||||
|
Creates a pheromone object.
|
|
|
Returns the pheromone species.
|
|
|
Returns the amount of a given type of pheromone.
|
|
|
Changes the amount (better : density) of departure pheromones.
|
|
|
Changes the amount (better : density) of return pheromones.
|
1.2.15