01: package example;
02:
03: import com.caucho.util.L10N;
04: import java.util.logging.Logger;
05: import java.util.logging.Level;
06:
07: import java.io.IOException;
08:
09: /**
10: *
11: */
12: public class AskCommand extends AbstractCommand {
13: static protected final Logger log = Logger
14: .getLogger(AskCommand.class.getName());
15: static final L10N L = new L10N(AskCommand.class);
16:
17: public void init() {
18: super .init();
19: }
20:
21: void parse(Parser p) throws IOException {
22: }
23:
24: String act(Magic8Ball magic8ball) {
25: return magic8ball.getProphet() + " says \""
26: + magic8ball.getProphecy() + '"';
27: }
28:
29: }
|