appletbots
Class CollisionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by appletbots.CollisionException
All Implemented Interfaces:
java.io.Serializable

public class CollisionException
extends java.lang.Exception

This exception is thrown when two objects collide

Author:
Erik Rasmussen
See Also:
Serialized Form

Constructor Summary
CollisionException()
          Creates a new CollisionException
CollisionException(java.lang.String message)
          Creates a new CollisionException with the given error message
CollisionException(WorldObject collider, WorldObject collidee)
          Creates a new CollisionException with the given collider and collidee
 
Method Summary
 WorldObject getCollidee()
          Returns the collidee.
 WorldObject getCollider()
          Returns the collider.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollisionException

public CollisionException(WorldObject collider,
                          WorldObject collidee)
Creates a new CollisionException with the given collider and collidee

Parameters:
collider - The collider. The object that is colliding with the collidee.
collidee - The collidee. The object that the collider is colliding with.

CollisionException

public CollisionException(java.lang.String message)
Creates a new CollisionException with the given error message

Parameters:
message - The error message

CollisionException

public CollisionException()
Creates a new CollisionException

Method Detail

getCollider

public WorldObject getCollider()
Returns the collider. The object that is colliding with the collidee.

Returns:
The collider. The object that is colliding with the collidee.

getCollidee

public WorldObject getCollidee()
Returns the collidee. The object that the collider is colliding with.

Returns:
The collidee. The object that the collider is colliding with.