Class UnitAction.PurchaseUnitListener

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

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

Handles the event of when the user choses an actual unit to purchase


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

Constructor Detail

UnitAction.PurchaseUnitListener

UnitAction.PurchaseUnitListener()
Method Detail

actionPerformed

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

unitDropable

private boolean unitDropable(Player currentPlayer)

checkAndHighlight

private boolean checkAndHighlight(int x,
                                  int y)