PathChain

public class PathChain

This is the PathChain class. This class handles chaining together multiple Paths into a larger collection of Paths that can be run continuously. Additionally, this allows for the addition of PathCallbacks to specific Paths in the PathChain, allowing for non-blocking code to be run in the middle of a PathChain.

Author

Anyi Lin - 10158 Scott's Bots

Aaron Yang - 10158 Scott's Bots

Harrison Womack - 10158 Scott's Bots

Constructors

Link copied to clipboard
public void PathChain(Array<Path> paths)
This creates a new PathChain from some specified Paths.
public void PathChain(ArrayList<Path> paths)
This creates a new PathChain from an ArrayList of Paths.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
This returns the PathCallbacks of this PathChain in an ArrayList.
Link copied to clipboard
public Path getPath(int index)
This returns the Path on the PathChain at a specified index.
Link copied to clipboard
public void resetCallbacks()
Link copied to clipboard
public void setCallbacks(Array<PathCallback> callbacks)
This sets the PathCallbacks of the PathChain with some specified PathCallbacks.
public void setCallbacks(ArrayList<PathCallback> callbacks)
This sets the PathCallbacks of the PathChain with an ArrayList of PathCallbacks.
Link copied to clipboard
public int size()
This returns the size of the PathChain.