package mug12; import java.util.Vector; import java.util.Random; import java.util.Hashtable; public class Staff extends Person { String[] chatter = { "Hi!", "How's your day going?", "Whats new?", "How are you?", "How is class?", "Top of the morning to ya.", "Nice weather we're having.", "Weather sure is shitty out there.", "'Sup.", "Where ya headed?", "Have a nice day!", }; //consider latter building chatter based on building a sentence from a samll pool of words. public Staff(String _name, String _description, String _sex, String _major, Hashtable _verbs, Hashtable _attributes, Vector _inventory) { super(_name,_description,_sex,_major,_verbs,_attributes,_inventory); } public String chat() { Random num = new Random(); return chatter[num.nextInt(chatter.length)]; } // returns a phrase at random to be brodcast to everyone in the room. }