Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private TreeLocations myLocation = TreeLocations.LUMBRIDGE;
- public boolean walkToLocation(){
- return DaxWalker.walkTo(myLocation.getWalkTile());
- }
- public boolean isAtMyLocation(Tile tile){
- return myLocation.getArea().contains(tile);
- }
- public enum TreeLocations {
- LUMBRIDGE(new Area(new Tile(1,2,0), new Tile(3, 4, 0)), new Tile(1, 2, 0)),
- VARROCK(new Area(new Tile(1,2,0), new Tile(3, 4, 0)), new Tile(1, 2, 0)),
- FALADOR(new Area(new Tile(1,2,0), new Tile(3, 4, 0)), new Tile(1, 2, 0));
- Area area;
- Tile walkTile;
- TreeLocations(Area area, Tile walkTile){
- this.area = area;
- this.walkTile = walkTile;
- }
- public Area getArea(){
- return area;
- }
- public Tile getWalkTile(){
- return walkTile;
- }
- }
Add Comment
Please, Sign In to add comment