Xephy 237 Share Posted July 9, 2017 Could somebody provide me an example of a local path being created and used? I'm at a bit of a loss for how to do it. Link to comment Share on other sites More sharing options...
Dinh 496 Share Posted July 9, 2017 Could somebody provide me an example of a local path being created and used? I'm at a bit of a loss for how to do it. According to the API it is generified and takes any instance of Locatable Tile is a Locatable so you do LocalPath<Tile> localPath = new LocalPath<>(); After further checking the API you will notice LocalPath's constructor Assuming you are creating the Path in your Main script class LocalPath<Tile> localPath = new LocalPath<>(this); Now you start adding Tiles to it since LocalPath implements List localPath.add(new Tile(0,0,0)); Then you have to use the other methods found in the API which should not be a problem: API Note that LocalPath#reverse is broken and will not do anything Edit: API ref link Link to comment Share on other sites More sharing options...
Xephy 237 Author Share Posted July 9, 2017 Extremely well explained. I must say, very very nice job. Thanks a lot. 10/10 Link to comment Share on other sites More sharing options...
abouhanafy87 4 Share Posted June 7, 2021 not work with me Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.