Xephy 237 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.
Dinh 496 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
Xephy 237 Author Posted July 9, 2017 Extremely well explained. I must say, very very nice job. Thanks a lot. 10/10
Recommended Posts
Archived
This topic is now archived and is closed to further replies.