View Javadoc

1   package net.sourceforge.simplegamenet.framework.transport;
2   
3   import java.io.Serializable;
4   import net.sourceforge.simplegamenet.specs.to.GameSettings;
5   import net.sourceforge.simplegamenet.specs.to.PlayerSettings;
6   
7   public class LoginData implements Serializable {
8   
9       private Integer playerID;
10  
11      private GameSettings gameSettings;
12      private PlayerSettings[] playerSettingsArray;
13  
14      private int gameState;
15  
16      public LoginData(Integer playerID, GameSettings gameSettings,
17                       PlayerSettings[] playerSettingsArray, int gameState) {
18          this.playerID = playerID;
19          this.gameSettings = gameSettings;
20          this.playerSettingsArray = playerSettingsArray;
21          this.gameState = gameState;
22      }
23  
24      public Integer getPlayerID() {
25          return playerID;
26      }
27  
28      public void setPlayerID(Integer playerID) {
29          this.playerID = playerID;
30      }
31  
32      public GameSettings getGameSettings() {
33          return gameSettings;
34      }
35  
36      public void setGameSettings(GameSettings gameSettings) {
37          this.gameSettings = gameSettings;
38      }
39  
40      public PlayerSettings[] getPlayerSettingsArray() {
41          return playerSettingsArray;
42      }
43  
44      public void setPlayerSettingsArray(PlayerSettings[] playerSettingsArray) {
45          this.playerSettingsArray = playerSettingsArray;
46      }
47  
48      public int getGameState() {
49          return gameState;
50      }
51  
52      public void setGameState(int gameState) {
53          this.gameState = gameState;
54      }
55  
56  }