sdr 0.7

net.cscott.sdr
Class HUD

java.lang.Object
  extended by net.cscott.sdr.HUD

public class HUD
extends Object

The HUD class encapsulates all the values displayed by the game's "heads up display". It decouples these values from the code which displays them, and allows for thread-safe communication between the application threads updating the HUD values, and the rendering thread displaying them.

Version:
$Id: HUD.java,v 1.1 2006-11-07 23:08:42 cananian Exp $
Author:
C. Scott Ananian

Nested Class Summary
static class HUD.MessageType
          What type of message this is.
 
Constructor Summary
HUD()
           
 
Method Summary
 String getBonus()
           
 float getFlow()
           
 Map.Entry<String,HUD.MessageType> getMessage()
           
 String getNotice()
           
 float getOriginality()
           
 int getScore()
           
 float getSequenceLength()
           
 void setBonus(String bonus)
           
 void setFlow(float flow)
           
 void setMessage(String message, HUD.MessageType type)
           
 void setNotice(String text, long timeout)
           
 void setOriginality(float originality)
           
 void setScore(int score)
           
 void setSequenceLength(float sequenceLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HUD

public HUD()
Method Detail

setFlow

public void setFlow(float flow)

getFlow

public float getFlow()

setOriginality

public void setOriginality(float originality)

getOriginality

public float getOriginality()

setSequenceLength

public void setSequenceLength(float sequenceLength)

getSequenceLength

public float getSequenceLength()

setScore

public void setScore(int score)

getScore

public int getScore()

getNotice

public String getNotice()

setNotice

public void setNotice(String text,
                      long timeout)

getMessage

public Map.Entry<String,HUD.MessageType> getMessage()

setMessage

public void setMessage(String message,
                       HUD.MessageType type)

getBonus

public String getBonus()

setBonus

public void setBonus(String bonus)

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian