|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GameMode
This interface defines what methods need to be implemented to incorporate new game modes into the game
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. |
Method Detail |
---|
void initMode(com.sun.opengl.util.j2d.TextRenderer textRenderer)
textRenderer
- a TextRenderer object can be optionally provided for use in later methods.void initRoundIntro()
boolean displayRoundIntro(javax.media.opengl.GLAutoDrawable glDrawable)
glDrawable
-
void initFeedback(QuestionGraphics question, Respondent[] respondents, javax.media.opengl.GLAutoDrawable glDrawable)
boolean displayFeedback(javax.media.opengl.GLAutoDrawable glDrawable, boolean isLastQuestion)
glDrawable
- isLastQuestion
- boolean telling wether the recently posed question is the last in a round.
void resetFeedBack(javax.media.opengl.GLAutoDrawable glDrawable)
glDrawable
- void setRoundRespondents(Respondent[] respondents)
respondents
- Array of Respondent object containing their game mode specific integer e.g. last answer.void nextStep()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |