civquest.swing.quadmap
Class FlatUnitView

java.lang.Object
  extended bycivquest.swing.UnitView
      extended bycivquest.swing.quadmap.FlatUnitView

public class FlatUnitView
extends civquest.swing.UnitView


Constructor Summary
FlatUnitView(java.awt.Image nimage, Unit nunit, QuadMap nmap, Ruleset uvruleset)
           
 
Method Summary
 void activate()
           
 void deactivate()
           
 boolean isActive()
           
 boolean paintOnMap(int x, int y, java.awt.Graphics graphics)
          Paints the unit on the map using the given Graphics, starting at coordinates (x,y).
 
Methods inherited from class civquest.swing.UnitView
getUnit, paintOnMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlatUnitView

public FlatUnitView(java.awt.Image nimage,
                    Unit nunit,
                    QuadMap nmap,
                    Ruleset uvruleset)
Method Detail

activate

public void activate()

deactivate

public void deactivate()

isActive

public boolean isActive()

paintOnMap

public boolean paintOnMap(int x,
                          int y,
                          java.awt.Graphics graphics)
Paints the unit on the map using the given Graphics, starting at coordinates (x,y).