File-By-File
PathfinderPluginManager

PathfinderPluginManager

A manager for controlling the loading and usage of any plugins being used. Each instance of Voyager has one of these, and it allows the user to load PathfinderPlugins, which are designed to allow developers to extend the normal limits of Pathfinder's customization.

This is intended to be an internal class.

Methods

PathfinderPluginManager()

Constructs a new PathfinderPluginManager.

getPlugins()

Returns the list of currently loaded PathfinderPlugin instances.

loadPlugin(PathfinderPlugin plugin)

Loads a PathfinderPlugin into the manager. This adds the plugin to the internal list and logs its loading. Returns this for method chaining.

onLoad(Voyager voyager)

Calls the onLoad method for all loaded plugins. This is typically invoked when the Voyager instance itself is initialized.

preTick(Voyager voyager)

Calls the preTick method for all loaded plugins. This is invoked before each main tick of the Voyager instance.

onTick(Voyager voyager)

Calls the onTick method for all loaded plugins. This is invoked immediately after each main tick of the Voyager instance.

postTick(Voyager voyager)

Calls the postTick method for all loaded plugins. This is invoked after a tick, and after the recording and playback managers have been ticked.

preClear(Voyager voyager)

Calls the preClear method for all loaded plugins. This is invoked before the Voyager.clear() method actually clears the followers.

onClear(Voyager voyager)

Calls the onClear method for all loaded plugins. This is invoked after the Voyager.clear() method has cleared the followers.

onEnterZone(Voyager voyager, Zone zone)

Calls the onEnterZone method for all loaded plugins. This is invoked when Pathfinder detects that the robot has entered a Zone.

onExitZone(Voyager voyager, Zone zone)

Calls the onExitZone method for all loaded plugins. This is invoked when Pathfinder detects that the robot has exited a Zone.

whileInsideZone(Voyager voyager, Zone zone)

Calls the whileInsideZone method for all loaded plugins. This is invoked repeatedly while Pathfinder detects that the robot is inside a Zone.

onStartFollower(Voyager voyager, Follower follower)

Calls the onStartFollower method for all loaded plugins. This is invoked when Pathfinder detects that a new Follower has started execution.

onFinishFollower(Voyager voyager, Follower follower)

Calls the onFinishFollower method for all loaded plugins. This is invoked when Pathfinder detects that a Follower has finished execution.