Project: atomswarm / Class: AtomFood
- classes:
- Atom
- AtomGenetic
- AtomSwarm
- AtomSwarmGenetic
- AtomFood
Processing swarm classes with genetic and metabolic extensions.
Class: AtomFood
Represents a single food resource, required by agents to maintain their H_LEPTIN levels.
Variables
- float x, y - position within the current environment
- float size - visual radius of the food deposit (pixels)
Methods
AtomFood (float x, float y)
Creates a new food object at the specified position.
void display()
Renders the food object.

