01: // Copyright (c) 2002 Cunningham & Cunningham, Inc.
02: // Read license.txt in this directory.
03:
04: package eg.music;
05:
06: import fit.*;
07:
08: public class Dialog extends Fixture {
09: String message;
10: Fixture caller;
11:
12: Dialog(String message, Fixture caller) {
13: this .message = message;
14: this .caller = caller;
15: }
16:
17: public String message() {
18: return message;
19: }
20:
21: public void ok() {
22: if (message.equals("load jamed")) {
23: MusicPlayer.stop();
24: }
25: ActionFixture.actor = caller;
26: }
27:
28: }
|