SYSC 2004 Lecture Notes - Lecture 5: Interactive Fiction
Document Summary
* this class is part of the "world of zuul" application. * "world of zuul" is a very simple, text based adventure game. * this class holds information about a command that was issued by the user. * a command currently consists of two strings: a command word and a second. * word (for example, if the command was "take map", then the two strings. * the way this is used is: commands are already checked for being valid. If the user entered an invalid command (a word that is not. * known) then the command word is . * if the command had only one word, then the second word is . * @author michael kolling and david j. barnes. * @version october 21, 2012 public class command private string commandword; private string secondword; First and second word must be supplied, but. * either one (or both) can be null. * @param firstword the first word of the command.