|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphics.MeasureUpMode
public class MeasureUpMode
Field Summary | |
---|---|
private boolean |
allBarsStoppedAssumer
|
private ArrayList<BarGraphics> |
barList
|
private ArrayList<Color> |
colorList
|
private boolean |
continueRequested
|
private String |
correctAnswer
|
private float |
correctZ
|
private boolean |
done
|
private com.sun.opengl.util.j2d.TextRenderer |
hiresTextRenderer
|
private QuestionGraphics |
question
|
private long |
roundInfoStartTime
|
private Respondent[] |
roundRespondents
|
private float |
rtri
|
private boolean |
soundPlayed
|
private com.sun.opengl.util.j2d.TextRenderer |
textRenderer
|
Constructor Summary | |
---|---|
MeasureUpMode()
|
Method Summary | |
---|---|
boolean |
displayFeedback(javax.media.opengl.GLAutoDrawable glDrawable,
boolean isLastQuestion)
Displays the actual feedback graphics. |
boolean |
displayRoundIntro(javax.media.opengl.GLAutoDrawable glDrawable)
Displays the actual intro to the following round. |
void |
initFeedback(QuestionGraphics question,
Respondent[] respondents,
javax.media.opengl.GLAutoDrawable glDrawable)
Method is called prior to every time feedback is shown. |
void |
initMode(com.sun.opengl.util.j2d.TextRenderer textRenderer)
Calld before starting to display a new mode. |
void |
initRoundIntro()
Method is called prior to every round. |
void |
nextStep()
This method is called when the user wishes to conticue to the next step. |
void |
resetFeedBack(javax.media.opengl.GLAutoDrawable glDrawable)
Called once after displayFeedback returns. |
void |
setRoundRespondents(Respondent[] respondents)
This method is called every time a feedbakc from the server is received. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private float rtri
private float correctZ
private com.sun.opengl.util.j2d.TextRenderer textRenderer
private boolean done
private String correctAnswer
private ArrayList<BarGraphics> barList
private ArrayList<Color> colorList
private QuestionGraphics question
private long roundInfoStartTime
private com.sun.opengl.util.j2d.TextRenderer hiresTextRenderer
private Respondent[] roundRespondents
private boolean allBarsStoppedAssumer
private boolean soundPlayed
private boolean continueRequested
Constructor Detail |
---|
public MeasureUpMode()
Method Detail |
---|
public void initMode(com.sun.opengl.util.j2d.TextRenderer textRenderer)
GameMode
initMode
in interface GameMode
textRenderer
- a TextRenderer object can be optionally provided for use in later methods.public void initRoundIntro()
GameMode
initRoundIntro
in interface GameMode
public boolean displayRoundIntro(javax.media.opengl.GLAutoDrawable glDrawable)
GameMode
displayRoundIntro
in interface GameMode
public void initFeedback(QuestionGraphics question, Respondent[] respondents, javax.media.opengl.GLAutoDrawable glDrawable)
GameMode
initFeedback
in interface GameMode
public boolean displayFeedback(javax.media.opengl.GLAutoDrawable glDrawable, boolean isLastQuestion)
GameMode
displayFeedback
in interface GameMode
isLastQuestion
- boolean telling wether the recently posed question is the last in a round.
public void resetFeedBack(javax.media.opengl.GLAutoDrawable glDrawable)
GameMode
resetFeedBack
in interface GameMode
public void setRoundRespondents(Respondent[] respondents)
GameMode
setRoundRespondents
in interface GameMode
respondents
- Array of Respondent object containing their game mode specific integer e.g. last answer.public void nextStep()
GameMode
nextStep
in interface GameMode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |