Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. package org.scapesoft.game.item;
  2.  
  3. import org.scapesoft.game.WorldTile;
  4. import org.scapesoft.game.player.Player;
  5.  
  6. @SuppressWarnings("serial")
  7. public class FloorItem extends Item {
  8.  
  9. /**
  10. *
  11. */
  12. private WorldTile tile;
  13. private Player owner;
  14. private boolean invisible;
  15. private boolean grave;
  16.  
  17. public FloorItem(int id) {
  18. super(id);
  19. }
  20.  
  21. @Override
  22. public void setAmount(int amount) {
  23. this.amount = amount;
  24. }
  25.  
  26. public FloorItem(Item item, WorldTile tile, Player owner, boolean underGrave, boolean invisible) {
  27. super(item.getId(), item.getAmount());
  28. this.tile = tile;
  29. this.owner = owner;
  30. grave = underGrave;
  31. this.invisible = invisible;
  32. }
  33.  
  34. public WorldTile getTile() {
  35. return tile;
  36. }
  37.  
  38. public boolean isGrave() {
  39. return grave;
  40. }
  41.  
  42. public boolean isInvisible() {
  43. return invisible;
  44. }
  45.  
  46. public Player getOwner() {
  47. return owner;
  48. }
  49.  
  50. public boolean hasOwner() {
  51. return owner != null;
  52. }
  53. public void setInvisible(boolean invisible) {
  54. this.invisible = invisible;
  55. }
  56.  
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement