|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphics.Buddy
public class Buddy
Represent the state and performs the rendering of the avatar in Elimination mode.
Field Summary | |
---|---|
private int |
blinkOffset
|
private boolean |
doneDrawing
|
(package private) boolean |
isKilled
|
(package private) String |
name
|
private int |
personality
|
private float |
rot
|
private int |
xpos
|
private int |
ypos
|
Constructor Summary | |
---|---|
Buddy(String name)
|
Method Summary | |
---|---|
boolean |
checkBlink()
The returned value indicates wether the avatar is currently blinking. |
void |
display(javax.media.opengl.GL gl,
com.sun.opengl.util.j2d.TextRenderer textRenderer)
Renders the avatar on the gl object. |
Dimension |
getGridXY()
Returns the coordiantes of the avatar in the on-screen grid of avatars. |
String |
getName()
|
boolean |
isKilled()
|
void |
kill()
initiates the killing of the avatar. |
void |
setGridXY(int x,
int y)
Sets the position of the avatar in the on-screen grid of avatars. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
String name
boolean isKilled
private int xpos
private int ypos
private int blinkOffset
private boolean doneDrawing
private float rot
private int personality
Constructor Detail |
---|
public Buddy(String name)
Method Detail |
---|
public void kill()
public boolean checkBlink()
public boolean isKilled()
public void display(javax.media.opengl.GL gl, com.sun.opengl.util.j2d.TextRenderer textRenderer)
gl
- textRenderer
- public void setGridXY(int x, int y)
x
- y
- public Dimension getGridXY()
public String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |