Package model

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


                        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

    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

                        //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

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.