Package l2p.gameserver.model.entity.olympiad

Source Code of l2p.gameserver.model.entity.olympiad.OlympiadStadia

package l2p.gameserver.model.entity.olympiad;

import l2p.gameserver.instancemanager.ZoneManager;
import l2p.gameserver.model.L2Zone;
import l2p.gameserver.model.L2Zone.ZoneType;

public class OlympiadStadia
{
  private int _olympiadStadiaId = 0;
  private String _Name = "";
  private L2Zone _Zone;

  public OlympiadStadia(int olympiadStadiaId)
  {
    _olympiadStadiaId = olympiadStadiaId;
    loadData();
  }

  private void loadData()
  {
    L2Zone zone = ZoneManager.getInstance().getZoneByIndex(ZoneType.OlympiadStadia, getOlympiadStadiaId(), true);
    if(zone != null)
    {
      _Name = zone.getName();
    }
  }

  public final int getOlympiadStadiaId()
  {
    return _olympiadStadiaId;
  }

  public final String getName()
  {
    return _Name;
  }

  public final L2Zone getZone()
  {
    if(_Zone == null)
    {
      _Zone = ZoneManager.getInstance().getZoneByIndex(ZoneType.OlympiadStadia, getOlympiadStadiaId(), true);
    }
    return _Zone;
  }
}
TOP

Related Classes of l2p.gameserver.model.entity.olympiad.OlympiadStadia

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.