/*
 * Are you tired of giving voice to the same old invectives at the boorish
 * rubes who intrude upon your serenity? Do you wish you could inveigh
 * your enemies with a genuinely classical put down?
 * 
 * With this handy-dandy SHAKESPEARE INSULT KIT, you can have the
 * spleen of the Bard himself at your disposal!
 * 
 * The next time someone cuts you off in traffic or a clerk behaves rudely,
 * stun them with your command of vituperation by combining one word
 * from each of the three columns below.
 * 
 * 
 *                 (For maximum effect, preface with Thou.)
 */

import java.awt.*;
import java.applet.*;
import java.net.*;
import java.util.*;

public class ShakespeareInsults extends TextFader
{
    static public final String Column1[] = {
	"artless",
	"bawdy",
	"beslubbering",
	"bootless",
	"churlish",
	"cockered",
	"clouted",
	"craven",
	"currish",
	"dankish",
	"dissembling",
	"droning",
	"errant",
	"fawning",
	"fobbing",
	"froward",
	"frothy",
	"gleeking",
	"goatish",
	"gorbellied",
	"infectious",
	"jarring",
	"loggerheaded",
	"lumpish",
	"mammering",
	"mangled",
	"mewling",
	"paunchy",
	"puking",
	"puny",
	"qualling",
	"rank",
	"reeky",
	"roguish",
	"ruttish",
	"saucy",
	"spleeny",
	"spongy",
	"tottering",
	"unmuzzled",
	"vain",
	"venomed",
	"warped",
	"wayward",
	"weedy",
	"yeasty"};
    static public final String Column2[] = {
	"base-court",
	"bat-fowling",
	"beef-witted",
	"beetle-headed",
	"boil-brained",
	"clapper-clawed",
	"clay-brained",
	"common-kissing",
	"crook-pated",
	"cross-gartered",
	"dismal-dreaming",
	"dizzy-eyed",
	"doghearted",
	"dread-bolted",
	"earth-vexing",
	"elf-skinned",
	"fat-kidneyed",
	"fen-sucked",
	"flap-mouthed",
	"fly-bitten",
	"folly-fallen",
	"fool-born",
	"full-gorged",
	"guts-griping",
	"half-faced",
	"hasty-witted",
	"hedge-born",
	"hell-hated",
	"idle-headed",
	"ill-breeding",
	"ill-nurtured",
	"knotty-pated",
	"milk-livered",
	"motley-minded",
	"onion-eyed",
	"plume-plucked",
	"pottle-deep",
	"pox-marked",
	"reeling-ripe",
	"rough-hewn",
	"rude-growing",
	"rump-fed",
	"shard-borne",
	"sheep-biting",
	"spur-galled",
	"swag-bellied",
	"tardy-gaited",
	"tickle-brained",
	"toad-spotted",
	"unchin-snouted",
	"weather-bitten"};
    static public final String Column3[] = {
	"apple-john",
	"baggage",
	"barnacle",
	"bladder",
	"boar-pig",
	"bugbear",
	"bum-bailey",
	"canker-blossom",
	"clack-dish",
	"fop",
	"clotpole",
	"coxcomb",
	"codpiece",
	"death-token",
	"dewberry",
	"flap-dragon",
	"flax-wench",
	"flirt-gill",
	"foot-licker",
	"fustilarian",
	"giglet",
	"gudgeon",
	"haggard",
	"harpy",
	"hedge-pig",
	"horn-beast",
	"hugger-mugger",
	"joithead",
	"lewdster",
	"lout",
	"maggot-pie",
	"malt-worm",
	"mammet",
	"measle",
	"minnow",
	"miscreant",
	"moldwarp",
	"mumble-news",
	"nut-hook",
	"pigeon-egg",
	"pignut",
	"puttock",
	"pumpion",
	"ratsbane",
	"scut",
	"skainsmate",
	"strumpet",
	"varlet",
	"vassal",
	"whey-face",
	"wagtail"};

    public String getAppletInfo()
    {
	return "ShakespeareInsults by CDB version 1.0";
    }

    public String getNextMessage()
    {
	int c1 = (int)(the_generator.nextFloat()*Column1.length);
	int c2 = (int)(the_generator.nextFloat()*Column2.length);
	int c3 = (int)(the_generator.nextFloat()*Column3.length);
	return "Thou "+Column1[c1]+" "+Column2[c2]+" "+Column3[c3]+"!";
    }

    Random the_generator;
    public void init()
    {
	super.init();
	the_generator = new Random();
	the_message = getNextMessage();
    }
}
