October 2015
Beginner to intermediate
296 pages
5h 56m
English
The game uses several classes and interfaces. These are summarized here:
Character: This represents the playerCommand: This represents a command and its argumentsDirection: This holds a direction, such as north or south, and the corresponding location you will arrive at for the directionFunctionalCommands: This holds commands and executes themFunctionalZork: This is the main class containing much of the game mechanicsGameElements: This holds collections of game elements and the current locationItem: This represents an itemLocation: This represents a location in the gameNPC: This represents an NPCWe will explore how each of these classes is implemented. For a few of the classes, we will not show the getter/setter methods. ...
Read now
Unlock full access