TowerSpawn.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Copyright (C) 2004-2013 L2J Server
  3. *
  4. * This file is part of L2J Server.
  5. *
  6. * L2J Server is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * L2J Server is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package com.l2jserver.gameserver.model;
  20. import java.util.List;
  21. import com.l2jserver.gameserver.model.interfaces.IIdentifiable;
  22. /**
  23. * @author malyelfik
  24. */
  25. public class TowerSpawn implements IIdentifiable
  26. {
  27. private final int _npcId;
  28. private final Location _location;
  29. private List<Integer> _zoneList = null;
  30. private int _upgradeLevel = 0;
  31. public TowerSpawn(int npcId, Location location)
  32. {
  33. _location = location;
  34. _npcId = npcId;
  35. }
  36. public TowerSpawn(int npcId, Location location, List<Integer> zoneList)
  37. {
  38. _location = location;
  39. _npcId = npcId;
  40. _zoneList = zoneList;
  41. }
  42. /**
  43. * Gets the NPC ID.
  44. * @return the NPC ID
  45. */
  46. @Override
  47. public int getId()
  48. {
  49. return _npcId;
  50. }
  51. public Location getLocation()
  52. {
  53. return _location;
  54. }
  55. public List<Integer> getZoneList()
  56. {
  57. return _zoneList;
  58. }
  59. public void setUpgradeLevel(int level)
  60. {
  61. _upgradeLevel = level;
  62. }
  63. public int getUpgradeLevel()
  64. {
  65. return _upgradeLevel;
  66. }
  67. }