Class AttractorPermSim

Direct Known Subclasses:
AttractorHurtPersonSim, AttractorPersonSim

public class AttractorPermSim
extends AttractorSim
implements SimulatedObject

A simple attractor for simulation. This attractor differs from AttractorSim in that it remains once it is putDown.

Copyright (c)2000 by Tucker Balch

Fields inherited from class
all_objects, background, bottom, DEBUG, deposited, foreground, left, picked_up, position, RADIUS, rando, right, seed, top, unique_id, visionclass
Constructor Summary
Method Summary
 void putDown(Vec2 p)
          Try to put down the object.
Methods inherited from class
checkCollision, checkCollision, clearTrail, draw, draw, drawIcon, drawID, drawState, drawTrail, getCenter, getClosestPoint, getID, getPosition, getVisionClass, init, isObstacle, isPickupable, isPushable, pickUp, push, quit, receive, setID, setTrailLength, setVisionClass, takeStep
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public AttractorPermSim()
Method Detail


public void putDown(Vec2 p)
Description copied from interface: SimulatedObject
Try to put down the object.
Specified by:
putDown in interface SimulatedObject
putDown in class AttractorSim
Tags copied from interface: SimulatedObject
p - the location of deposit.