1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.cb.jset.client;
21
22 /***
23 * Represents game events, including {@link #START start} and {@link #END end}.
24 *
25 * @author jerome@coffeebreaks.org - last modified by $LastChangedBy: jerome $
26 * @version $Id: GameEvent.java 123 2004-04-14 23:45:53Z jerome $
27 * @todo start -> stop and begin -> end. Am I not mixing it all here?
28 */
29 public class GameEvent
30 {
31 /*** Used to identify game starts. */
32 public static final int START = 1;
33 /*** Used to identify game ends. */
34 public static final int END = 0;
35
36 /*** the type of the event. */
37 private final int _type;
38
39 /***
40 * Constructs a game event given the specified type.
41 * @param type the type of the event.
42 */
43 public GameEvent(final int type)
44 {
45 _type = type;
46 }
47
48 /***
49 * @return the type of the event.
50 */
51 public int getType()
52 {
53 return _type;
54 }
55 }