Location.java 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.model;
  16. /**
  17. * This class ...
  18. *
  19. * @version $Revision: 1.1.4.1 $ $Date: 2005/03/27 15:29:33 $
  20. */
  21. public final class Location
  22. {
  23. private int _x;
  24. private int _y;
  25. private int _z;
  26. private int _heading;
  27. public Location(int x, int y, int z)
  28. {
  29. _x = x;
  30. _y = y;
  31. _z = z;
  32. }
  33. public Location(int x, int y, int z, int heading)
  34. {
  35. _x = x;
  36. _y = y;
  37. _z = z;
  38. _heading = heading;
  39. }
  40. public int getX()
  41. {
  42. return _x;
  43. }
  44. public int getY()
  45. {
  46. return _y;
  47. }
  48. public int getZ()
  49. {
  50. return _z;
  51. }
  52. public int getHeading()
  53. {
  54. return _heading;
  55. }
  56. }