Class MouseMotionHandler

java.lang.Object
  extended by MouseMotionHandler
All Implemented Interfaces:
java.awt.event.MouseMotionListener, java.util.EventListener

public class MouseMotionHandler
extends java.lang.Object
implements java.awt.event.MouseMotionListener

This class handles most of the I/O with the mouse


Constructor Summary
MouseMotionHandler()
           
 
Method Summary
 void mouseDragged(java.awt.event.MouseEvent me)
          This method checks the gameState of the BoardManager,and attempts to move a unit if it is in the Place state, attempts to move a unit according to the rules and ending the players turn if it is in the Play state, and does nothing during any other state
 void mouseMoved(java.awt.event.MouseEvent me)
          This method does nothing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseMotionHandler

public MouseMotionHandler()
Method Detail

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent me)
This method checks the gameState of the BoardManager,and attempts to move a unit if it is in the Place state, attempts to move a unit according to the rules and ending the players turn if it is in the Play state, and does nothing during any other state

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
me - is useless

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent me)
This method does nothing

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
me - is useless