infinitewisdom.view
Class UnitView
java.lang.Object
infinitewisdom.view.UnitView
- Direct Known Subclasses:
- ArcherView, SwordsmanView
public abstract class UnitView
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
unit
protected UnitIF unit
gwView
protected GameWorldView gwView
size
protected double size
playerView
protected PlayerView playerView
UnitView
public UnitView(PlayerView pv,
GameWorldView gwv,
UnitIF uif)
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()