mhframework
Interface MHRenderable

All Known Implementing Classes:
MHActor, MHActorList, MHDiamondMap, MHGUIButton, MHGUIButtonMenu, MHGUIChatClient, MHGUIClientListDisplay, MHGUIColorCycleControl, MHGUIComponent, MHGUIComponentList, MHGUICycleControl, MHGUIDialogScreen, MHGUIFileDialogScreen, MHGUIInputDialogScreen, MHGUILabel, MHGUIListBox, MHGUINumericCycleControl, MHGUIStatusIndicator, MHGUITextDisplayArea, MHHexMap, MHIsometricMap, MHMapCell, MHPlayingCard, MHScreen, MHStaggeredMap, MHTileMap

public interface MHRenderable

Everything in the game that appears on screen and manages its own data must implement this interface. It enforces the requirement that every visible thing in the game universe must have at least two capabilities:

  1. The ability to update its own data
  2. The ability to draw itself onto a specified Graphics object

It is important to note that the MHActor class implements this interface. Therefore, every class derived from MHActor automatically inherits the abilities set forth in this interface.


Method Summary
 void advance()
          Tells an object to update its data.
 void render(java.awt.Graphics2D g)
          Tells an object to draw itself onto the sent Graphics object.
 

Method Detail

advance

void advance()
Tells an object to update its data.


render

void render(java.awt.Graphics2D g)
Tells an object to draw itself onto the sent Graphics object.

Parameters:
g - The Graphics object on which this object is to draw itself.