java.lang.Object
javax.swing.event.MouseInputAdapter
org.zazof.jteg.gui.RegroupMouseInput
- All Implemented Interfaces:
- java.util.EventListener, javax.swing.event.MouseInputListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
- public class RegroupMouseInput
- extends javax.swing.event.MouseInputAdapter
This class is responsible for handling the mouse input when the game state is "regrouping" the armies.
It maintains basic information that may be interrogated by a visualizer.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$previouslySelected
private org.zazof.jteg.Country $previouslySelected
$fromCountry
private org.zazof.jteg.Country $fromCountry
$destinationCountry
private org.zazof.jteg.Country $destinationCountry
$boardCanvas
private BoardCanvas $boardCanvas
$mainFrame
private MainFrame $mainFrame
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
RegroupMouseInput
public RegroupMouseInput(MainFrame frame,
BoardCanvas bc)
- Basic Constructor of the RegroupMouseInput
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent me)
- Methods to be overrided from MouseInputAdapter
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent me)
- Description copied from class:
javax.swing.event.MouseInputAdapter
- Mouse moved
getFromCountryName
public java.lang.String getFromCountryName()
getDestCountryName
public java.lang.String getDestCountryName()
fromCountrySelected
private boolean fromCountrySelected()