01: // Copyright (C) 2003,2004,2005 by Object Mentor, Inc. All rights reserved.
02: // Released under the terms of the GNU General Public License version 2 or later.
03: package eg.bowling;
04:
05: public interface Bowling {
06: int currentFrame();
07:
08: int currentBall();
09:
10: int scoreableFrame();
11:
12: boolean validGame();
13:
14: boolean gameOver();
15:
16: boolean isGameOver();
17:
18: void roll(int pins);
19:
20: int score(int frame);
21: }
|