All Packages Class Hierarchy This Package Previous Next Index
Class EDU.gatech.cc.is.simulation.BinSim
java.lang.Object
|
+----EDU.gatech.cc.is.simulation.AttractorSim
|
+----EDU.gatech.cc.is.simulation.BinSim
- public class BinSim
- extends AttractorSim
- implements SimulatedObject
A simple bin for depositing attractors.
Copyright
(c)1997 Georgia Tech Research Corporation
- Version:
- $Revision: 1.3 $
- Author:
- Tucker Balch
-
background
-
-
DEBUG
-
-
BinSim()
- Instantiate a BinSin object.
-
draw(Graphics, int, int, double, double, double, double)
- Draw the bin.
-
draw(Vec2, Graphics, int, int, double, double, double, double)
- Draw the object in a specific spot.
-
getCenter(Vec2)
-
-
getClosestPoint(Vec2)
-
-
init(double, double, double, double, Color, Color, int, int, long)
- Initialize an BinSim object.
-
isPickupable()
-
-
isPushable()
-
-
push(Vec2, Vec2)
-
-
quit()
-
background
protected Color background
DEBUG
public static final boolean DEBUG
BinSim
public BinSim()
- Instantiate a BinSin object. Be sure
to also call init with proper values.
- See Also:
- init
init
public void init(double xp,
double yp,
double t,
double r,
Color f,
Color b,
int v,
int i,
long s)
- Initialize an BinSim object.
Called automatically by JavaBotSim.
- Parameters:
- xp - the x coordinate.
- yp - the y coordinate.
- t - ingored.
- r - the radius.
- f - the foreground color.
- b - ignored.
- v - the vision class.
- i - the unique id.
- s - random number seed.
- Overrides:
- init in class AttractorSim
isPushable
public boolean isPushable()
- Overrides:
- isPushable in class AttractorSim
isPickupable
public boolean isPickupable()
- Overrides:
- isPickupable in class AttractorSim
getClosestPoint
public Vec2 getClosestPoint(Vec2 from)
- Overrides:
- getClosestPoint in class AttractorSim
getCenter
public Vec2 getCenter(Vec2 from)
- Overrides:
- getCenter in class AttractorSim
push
public void push(Vec2 d,
Vec2 v)
- Overrides:
- push in class AttractorSim
quit
public void quit()
- Overrides:
- quit in class AttractorSim
draw
public void draw(Graphics g,
int w,
int h,
double t,
double b,
double l,
double r)
- Draw the bin.
- Overrides:
- draw in class AttractorSim
draw
public void draw(Vec2 pos,
Graphics g,
int w,
int h,
double t,
double b,
double l,
double r)
- Draw the object in a specific spot.
- Overrides:
- draw in class AttractorSim
All Packages Class Hierarchy This Package Previous Next Index