1
2
3
4 package spellcast.game;
5
6 /***
7 * The type of turns available in spellcast.
8 *
9 * @author Barrie Treloar
10 * @version $Revision: 1.1 $
11 */
12 public enum TurnType {
13 NORMAL, HASTE, TIMESTOP, BEFORE_GAME, AFTER_GAME;
14
15 /***
16 * Indicates whether this turn is a Normal turn.
17 */
18 public boolean isNormal()
19 {
20 return ( this.equals(TurnType.NORMAL) );
21 }
22
23 /***
24 * Indicates whether this turn is a Haste turn.
25 */
26 public boolean isHaste()
27 {
28 return ( this.equals(TurnType.HASTE) );
29 }
30
31 /***
32 * Indicates whether this turn is a TimeStop turn.
33 */
34 public boolean isTimeStop()
35 {
36 return ( this.equals(TurnType.TIMESTOP) );
37 }
38
39 }