|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMouseMotionHandler
public class MouseMotionHandler
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 |
---|
public MouseMotionHandler()
Method Detail |
---|
public void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged
in interface java.awt.event.MouseMotionListener
me
- is uselesspublic void mouseMoved(java.awt.event.MouseEvent me)
mouseMoved
in interface java.awt.event.MouseMotionListener
me
- is useless
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |