Project: atomswarm / Class: 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.
Creative Commons License

Valid XHTML 1.0 Strict Valid CSS 2