Examples of ZoneType


Examples of lineage2.gameserver.model.Zone.ZoneType

      for (int i = 0; i < _zones.size(); i++)
      {
        zone = _zones.get(i);
        if (zone.getRestartPoints() != null)
        {
          ZoneType type = zone.getType();
          if ((type == ZoneType.battle_zone) || (type == ZoneType.peace_zone) || (type == ZoneType.offshore) || (type == ZoneType.dummy))
          {
            return zone.getSpawn();
          }
        }
View Full Code Here

Examples of lineage2.gameserver.model.Zone.ZoneType

      for (int i = 0; i < _zones.size(); i++)
      {
        zone = _zones.get(i);
        if (zone.getRestartPoints() != null)
        {
          ZoneType type = zone.getType();
          if ((type == ZoneType.battle_zone) || (type == ZoneType.peace_zone) || (type == ZoneType.offshore) || (type == ZoneType.dummy))
          {
            return zone.getPKSpawn();
          }
        }
View Full Code Here

Examples of model.ZoneType

    private ZoneTypeDAO() {
    }

    public static ZoneType getZoneType(int zone_type_id) throws SQLException {
        ZoneType zoneType = null;

        String query = "SELECT * FROM `zone_type` WHERE `zone_type_id` = ?";

        Connection connection = null;
        PreparedStatement pstmt = null;

        try {
            connection = DAO.getDataSource().getConnection();
            pstmt = connection.prepareStatement(query);
            pstmt.setInt(1, zone_type_id);
            ResultSet rs = pstmt.executeQuery();

            if (rs.next()) {
                zoneType = new ZoneType(zone_type_id, rs.getBoolean("contains_water"));
            }

            pstmt.close();
        } finally {
            if (connection != null) {
View Full Code Here

Examples of model.ZoneType

                                ParamTableDAO.createParameters(zone_id);
                                PreyPredatorRatioDAO.createParameters(world.getCreatorID(),zone_id);
                                zone.setParameters(ParamTableDAO.getByZoneID(zone_id));

                                ZoneType zoneType = ZoneTypeDAO.getZoneType(zone.getType());

                                if (zoneType.containsWater()) {
                                    WaterSource waterSource = new WaterSource(-1);
                                    waterSource.setMaxWater(100);
                                    waterSource.setWater(100);
                                    waterSource.setZoneID(zone_id);
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.