CMPUT 114
INTRODUCTION TO COMPUTING SCIENCE

Department of Computing Science
University of Alberta


Revised August 10, 2001


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()