|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--server.Fish
This is an object representing a fish that is to be passed between servers.
| Field Summary | |
int |
XCOORD
|
int |
YCOORD
|
| Constructor Summary | |
Fish(java.awt.Image i,
java.lang.String n,
java.lang.String mail)
constructor for Fish |
|
| Method Summary | |
java.lang.String |
getFishID()
gets the Fish's ID |
java.awt.Image |
getImage()
gets the image of the fish |
FishMail |
getMail()
this will return the mail that needs to be sent for this fish |
FishPOS |
getPOS()
this returns the positional data of the fish |
boolean |
move()
this moves the fish one spot |
void |
setID(java.lang.String newID)
set the ID of the Fish |
void |
setPOS(int newX,
int newY)
set the position of the fish |
java.lang.String |
toString()
String represention of the fish |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int XCOORD
public int YCOORD
| Constructor Detail |
public Fish(java.awt.Image i,
java.lang.String n,
java.lang.String mail)
i - the picture of the fishn - the name of the fishmail - the e-mail of the creator of the fish| Method Detail |
public FishMail getMail()
public void setPOS(int newX,
int newY)
public java.lang.String toString()
toString in class java.lang.Objectpublic FishPOS getPOS()
public java.awt.Image getImage()
public java.lang.String getFishID()
public void setID(java.lang.String newID)
newID - the ID of the Fishpublic boolean move()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||