Package org.gojul.fourinaline.model

Examples of org.gojul.fourinaline.model.GameServer


      }
     
      serverHost = serverHost.trim();
    }
   
    GameServer gameServer = null;
   
    try
    {
      Registry registry = LocateRegistry.getRegistry(serverHost);
      gameServer = (GameServer) registry.lookup(GameServer.STUB_NAME);
View Full Code Here


    /**
     * @see java.lang.Runnable#run()
     */
    public void run()
    {
      GameServer gameServer = playerSelectionFrame.gameServer;
     
      try
      {
        while (gameServer.getPlayers().size() < PlayerMark.getNumberOfPlayerMarks())
        {
          // We wait a small amount of time there in order to avoid overloading
          // the server with requests.
          try
          {
View Full Code Here

      JOptionPane.showMessageDialog(this, GUIMessages.YOU_MUST_SPECIFY_A_GAME_NAME_MESSAGE.toString(), GUIMessages.ERROR_TEXT.toString(), JOptionPane.ERROR_MESSAGE);
      gameCreationNameTextField.requestFocusInWindow();
      return;
    }
   
    GameServer gameServer = null;
   
    try
    {
      globalServer.createGame(gameName);
     
View Full Code Here

   */
  private void joinGame()
  {
    String gameName = gameJoinComboBox.getSelectedItem().toString();
   
    GameServer gameServer = null;
   
    try
    {
      Registry registry = LocateRegistry.getRegistry(remoteServerAddress);
      gameServer = (GameServer) registry.lookup(GlobalServer.SINGLE_GAME_SERVER_STUB_PREFIX + gameName);
     
      if (gameServer.getPlayers().size() == PlayerMark.getNumberOfPlayerMarks())
      {
        JOptionPane.showMessageDialog(this, GUIMessages.THE_SELECTED_GAME_IS_FULL, GUIMessages.ERROR_TEXT.toString(), JOptionPane.ERROR_MESSAGE);       
        return;
      }
    }
View Full Code Here

TOP

Related Classes of org.gojul.fourinaline.model.GameServer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.