IPositionable.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C) 2004-2015 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.interfaces;
  20. import com.l2jserver.gameserver.model.Location;
  21. /**
  22. * Object world location storage and update interface.
  23. * @author Zoey76
  24. */
  25. public interface IPositionable extends ILocational
  26. {
  27. /**
  28. * Sets the X coordinate of this object.
  29. * @param x the new X coordinate
  30. */
  31. public void setX(int x);
  32. /**
  33. * Sets the Y coordinate of this object.
  34. * @param y the new Y coordinate
  35. */
  36. public void setY(int y);
  37. /**
  38. * Sets the Z coordinate of this object.
  39. * @param z the new Z coordinate
  40. */
  41. public void setZ(int z);
  42. /**
  43. * Sets all three coordinates of this object.
  44. * @param x the new X coordinate
  45. * @param y the new Y coordinate
  46. * @param z the new Z coordinate
  47. */
  48. public void setXYZ(int x, int y, int z);
  49. /**
  50. * Sets all three coordinates of this object.
  51. * @param loc the object whose coordinates to use
  52. */
  53. public void setXYZ(ILocational loc);
  54. /**
  55. * Sets the heading of this object.
  56. * @param heading the new heading
  57. */
  58. public void setHeading(int heading);
  59. /**
  60. * Changes the instance zone ID of this object.
  61. * @param instanceId the ID of the instance zone to put this object in (0 - not in any instance)
  62. */
  63. public void setInstanceId(int instanceId);
  64. /**
  65. * Changes the location of this object.
  66. * @param loc the new location
  67. */
  68. public void setLocation(Location loc);
  69. }