infinitewisdom.view
Class UnitView

java.lang.Object
  extended by infinitewisdom.view.UnitView
Direct Known Subclasses:
ArcherView, SwordsmanView

public abstract class UnitView
extends java.lang.Object


Field Summary
protected  GameWorldView gwView
           
protected  PlayerView playerView
           
protected  double size
           
protected  UnitIF unit
           
 
Constructor Summary
UnitView(PlayerView pv, GameWorldView gwv, UnitIF uif)
           
 
Method Summary
 void centerText(java.awt.Graphics g, int w, int h, java.lang.String s)
           
 PlayerView getPlayerView()
           
 int getScreenSize()
           
 int getScreenX()
           
 int getScreenY()
           
 UnitIF getUnit()
           
 void paint(java.awt.Graphics g)
           
 void setPlayerView(PlayerView playerView)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unit

protected UnitIF unit

gwView

protected GameWorldView gwView

size

protected double size

playerView

protected PlayerView playerView
Constructor Detail

UnitView

public UnitView(PlayerView pv,
                GameWorldView gwv,
                UnitIF uif)
Method Detail

paint

public void paint(java.awt.Graphics g)

centerText

public void centerText(java.awt.Graphics g,
                       int w,
                       int h,
                       java.lang.String s)

getScreenX

public int getScreenX()

getScreenY

public int getScreenY()

getPlayerView

public PlayerView getPlayerView()

setPlayerView

public void setPlayerView(PlayerView playerView)

getScreenSize

public int getScreenSize()

getUnit

public UnitIF getUnit()