Class GolfBallNoiseSim


public class GolfBallNoiseSim
extends GolfBallSim

A noisy golfball for RoboCup Soccer. Introduction
GolfBallNoiseSim implements a golf ball for RoboCup soccer simulations. The ball is also the scorekeeper and the referee; after all who would know better whether a scoring event occured?

A "shot clock" keeps track of how long since a scoring event occured. If it times-out, the ball is reset to the center of the field.

Copyright (c)2000 Tucker Balch

Fields inherited from class
DEBUG, velocity
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 push(Vec2 d, Vec2 v)
          Handle a push.
Methods inherited from class
draw, eastJustScored, eastKickOff, playBall, takeStep, westJustScored, westKickOff
Methods inherited from class
checkCollision, checkCollision, clearTrail, draw, drawIcon, drawID, drawState, drawTrail, getCenter, getClosestPoint, getID, getPosition, getVisionClass, init, isObstacle, isPickupable, isPushable, pickUp, putDown, quit, receive, setID, setTrailLength, setVisionClass
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public GolfBallNoiseSim()
Method Detail


public void push(Vec2 d,
                 Vec2 v)
Handle a push. This is how to kick or push the ball.
push in class GolfBallSim
Tags copied from interface: SimulatedObject
d - the direction and distance of the push.
v - the velocity of the push.