|
Cat and Mouse Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcatandmouse.Packet
Packets are excahnged between CatPanel and MousePanel to signal events to each other. Packets come in different types, depending on the information the creater wishes to send.
Copyright (c) 1998 Massachusetts Institute of Technology
CatPanel,
MousePanel,
Serialized Form| Field Summary | |
static int |
CAT_HIT
Indicates this contains information on the Cat catching the Mouse. |
static int |
CAT_MISS
Indicates this contains information on the Cat missing the Mouse. |
static int |
CATLOC
Indicates this contains information on the Cat's location. |
static int |
MOUSELOC
Indicates this contains information on the Mouse's location. |
| Constructor Summary | |
Packet(int type,
int x,
int y)
|
|
| Method Summary | |
int |
getType()
|
int |
getX()
|
int |
getY()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CATLOC
public static final int MOUSELOC
public static final int CAT_HIT
public static final int CAT_MISS
| Constructor Detail |
public Packet(int type,
int x,
int y)
| Method Detail |
public int getType()
public int getX()
public int getY()
|
Cat and Mouse Problem Set Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||