Class UnitAction.UnitMoveListener

java.lang.Object
  |
  +--UnitAction.UnitMoveListener
Enclosing class:
UnitAction

class UnitAction.UnitMoveListener
extends java.lang.Object
implements java.awt.event.ActionListener

Handles the pressing of the MoveUnit button


Constructor Summary
(package private) UnitAction.UnitMoveListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
(package private)  boolean DestinationsExists(int range, int currX, int currY)
          Driver method for finding possible directions
(package private)  boolean findDestinations(int range, int currX, int currY, byte dir)
          Recursive method for finding possible directions
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

UnitAction.UnitMoveListener

UnitAction.UnitMoveListener()
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

DestinationsExists

boolean DestinationsExists(int range,
                           int currX,
                           int currY)
Driver method for finding possible directions

findDestinations

boolean findDestinations(int range,
                         int currX,
                         int currY,
                         byte dir)
Recursive method for finding possible directions