INTRODUCTION TO COMPUTING SCIENCE University of Alberta |
Calling diagram for Adventure Version 8
Adventure:main(String[])
Adventure:Adventure()
Adventure:makeDoor(Vector, int, int, String);
Room:makeDoor(Room, String);
Door:Door(String, Room, Room)
Adventure:play()
Adventure:greeting()
Adventurer:Adventurer(String)
Room:enter(Adventurer)
Room:display()
Room:displayBasic()
Room:displayDoors()
Door:display()
Chest:display()
Room:buildMenu()
TextMenu:TextMenu()
TextMenu:add(String)
TextMenu:launch()
TextMenu:getUserSelection
TextMenu:display()
Room:performAction(String, Adventurer)
Chest:open(Adventurer)
Question:Question()
Question:ask()
Question:display()
Question:answer()
Chest:correctAnswer(Adventurer)
Adventurer:gainTokens(int)
Adventurer:reportTokens()
Chest:wrongAnswer(Question, Adventurer)
Question:answer()
Adventurer:tokens()
Adventurer:loseTokens()
Adventurer:reportTokens()
Room:getRoomForAction(String)
Door:adjoiningRoom(Room)
Adventure:farewell(Adventurer)
Adventurer:name()
Adventurer:tokens()