1
2
3
4
5 package spellcast.event;
6
7 import java.io.*;
8 import spellcast.game.*;
9
10 /***
11 * A Game Sync Event contains the game state for the specified client as synchronised with the server.
12 *
13 * @author Barrie Treloar
14 */
15
16 public class GameSyncEvent
17 implements GameEvent,
18 Serializable
19 {
20 private Game game;
21
22 /***
23 * Create an GameSyncEvent
24 */
25 public GameSyncEvent( Game game )
26 {
27 this.game = game;
28 }
29
30 /***
31 * Get the value of game.
32 *
33 * @return value of game.
34 */
35 public Game getGame()
36 {
37 return game;
38 }
39
40 /***
41 * Set the value of game.
42 *
43 * @param v Value to assign to game.
44 */
45 public void setGame( Game v )
46 {
47 game = v;
48 }
49
50
51 }
52