Package net.alteiar.campaign.player.tools

Examples of net.alteiar.campaign.player.tools.NetworkProperties


import org.apache.log4j.Logger;

public class MyCampaignFactory {

  public static void startNewCampaign() {
    NetworkProperties networkProp = new NetworkProperties();

    try {
      CampaignFactoryNew.startNewCampaign(networkProp.getServerIp(),
          networkProp.getServerPort(), HelpersPath.PATH_SAVE,
          PluginSystem.getInstance().getPluginBeans(), PluginSystem
              .getInstance().getKryo());
    } catch (Exception e) {
      Logger.getLogger(MyCampaignFactory.class).error(
          "Impossible de créer la partie", e);
View Full Code Here


          "Impossible de créer la partie", e);
    }
  }

  public static void joinCampaign() {
    NetworkProperties networkProp = new NetworkProperties();

    try {
      CampaignFactoryNew.joinCampaign(networkProp.getServerIp(),
          networkProp.getServerPort(), HelpersPath.PATH_SAVE,
          PluginSystem.getInstance().getPluginBeans(), PluginSystem
              .getInstance().getKryo());
    } catch (Exception e) {
      Logger.getLogger(MyCampaignFactory.class).error(
          "Impossible de rejoindre la partie", e);
View Full Code Here

          "Impossible de rejoindre la partie", e);
    }
  }

  public static void loadCampaign(String campaignPath) {
    NetworkProperties networkProp = new NetworkProperties();

    try {
      CampaignFactoryNew.loadCampaign(networkProp.getServerIp(),
          networkProp.getServerPort(), HelpersPath.PATH_SAVE,
          PluginSystem.getInstance().getPluginBeans(), campaignPath,
          PluginSystem.getInstance().getKryo());
    } catch (Exception e) {
      Logger.getLogger(MyCampaignFactory.class).error(
          "Impossible de charger la partie", e);
View Full Code Here

TOP

Related Classes of net.alteiar.campaign.player.tools.NetworkProperties

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.