|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMouseHandler
public class MouseHandler
This class handles most of the I/O with the mouse
Constructor Summary | |
---|---|
MouseHandler()
|
Method Summary | |
---|---|
void |
mouseClicked(java.awt.event.MouseEvent me)
This method checks the gameState of the BoardManager, selects a square and attempts to place a unit if it is a left click during the Place state, removes a unit if it is a right click during the Place state,selects a square and unit if it is in the Play state, and does nothing during any other state. |
void |
mouseEntered(java.awt.event.MouseEvent me)
This method does nothing |
void |
mouseExited(java.awt.event.MouseEvent me)
This method does nothing |
void |
mousePressed(java.awt.event.MouseEvent me)
This method does nothing |
void |
mouseReleased(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 MouseHandler()
Method Detail |
---|
public void mouseClicked(java.awt.event.MouseEvent me)
mouseClicked
in interface java.awt.event.MouseListener
me
- shows where the click happened and which button it was.public void mouseEntered(java.awt.event.MouseEvent me)
mouseEntered
in interface java.awt.event.MouseListener
me
- is uselesspublic void mouseExited(java.awt.event.MouseEvent me)
mouseExited
in interface java.awt.event.MouseListener
me
- is uselesspublic void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased
in interface java.awt.event.MouseListener
me
- is uselesspublic void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in interface java.awt.event.MouseListener
me
- is useless
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |