net.cscott.sdr
Class HUD
java.lang.Object
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()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HUD
public HUD()
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)
Copyright © 2006-2009 C. Scott Ananian