|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSpaceCraft
AlienSpaceCraft
Field Summary |
Fields inherited from class SpaceCraft |
heading, ID, IDport, xPosition, yPosition |
Constructor Summary | |
AlienSpaceCraft(java.net.InetAddress ID,
int IDport,
int x,
int y,
int heading)
Creates an AlienSpaceCraft with the values of the input parameters |
Method Summary | |
void |
draw(java.awt.Graphics g)
Renders the alien space craft as a red dot. |
Methods inherited from class SpaceCraft |
equals, getHeading, getXPosition, getYPosition, setHeading, setX, setY, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AlienSpaceCraft(java.net.InetAddress ID, int IDport, int x, int y, int heading)
ID
- IP address associate with the shipx
- position of the shipy
- position of the shipheading
- of the shipMethod Detail |
public void draw(java.awt.Graphics g)
draw
in class SpaceCraft
g
- Graphical render context
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |