Class UnitAction.AttackSelectedListener

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

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

Handles the inital process of attacking an enemy, and highlights enemies in range.


Constructor Summary
(package private) UnitAction.AttackSelectedListener()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
private  boolean checkAndHighlight(int x, int y)
           
private  boolean enemyInRange()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

UnitAction.AttackSelectedListener

UnitAction.AttackSelectedListener()
Method Detail

actionPerformed

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

enemyInRange

private boolean enemyInRange()

checkAndHighlight

private boolean checkAndHighlight(int x,
                                  int y)