Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Territory.validate()


                          territory.add(new Location(location.getAttributes().getNamedItem("loc").getNodeValue()));
                        }
                      }
                      if(spawnType == 2) //точечный спавн не проверять
                      {
                        territory.validate();
                      }
                      TerritoryTable.getInstance().getLocations().put(locId, territory);
                      L2World.addTerritory(territory);
                      for(String mob : mobs)
                      {
View Full Code Here


                  L2Territory territory = new L2Territory(loc_id);
                  territory.add(xMin, yMin, zMin, zMax);
                  territory.add(xMax, yMin, zMin, zMax);
                  territory.add(xMax, yMax, zMin, zMax);
                  territory.add(xMin, yMax, zMin, zMax);
                  territory.validate();
                  TerritoryTable.getInstance().getLocations().put(loc_id, territory);
                  L2World.addTerritory(territory);
                  if(!_rooms.containsKey(type))
                  {
                    _rooms.put(type, new FastMap<Integer, DimensionalRiftRoom>().setShared(true));
View Full Code Here

    {
      DatabaseUtils.closeDatabaseCSR(con, statement, rset);
    }
    for(L2Territory t : _locations.values())
    {
      t.validate();
    }
    _log.info("TerritoryTable: Loaded " + _locations.size() + " locations");
  }

  public void registerZones()
View Full Code Here

                }
                if("shape".equalsIgnoreCase(e.getNodeName()))
                {
                  z.setLoc(territory);
                  territory.setZone(z);
                  territory.validate();
                }
                else if("restart_point".equalsIgnoreCase(e.getNodeName()))
                {
                  z.setRestartPoints(territory);
                }
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.