vooga.levelEditor.game.ballPathBuilder.items
Class Ball

java.lang.Object
  extended by vooga.gameEngine.game.GameRelatedObject
      extended by vooga.gameEngine.item.GameItem
          extended by vooga.physicsEngine.PhysicalItem
              extended by vooga.levelEditor.game.ballPathBuilder.items.Ball
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Renderable>, Collidable<PhysicalItem>, Renderable, Tangible

public class Ball
extends PhysicalItem
implements Collidable<PhysicalItem>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class vooga.physicsEngine.PhysicalItem
parameters
 
Constructor Summary
Ball(double radius, java.lang.String color)
          Construct a new Ball with the given radius
 
Method Summary
 void collide(PhysicalItem otherObject)
          This method is called whenever an object of the specified type has collided with this object.
 
Methods inherited from class vooga.physicsEngine.PhysicalItem
applyAngularImpulse, applyImpulse, getPhysicsOn, setConstantForce, setPhysicsOn, setPosition, setPosition
 
Methods inherited from class vooga.gameEngine.item.GameItem
compareTo, getPosition, getRotation, getShape, getSize, getTexture, isVisible, move, resize, rotate, setPosition, setRotation, setSize, setVisibility
 
Methods inherited from class vooga.gameEngine.game.GameRelatedObject
addEventListener, clearListeners, equals, fire, fire, fire, getEventListeners, getID, getListenerCount, removeEventListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface vooga.gameEngine.item.Renderable
getTexture, isVisible, setVisibility
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface vooga.gameEngine.item.Tangible
getPosition, getRotation, getShape, getSize, move, resize, rotate, setPosition, setRotation, setSize
 

Constructor Detail

Ball

@LevelEditorConstructor
public Ball(@EditableDouble(defaultValue=10.0,editorName="radius")
                                   double radius,
                                   @EditableString(defaultValue="Black",allowedValues={"Black","Blue","Red","Green"},editorName="Color")
                                   java.lang.String color)
Construct a new Ball with the given radius

Parameters:
radius - the radius of the new Ball
Method Detail

collide

public void collide(PhysicalItem otherObject)
Description copied from interface: Collidable
This method is called whenever an object of the specified type has collided with this object.

Specified by:
collide in interface Collidable<PhysicalItem>
Parameters:
otherObject - that has collided with this object