/** * a parent class to friend at the party * * Joe Rivard * 4/13/03 */ import java.io.*; public abstract class Friends implements Serializable { String name; //name of friend String use; //what to do with the friend boolean used; // if item is grabbed /** * Constructor for objects of class Friends */ public Friends() { name = ""; use = ""; used = false; } /** * grabbs a friend, turns used to true * @param boolean , whether item is grabbed */ public void pick(boolean a) { used = a; } /** * gets the name of friend * @return String , name of friend */ public String getName() { return name; } /** * gets what to do with the friend * @return String , what to do with friend */ public String getUse() { return use; } /** * tells whether friend is picked up * @return boolean , whether friend is picked up */ public boolean pickedUp() { return used; } }