FALSkills

Untitled

Jan 30th, 2021 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. private TreeLocations myLocation = TreeLocations.LUMBRIDGE;
  2.  
  3. public boolean walkToLocation(){
  4. return DaxWalker.walkTo(myLocation.getWalkTile());
  5. }
  6.  
  7. public boolean isAtMyLocation(Tile tile){
  8. return myLocation.getArea().contains(tile);
  9. }
  10.  
  11. public enum TreeLocations {
  12. LUMBRIDGE(new Area(new Tile(1,2,0), new Tile(3, 4, 0)), new Tile(1, 2, 0)),
  13. VARROCK(new Area(new Tile(1,2,0), new Tile(3, 4, 0)), new Tile(1, 2, 0)),
  14. FALADOR(new Area(new Tile(1,2,0), new Tile(3, 4, 0)), new Tile(1, 2, 0));
  15. Area area;
  16. Tile walkTile;
  17. TreeLocations(Area area, Tile walkTile){
  18. this.area = area;
  19. this.walkTile = walkTile;
  20. }
  21.  
  22. public Area getArea(){
  23. return area;
  24. }
  25.  
  26. public Tile getWalkTile(){
  27. return walkTile;
  28. }
  29. }
Add Comment
Please, Sign In to add comment