hud
Class HZWidget

java.lang.Object
  extended by hud.HZWidget
Direct Known Subclasses:
ManagerOverlay, MapDisplay, OrdersDisplay, StatusOverlay, UnitDisplay

public abstract class HZWidget
extends java.lang.Object


Field Summary
protected  int height
           
protected  HZWidget parent
           
protected  boolean visible
           
protected  int width
           
protected  int x
           
protected  int y
           
 
Constructor Summary
HZWidget(HZWidget parent)
           
 
Method Summary
abstract  void draw()
           
 int getX()
           
 int getY()
           
 boolean isVisible()
           
 void onKeyPress(HZState.HZKey key)
           
 void setGeometry(int x, int y, int width, int height)
           
 void setVisible(boolean visible)
           
 void update(float timeStep)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visible

protected boolean visible

x

protected int x

y

protected int y

width

protected int width

height

protected int height

parent

protected HZWidget parent
Constructor Detail

HZWidget

public HZWidget(HZWidget parent)
Method Detail

update

public void update(float timeStep)

draw

public abstract void draw()

setGeometry

public void setGeometry(int x,
                        int y,
                        int width,
                        int height)

getX

public int getX()

getY

public int getY()

setVisible

public void setVisible(boolean visible)

isVisible

public boolean isVisible()

onKeyPress

public void onKeyPress(HZState.HZKey key)