Examples of printObject()


Examples of model.PvPWorldMap.printObject()

        //If it is a pvp world, make sure that the two teams have equal number of players.
        World pvpWorld = client.getServer().getActivePvPWorld(worldName);
        if (pvpWorld != null) {//The world is a pvp world.
            PvPWorldMap map = client.getServer().getPvPWorldMap(pvpWorld.getID());
            System.out.println("Original PvP Map:");
            map.printObject();

            if (map != null) {
                int team0PlayerNum = map.getTeam0().size();
                int team1PlayerNum = map.getTeam1().size();
                if (team0PlayerNum > team1PlayerNum) {
View Full Code Here

Examples of model.PvPWorldMap.printObject()

                        map.assignEnvironmentPosition();
                        row = map.getRow();
                        col = map.getCol();

                        System.out.println("*****A PvP Map start*****");
                        map.printObject();
                        System.out.println("*****A PvP Map end*****");

                        try {
                            WorldMapDAO.updatePvPWorldMap(map);
                        } catch (SQLException ex) {
View Full Code Here

Examples of model.PvPWorldMap.printObject()

    public void printAllMaps() {
        System.out.println("********All maps start**********");
        System.out.println("All PvP maps====================");
        for (Integer key : pvpWorldMaps.keySet()) {
            PvPWorldMap pvpMap = pvpWorldMaps.get(key);
            pvpMap.printObject();
        }

        System.out.println("All PvE maps====================");
        for (Integer key : pveWorldMaps.keySet()) {
            PvEWorldMap pveMap = pveWorldMaps.get(key);
View Full Code Here

Examples of model.PvPWorldMap.printObject()

                        //Update the world map.
                        if (world.getGameMode() == Constants.GAME_TYPE_PVE) {
                            PvPWorldMap pvpMap = client.getServer().getPvPWorldMap(world.getID());
                            pvpMap.quitOldTeamAndPosition(env.getRow(), env.getColumn());
                            pvpMap.printObject();

                            WorldMapDAO.updatePvPWorldMap(pvpMap);
                        } else if (world.getGameMode() == Constants.GAME_TYPE_PVE) {
                            PvEWorldMap pveMap = client.getServer().getPvEWorldMap(world.getID());
                            int position = pveMap.getPositionBasingOnRowAndCol(env.getRow(), env.getColumn());
View Full Code Here

Examples of org.apache.logging.log4j.core.config.plugins.Plugin.printObject()

        for (final Class<?> clazz : resolver.getClasses()) {
            final Plugin plugin = clazz.getAnnotation(Plugin.class);
            final String pluginCategory = plugin.category();
            final Map<String, PluginType<?>> map = REGISTRY.getCategory(pluginCategory);
            String type = plugin.elementType().equals(Plugin.EMPTY) ? plugin.name() : plugin.elementType();
            PluginType<?> pluginType = new PluginType(clazz, type, plugin.printObject(), plugin.deferChildren());
            map.put(plugin.name().toLowerCase(), pluginType);
            final PluginAliases pluginAliases = clazz.getAnnotation(PluginAliases.class);
            if (pluginAliases != null) {
                for (String alias : pluginAliases.value()) {
                    type =  plugin.elementType().equals(Plugin.EMPTY) ? alias : plugin.elementType();
View Full Code Here

Examples of org.apache.logging.log4j.core.config.plugins.Plugin.printObject()

            map.put(plugin.name().toLowerCase(), pluginType);
            final PluginAliases pluginAliases = clazz.getAnnotation(PluginAliases.class);
            if (pluginAliases != null) {
                for (String alias : pluginAliases.value()) {
                    type =  plugin.elementType().equals(Plugin.EMPTY) ? alias : plugin.elementType();
                    pluginType = new PluginType(clazz, type, plugin.printObject(), plugin.deferChildren());
                    map.put(alias.trim().toLowerCase(), pluginType);
                }
            }
        }
        plugins = REGISTRY.getCategory(category);
View Full Code Here

Examples of org.jboss.ejb3.test.proxy.impl.common.ejb.slsb.SimpleSLSBLocal.printObject()

      //call the method with various different parameters
      Object object = new String("I am some object");
      String string = new String("AnotherString");

      // method which accepts object/string
      local.printObject(object);
      local.printObject(string);
      // now pass an java.lang.Integer
      local.printObject(new Integer(34));
      // no param method
      local.noop();
View Full Code Here

Examples of org.jboss.ejb3.test.proxy.impl.common.ejb.slsb.SimpleSLSBLocal.printObject()

      Object object = new String("I am some object");
      String string = new String("AnotherString");

      // method which accepts object/string
      local.printObject(object);
      local.printObject(string);
      // now pass an java.lang.Integer
      local.printObject(new Integer(34));
      // no param method
      local.noop();
      // method with return type
View Full Code Here

Examples of org.jboss.ejb3.test.proxy.impl.common.ejb.slsb.SimpleSLSBLocal.printObject()

      // method which accepts object/string
      local.printObject(object);
      local.printObject(string);
      // now pass an java.lang.Integer
      local.printObject(new Integer(34));
      // no param method
      local.noop();
      // method with return type
      int i = local.someMethodWithReturnType();
      // method with multiple different type of params
View Full Code Here

Examples of org.jboss.ejb3.test.proxy.impl.common.ejb.slsb.SimpleSLSBLocal.printObject()

      assertNotNull("Local bean is null", local);

      // pass null to some params
      local.printMultipleObjects("hello", 2, 2.2f, null, 3.2, new Double(4.4));
      // pass null
      local.printObject(null);
      // pass null to all object params
      local.printMultipleObjects(null, 0, 0.0f, null, 0.0, null);
   }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.