Pathfinding algorithm
|
This README is taken mostly from the ExampleProject Git repository.
To include the Pathfinder plugin into PADrend, copy the entire 'Pathfinder' directory into your local PADrend directory (e.g., ~/PADrend/Pathfinder/
or C:\PADrend\Pathfinder\\
).
Now, you need to add the Pathfinder plugin to your plugin search path, so that PADrend can find it. For this, open the file config.json
in a text editor (you need to run PADrend once to create it) and search for the following section:
Here you need to add the plugins
directory contained in the Pathfinder directory to Paths.plugins
(don't forget the trailing /
):
Now, you need to activate your plugin in PADrend. For this, you need to start PADrend. After you started PADrend, Open the "Config" menu and click on "Plugins". There you should see a list of all plugins with a small "x" if they are active. Search for the entry named "Pathfinder" and click on it to activate it. To use your plugin you need to restart PADrend.
The directory structure of this plugin is as follows:
To build the C++ library you need a development environment with a C++ compiler and CMake. See here how to set them up for your system.
Now, to build the library do the following:
build
and navigate into it by using mkdir build; cd build
cmake .. -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build .
If everything worked fine, you should now have the file libPathfinder.so
or libPathfinder.dll
in your directory.