|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphics.EliminationMode
public class EliminationMode
Draws the feedback graphics when Elimination mode is enabled.
Field Summary | |
---|---|
(package private) TextureReader.Texture |
buddyBlinkTexture
|
(package private) float |
buddyGap
|
(package private) TextureReader.Texture |
buddyKilledTexture
|
(package private) ArrayList<Buddy> |
buddyList
|
(package private) Buddy[][] |
buddyMatrix
|
(package private) TextureReader.Texture |
buddyTexture
|
private boolean |
continueRequested
|
private boolean |
done
|
private javax.media.opengl.glu.GLU |
glu
|
private com.sun.opengl.util.j2d.TextRenderer |
hiresTextRenderer
|
private int |
killcounter
|
private com.sun.opengl.util.j2d.TextRenderer |
loResTextRenderer
|
private boolean |
onlyWinnersLeft
|
private ArrayList<String> |
rightBuddies
|
private boolean |
rotateback
|
private float |
rotation
|
private String |
roundFeedback
|
private long |
roundInfoStartTime
|
private Respondent[] |
roundRespondents
|
private AudioSample |
shot
|
(package private) int |
size
|
private boolean |
startKilling
|
(package private) float |
startPoint
|
private com.sun.opengl.util.j2d.TextRenderer |
textRenderer
|
private int |
textureholder
|
private long |
timerStart
|
(package private) TextureReader.Texture |
winnerTexture
|
private ArrayList<String> |
wrongBuddies
|
Constructor Summary | |
---|---|
EliminationMode()
Elimination mode initialization |
Method Summary | |
---|---|
boolean |
displayFeedback(javax.media.opengl.GLAutoDrawable glDrawable,
boolean isLastQuestion)
implemented from GameMode |
boolean |
displayRoundIntro(javax.media.opengl.GLAutoDrawable glDrawable)
Implemented from GameMode |
void |
initFeedback(QuestionGraphics question,
Respondent[] buddies,
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()
Implemented from GameMode |
boolean |
isDone()
Returns true if there is nothing more to draw. |
private void |
kill(String userName)
kills the avatar with the provided username |
private void |
makeRGBTexture(javax.media.opengl.GL gl,
javax.media.opengl.glu.GLU glu,
TextureReader.Texture img,
int target,
boolean mipmapped)
Prepares a texture for drawing. |
void |
nextStep()
Implemented from GameMode |
void |
resetFeedBack(javax.media.opengl.GLAutoDrawable glDrawable)
Implemented from GameMode |
void |
setRoundRespondents(Respondent[] respondents)
Implemented from GameMode. |
void |
update()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.media.opengl.glu.GLU glu
ArrayList<Buddy> buddyList
Buddy[][] buddyMatrix
int size
float buddyGap
float startPoint
private boolean done
private AudioSample shot
private long timerStart
private com.sun.opengl.util.j2d.TextRenderer textRenderer
private com.sun.opengl.util.j2d.TextRenderer loResTextRenderer
private com.sun.opengl.util.j2d.TextRenderer hiresTextRenderer
private int textureholder
TextureReader.Texture buddyTexture
private ArrayList<String> rightBuddies
private ArrayList<String> wrongBuddies
private boolean onlyWinnersLeft
private long roundInfoStartTime
private float rotation
private boolean startKilling
private int killcounter
TextureReader.Texture buddyBlinkTexture
TextureReader.Texture buddyKilledTexture
TextureReader.Texture winnerTexture
private String roundFeedback
private Respondent[] roundRespondents
private boolean continueRequested
private boolean rotateback
Constructor Detail |
---|
public EliminationMode()
Method Detail |
---|
private void kill(String userName)
userName
- public boolean isDone()
public void update()
public boolean displayFeedback(javax.media.opengl.GLAutoDrawable glDrawable, boolean isLastQuestion)
displayFeedback
in interface GameMode
isLastQuestion
- boolean telling wether the recently posed question is the last in a round.
public boolean displayRoundIntro(javax.media.opengl.GLAutoDrawable glDrawable)
displayRoundIntro
in interface GameMode
public void initFeedback(QuestionGraphics question, Respondent[] buddies, javax.media.opengl.GLAutoDrawable glDrawable)
GameMode
initFeedback
in interface GameMode
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()
initRoundIntro
in interface GameMode
public void resetFeedBack(javax.media.opengl.GLAutoDrawable glDrawable)
resetFeedBack
in interface GameMode
private void makeRGBTexture(javax.media.opengl.GL gl, javax.media.opengl.glu.GLU glu, TextureReader.Texture img, int target, boolean mipmapped)
gl
- glu
- img
- target
- mipmapped
- public void setRoundRespondents(Respondent[] respondents)
setRoundRespondents
in interface GameMode
respondents
- Array of Respondent object containing their game mode specific integer e.g. last answer.public void nextStep()
nextStep
in interface GameMode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |