// Processed by NMI's Java Code Viewer 4.8.2 © 1997-2000 B. Lemaire // Website: http://njcv.htmlplanet.com E-mail: info@njcv.htmlplanet.com // Copy registered to Evaluation Copy // Source File Name: ServerData.java import java.util.Vector; public class ServerData { static boolean amI_Server; static ClientHandler tempClientHandler; static boolean multiServerGotConnection; static int port; static int defaultPort = 4444; static int clientsCurrentlyConnected; static int loadedClientsCurrentlyConnected; static String nicks[]; static String loadedNicks[]; static boolean connected[]; static boolean validPlayer[]; static boolean needToSendGameData[]; static boolean needToClose; static int playersOrder[]; static boolean isSpellerUsed = true; static int timeLimit = 120; static final int defaultTimeLimit = 120; static boolean isTimeLimitUsed = true; static boolean gameWasLoaded; static boolean needToSendTurnData[]; static boolean gameEnd; static boolean multiServerStartedGame; static boolean newTurn[]; static int whoseTurn; static int endTurnStatus; static int turnScore; static Vector words = new Vector(); static int clientToBeKicked = -1; static int winner = -1; static int letterValues[] = { 3, 8, 8, 4, 3, 6, 8, 6, 4, 12, 6, 4, 4, 4, 6, 7, 10, 3, 3, 3, 8, 8, 6, 12, 12, 12 }; static final int defaultLetterValues[] = { 3, 8, 8, 4, 3, 6, 8, 6, 4, 12, 6, 4, 4, 4, 6, 7, 10, 3, 3, 3, 8, 8, 6, 12, 12, 12 }; static final int boardSquare[][] = { { 6, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 6 }, { 0, 5, 0, 0, 0, 0, 5, 0, 5, 0, 0, 0, 0, 5, 0 }, { 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0 }, { 0, 0, 0, 3, 0, 4, 0, 0, 0, 4, 0, 3, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 0, 0, 0 }, { 6, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 6 }, { 0, 5, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 5, 0 }, { 0, 0, 4, 0, 0, 3, 0, 0, 0, 3, 0, 0, 4, 0, 0 }, { 0, 5, 0, 0, 4, 0, 0, 0, 0, 0, 4, 0, 0, 5, 0 }, { 6, 0, 0, 4, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 6 }, { 0, 0, 0, 0, 0, 0, 4, 0, 4, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 3, 0, 4, 0, 0, 0, 4, 0, 3, 0, 0, 0 }, { 0, 0, 4, 0, 0, 0, 0, 4, 0, 0, 0, 0, 4, 0, 0 }, { 0, 5, 0, 0, 0, 0, 5, 0, 5, 0, 0, 0, 0, 5, 0 }, { 6, 0, 0, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 6 } }; static char oldBoardLetters[][] = new char[15][15]; static char newBoardLetters[][] = new char[15][15]; static char bankLetters[][]; static int playerScore[]; static boolean newLetterPresent[][] = new boolean[15][15]; public ServerData() { } static { nicks = new String[C.MAX_NUM_OF_PLAYERS]; loadedNicks = new String[C.MAX_NUM_OF_PLAYERS]; connected = new boolean[C.MAX_NUM_OF_PLAYERS]; validPlayer = new boolean[C.MAX_NUM_OF_PLAYERS]; needToSendGameData = new boolean[C.MAX_NUM_OF_PLAYERS]; playersOrder = new int[C.MAX_NUM_OF_PLAYERS]; needToSendTurnData = new boolean[C.MAX_NUM_OF_PLAYERS]; newTurn = new boolean[C.MAX_NUM_OF_PLAYERS]; bankLetters = new char[C.MAX_NUM_OF_PLAYERS][7]; playerScore = new int[C.MAX_NUM_OF_PLAYERS]; } }