|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for an object capable of displaying the contents of a game, which are instances of Hex, GameObject and Projectile.
| Method Summary | |
void |
drawImage(Point3D vr,
java.awt.Image img)
This method draws an image on the GameViewer's display. |
void |
drawLine(Point3D v1,
Point3D v2)
This method draws a line segment on the GameViewer's display. |
void |
drawTriangle(Point3D v1,
Point3D v2,
Point3D v3)
This method draws a filled triangle on the GameViewer's display. |
void |
setColor(java.awt.Color c)
This method sets the color for subsequent calls to drawLine and drawTriangle. |
| Method Detail |
public void setColor(java.awt.Color c)
c - The color which subsequent render calls will be drawn in.
public void drawLine(Point3D v1,
Point3D v2)
v1 - One end of the line in game-spacev2 - The other end of the line in game-space
public void drawTriangle(Point3D v1,
Point3D v2,
Point3D v3)
v1 - One vertice in game-space.v2 - A second vertice in game-space.v3 - The third vertice in game-space.
public void drawImage(Point3D vr,
java.awt.Image img)
vr - The point in game-space located at the center of where the image should appear.img - The Image to display.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||