EngineInterface.java 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. * This program is free software: you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation, either version 3 of the License, or (at your option) any later
  5. * version.
  6. *
  7. * This program is distributed in the hope that it will be useful, but WITHOUT
  8. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  9. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  10. * details.
  11. *
  12. * You should have received a copy of the GNU General Public License along with
  13. * this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. package com.l2jserver.gameserver.script;
  16. import com.l2jserver.gameserver.Announcements;
  17. import com.l2jserver.gameserver.GameTimeController;
  18. import com.l2jserver.gameserver.RecipeController;
  19. import com.l2jserver.gameserver.datatables.CharNameTable;
  20. import com.l2jserver.gameserver.datatables.CharTemplateTable;
  21. import com.l2jserver.gameserver.datatables.ClanTable;
  22. import com.l2jserver.gameserver.datatables.ItemTable;
  23. import com.l2jserver.gameserver.datatables.LevelUpData;
  24. import com.l2jserver.gameserver.datatables.MapRegionTable;
  25. import com.l2jserver.gameserver.datatables.NpcTable;
  26. import com.l2jserver.gameserver.datatables.SkillTable;
  27. import com.l2jserver.gameserver.datatables.SkillTreesData;
  28. import com.l2jserver.gameserver.datatables.SpawnTable;
  29. import com.l2jserver.gameserver.datatables.TeleportLocationTable;
  30. import com.l2jserver.gameserver.idfactory.IdFactory;
  31. import com.l2jserver.gameserver.model.L2World;
  32. /**
  33. * @author Luis Arias
  34. */
  35. public interface EngineInterface
  36. {
  37. //* keep the references of Singletons to prevent garbage collection
  38. public CharNameTable charNametable = CharNameTable.getInstance();
  39. public IdFactory idFactory = IdFactory.getInstance();
  40. public ItemTable itemTable = ItemTable.getInstance();
  41. public SkillTable skillTable = SkillTable.getInstance();
  42. public RecipeController recipeController = RecipeController.getInstance();
  43. public SkillTreesData skillTreeTable = SkillTreesData.getInstance();
  44. public CharTemplateTable charTemplates = CharTemplateTable.getInstance();
  45. public ClanTable clanTable = ClanTable.getInstance();
  46. public NpcTable npcTable = NpcTable.getInstance();
  47. public TeleportLocationTable teleTable = TeleportLocationTable.getInstance();
  48. public LevelUpData levelUpData = LevelUpData.getInstance();
  49. public L2World world = L2World.getInstance();
  50. public SpawnTable spawnTable = SpawnTable.getInstance();
  51. public GameTimeController gameTimeController = GameTimeController.getInstance();
  52. public Announcements announcements = Announcements.getInstance();
  53. public MapRegionTable mapRegions = MapRegionTable.getInstance();
  54. //public ArrayList getAllPlayers();
  55. //public Player getPlayer(String characterName);
  56. public void addQuestDrop(int npcID, int itemID, int min, int max, int chance, String questID, String[] states);
  57. public void addEventDrop(int[] items, int[] count, double chance, DateRange range);
  58. public void onPlayerLogin(String[] message, DateRange range);
  59. }