These pages are auto-generated from self-documenting comments embedded in class files.
For more information on breve and steve, refer to the breve homepage.

Mobile : Wanderer

This class is included as part of the file Wanderer.tz.
To use this class in a simulation, include the line "@use Wanderer."

Class description:

A Wanderer is a subclass of Mobile that wanders randomly around a certain space. The range of wandering is adjusted with the set-wander-range method.

Subclasses of Wanderer should implement their own iterate method to perform class specific tasks, and then call the method super iterate in order for the Wanderer object to handle the object's motion.

Class methods:


randomize-location

Move the Wanderer to a random location within the wander space.


set-top-velocity to newValue (float)

Sets the top velocity of the wanderer to newValue.


set-wander-range to wanderVector (vector)

Sets the range from the origin that the object can wander. The distance the object will wander from the center is the length of wanderVector. The direction of the wandering is proportional to the normalized vector--that is to say that if wanderVector is (100, 100, 0) that motion will be restricted to the X/Y plane.


Documentation created Sun Oct 7 19:13:03 2007