View Javadoc

1   /*
2   @See License.txt@
3    */
4   
5   package spellcast.ui;
6   
7   /***
8    * Property change event for a new game.
9    *
10   * @author Barrie Treloar
11   */
12  public class NewGameEvent 
13  {
14      private String gameName;
15      private String serverAddress;
16  
17      public NewGameEvent( String gameName, String serverAddress )
18      {
19          this.gameName = gameName;
20          this.serverAddress = serverAddress;
21      }
22  
23      /***
24       * Get the value of gameName.
25       *
26       * @return value of gameName.
27       */
28      public String getGameName() 
29      {
30          return gameName;
31      }
32  
33      /***
34       * Get the value of serverAddress.
35       *
36       * @return value of serverAddress.
37       */
38      public String getServerAddress() 
39      {
40          return serverAddress;
41      }
42  }
43