Location.java 432 B

123456789101112131415161718192021222324252627282930
  1. package me.hammerle.supersnuvi.tiles;
  2. public class Location
  3. {
  4. private Tile tile;
  5. private int x;
  6. private int y;
  7. public Location(Tile tile, int x, int y)
  8. {
  9. this.tile = tile;
  10. this.x = x;
  11. this.y = y;
  12. }
  13. public Tile getTile()
  14. {
  15. return tile;
  16. }
  17. public int getX()
  18. {
  19. return x;
  20. }
  21. public int getY()
  22. {
  23. return y;
  24. }
  25. }