Cat and Mouse Problem Set Javadocs

catandmouse
Class Packet

java.lang.Object
  extended bycatandmouse.Packet
All Implemented Interfaces:
java.io.Serializable

public class Packet
extends java.lang.Object
implements java.io.Serializable

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

Version:
$Id: Packet.java,v 1.1.1.1 2002/06/05 21:56:34 root Exp $
Author:
Henry Wong, henryw@mit.edu, Todd C. Parnell, tparnell@ai.mit.edu
See Also:
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

CATLOC

public static final int CATLOC
Indicates this contains information on the Cat's location.

See Also:
Constant Field Values

MOUSELOC

public static final int MOUSELOC
Indicates this contains information on the Mouse's location.

See Also:
Constant Field Values

CAT_HIT

public static final int CAT_HIT
Indicates this contains information on the Cat catching the Mouse.

See Also:
Constant Field Values

CAT_MISS

public static final int CAT_MISS
Indicates this contains information on the Cat missing the Mouse.

See Also:
Constant Field Values
Constructor Detail

Packet

public Packet(int type,
              int x,
              int y)
Method Detail

getType

public int getType()

getX

public int getX()

getY

public int getY()

Cat and Mouse Problem Set Javadocs