com.brackeen.javagamebook.shooter3D
Class MessageQueue

java.lang.Object
  extended bycom.brackeen.javagamebook.shooter3D.MessageQueue
All Implemented Interfaces:
Overlay

public class MessageQueue
extends java.lang.Object
implements Overlay


Method Summary
 void add(java.lang.String text)
           
 void debug(java.lang.String text)
           
 void draw(java.awt.Graphics2D g, ViewWindow window)
          Draws an overlay onto a frame.
static MessageQueue getInstance()
           
 boolean isEnabled()
          Returns true if this overlay is enabled (should be drawn).
 void setDebug(boolean debug)
           
 void update(long elapsedTime)
          Updates this overlay with the specified amount of elapsed time since the last update.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static MessageQueue getInstance()

setDebug

public void setDebug(boolean debug)

debug

public void debug(java.lang.String text)

isEnabled

public boolean isEnabled()
Description copied from interface: Overlay
Returns true if this overlay is enabled (should be drawn).

Specified by:
isEnabled in interface Overlay

add

public void add(java.lang.String text)

update

public void update(long elapsedTime)
Description copied from interface: Overlay
Updates this overlay with the specified amount of elapsed time since the last update.

Specified by:
update in interface Overlay

draw

public void draw(java.awt.Graphics2D g,
                 ViewWindow window)
Description copied from interface: Overlay
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();

Specified by:
draw in interface Overlay