movements
Class MoveBackwardsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bymovements.MoveBackwardsException
All Implemented Interfaces:
java.io.Serializable

class MoveBackwardsException
extends java.lang.Exception

Thrown if a participant makes a move that takes the partipant to a position that is approximately behind him/her and facing in approximately the same direction as the original direction faced by the participant. The algorithms for moving a participant from one position to another are very generic and can cope with most moves, but moving to a position behind and ending facing in the same direction is just not possible with two arcs of a circle. It is also ambiguous as to which way the participant should turn to make the move, and such a move would be far better specified as two or more moves. Such a movement is therefore disallowed.

Author:
Nigel

Field Summary
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
(package private) MoveBackwardsException()
          Creates a new instance of Class
 
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

MoveBackwardsException

MoveBackwardsException()
Creates a new instance of Class



Copyright © 2003 Nigel Westbury