source.ucregents.playground.samplegame
Class Ball_Smile

java.lang.Object
  extended by source.ucregents.playground.physics.BaseEntity
      extended by source.ucregents.playground.physics.MovingEntity
          extended by source.ucregents.playground.samplegame.Ball
              extended by source.ucregents.playground.samplegame.Ball_Smile
All Implemented Interfaces:
java.lang.Cloneable

public class Ball_Smile
extends Ball


Constructor Summary
Ball_Smile()
           
Ball_Smile(double x, double y, double dX, double dY)
           
Ball_Smile(java.awt.geom.Point2D.Double p, javax.vecmath.Vector2d v)
           
 
Method Summary
 java.lang.String DefaultImageLocation()
          Provides the location of the default image
 void OnCollisionWith(BaseEntity ent2)
          Physics collisions are already handled, this method is called immediately after each collision to determine any special behavior of this entity.
 
Methods inherited from class source.ucregents.playground.physics.MovingEntity
collide, collide, Deserialize, Draw, getAngularVelocity, getCurrentTickVelocity, getCurrentVelocity, getMass, increaseVelocity, increaseXVelocity, increaseYVelocity, isStationary, isUnstoppableForce, moveCurrentVelocity, moveVector, Serialize, setAngularVelocity, setCurrentTickVelocity, setCurrentVelocity, setMass, setStationary, setUnstoppableForce
 
Methods inherited from class source.ucregents.playground.physics.BaseEntity
calculateAxes, clone, getActualFrameDimensions, getAxes, getAxesClone, getAxis, getBounciness, getCenterPoint, getDrawType, getEvents, getFrameColor, getFrictionConstant, getGradientColor, getImageOffset, getName, getOrientation, getResizingObject, getRoundedShapeMass, getScale, getShape, getShapeColor, getShapeFrame, getShapeMass, getSideVectors, getULPoint, getUserEvents, getVertexCount, getVerticesCoordinates, isCircle, isCollidable, isOverlapping, isPolygon, isSelected, isVisible, OnCenterScale, OnLocationChange, OnOrientationChange, OnULScale, RegisterEvent, RegisterEvent, RegisterEvents, RemoveEvent, RemoveEvents, resetFrameColor, Scale, ScaleAroundCenter, setBounciness, setCenterPoint, setCenterPoint, setCollidable, setDrawType, setFrameColor, setFrictionConstant, setGradientColor, setImageOffset, setName, setOrientation, setScale, setSelected, setShapeColor, setULPoint, setULPoint, setVisible, toString, toXMLElement
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ball_Smile

public Ball_Smile()

Ball_Smile

public Ball_Smile(double x,
                  double y,
                  double dX,
                  double dY)

Ball_Smile

public Ball_Smile(java.awt.geom.Point2D.Double p,
                  javax.vecmath.Vector2d v)
Method Detail

DefaultImageLocation

public java.lang.String DefaultImageLocation()
Description copied from class: BaseEntity
Provides the location of the default image

Overrides:
DefaultImageLocation in class MovingEntity
Returns:
Returns the location of the image

OnCollisionWith

public void OnCollisionWith(BaseEntity ent2)
Description copied from class: BaseEntity
Physics collisions are already handled, this method is called immediately after each collision to determine any special behavior of this entity. The other object is given only to determine what special event will happen to this entity and in most cases should not be modified. collideSpecial is called twice with reference to both objects in opposite order.

Overrides:
OnCollisionWith in class BaseEntity
Parameters:
ent2 - The entity that collision has occured with