|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
appletbots.CollisionException
public class CollisionException
This exception is thrown when two objects collide
| 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 |
|---|
public CollisionException(WorldObject collider,
WorldObject collidee)
collider - The collider. The object that is colliding with the collidee.collidee - The collidee. The object that the collider is colliding with.public CollisionException(java.lang.String message)
message - The error messagepublic CollisionException()
| Method Detail |
|---|
public WorldObject getCollider()
public WorldObject getCollidee()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||