INTRODUCTION TO COMPUTING SCIENCE University of Alberta |
Calling diagram for Adventure Version 5
Adventure:main(String[])
Adventure:Adventure()
Adventure:play()
Adventure:greeting()
Adventurer:Adventurer(String)
Adventure:enterRoom(Adventurer)
Chest:Chest()
Chest:display()
Chest:open()
Question:Question()
Question:ask()
Question:answer()
Chest:correctAnswer(Adventurer)
Adventurer:gainTokens(int)
Adventurer:reportTokens()
Chest:wrongAnswer(Question, Adventurer)
Question:answer()
Adventurer:tokens()
Adventurer:loseTokens()
Adventurer:reportTokens()
Adventure:farewell(Adventurer)
Adventurer:name()
Adventurer:tokens()