public class Help {
	public static String protocolHelp( String topic ) {
		String helptext = "";
		
		if (topic.equals( "action" )) {
		} else if (topic.equals( "build" )) {
		} else if (topic.equals( "discardrole" )) {
		} else if (topic.equals( "district" )) {
		} else if (topic.equals( "endturn" )) {
		} else if (topic.equals( "help" ) ||
				   topic.equals( "" )) {
			helptext = phelponHelp();
		} else if (topic.equals( "income" )) {
		} else if (topic.equals( "players" )) {
		} else if (topic.equals( "quit" )) {
			helptext = phelponQuit();
		} else if (topic.equals( "rename" )) {
		} else if (topic.equals( "say" )) {
			helptext = phelponSay();
		} else if (topic.equals( "selectrole" )) {
		} else if (topic.equals( "serverinfo" )) {
		} else if (topic.equals( "shout" )) {
			helptext = phelponShout();
		} else if (topic.equals( "special" )) {
		} else if (topic.equals( "status" )) {
			helptext = phelponStatus();
		} else {
			helptext = "Topic '" + topic + "' not understood.\n" + phelponHelp();
		}
		
		return helptext;
	}
	
	private static String phelponHelp() {
		return "The following commands are recognized by this server. To get detailed help on the command 'foo', send 'help foo':\n" +
		       "  action\n  build\n  discardrole\n  endturn\n  help\n  income\n  players\n" +
			   "  quit\n  rename\n  say\n  selectrole\n  serverinfo\n  shout\n  special\n  status";
	}
	
	private static String phelponQuit() {
		return " format: quit\n" +
		       "     OR: q\n" +
			   " result: you will be disconnected from the game, and another person may connect and take your place";
	}
	
	private static String phelponSay() {
		return " format: say <player> <msg>\n" +
		       "details: player - index of target player\n" +
			   "         msg - any string\n" +
			   " result: the message indicated by <msg> will be sent to the player whose index is <player>";
	}
	
	private static String phelponShout() {
		return " format: shout <msg>\n" +
		       "details: msg - any string\n" +
			   " result: the message indicated by <msg> will be sent to all players and all observers";
	}
	
	private static String phelponStatus() {
		return " format: status <player>\n" +
		       "details: plater - index of target player (leave blank to query self)\n" +
			   " result: you will be sent status information about the player whose index is <player>\n" +
			   "         (note you will get more information about yourself than other players)";
	}
}
