SYSC 2004 Lecture Notes - Lecture 5: Interactive Fiction

47 views1 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents