Loads Story Current Room Bookmark File Method Assumes First Line File Containing Configmag Q37219483

/** * Loads the story and the current room from a bookmark file.This method * assumes that the first line of the file, containingConfig.MAGIC_BOOKMARK, * has already been read from the Scanner. ** The format of a bookmark file is as follows: Line No: Contents 1:* Config.MAGIC_BOOKMARK 2: Story filename 3: Current room id * * Asan example, the following contents would load the storyGoldilocks.story * and set the current room to id 7. * * #!BOOKMARKGoldilocks.story 7 * * Your method should not duplicate the codefrom the parseFile method. It must * use the parseFile method topopulate the rooms

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.