com.brackeen.javagamebook.graphics3D
Interface Overlay

All Known Implementing Classes:
HeadsUpDisplay, MessageQueue

public interface Overlay

An overlay drawn over a game scene.


Method Summary
 void draw(java.awt.Graphics2D g, ViewWindow viewWindow)
          Draws an overlay onto a frame.
 boolean isEnabled()
          Returns true if this overlay is enabled (should be drawn).
 void update(long elapsedTime)
          Updates this overlay with the specified amount of elapsed time since the last update.
 

Method Detail

update

public void update(long elapsedTime)
Updates this overlay with the specified amount of elapsed time since the last update.


draw

public void draw(java.awt.Graphics2D g,
                 ViewWindow viewWindow)
Draws an overlay onto a frame. The ViewWindow specifies the bounds of the view window (usually, the entire screen). The screen bounds can be retrieved by calling g.getDeviceConfiguration().getBounds();


isEnabled

public boolean isEnabled()
Returns true if this overlay is enabled (should be drawn).