UIGridPathfinding: clear and separate A-star and Djikstra path systems
This commit is contained in:
parent
9eacedc624
commit
b32f5af28c
7 changed files with 974 additions and 509 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#include "PyMusic.h"
|
||||
#include "PyKeyboard.h"
|
||||
#include "PyMouse.h"
|
||||
#include "UIGridPathfinding.h" // AStarPath and DijkstraMap types
|
||||
#include "McRogueFaceVersion.h"
|
||||
#include "GameEngine.h"
|
||||
#include "ImGuiConsole.h"
|
||||
|
|
@ -410,6 +411,10 @@ PyObject* PyInit_mcrfpy()
|
|||
/*mouse state (#186)*/
|
||||
&PyMouseType,
|
||||
|
||||
/*pathfinding result types*/
|
||||
&mcrfpydef::PyAStarPathType,
|
||||
&mcrfpydef::PyDijkstraMapType,
|
||||
|
||||
nullptr};
|
||||
|
||||
// Types that are used internally but NOT exported to module namespace (#189)
|
||||
|
|
@ -422,6 +427,9 @@ PyObject* PyInit_mcrfpy()
|
|||
&PyUICollectionType, &PyUICollectionIterType,
|
||||
&PyUIEntityCollectionType, &PyUIEntityCollectionIterType,
|
||||
|
||||
/*pathfinding iterator - returned by AStarPath.__iter__() but not directly instantiable*/
|
||||
&mcrfpydef::PyAStarPathIterType,
|
||||
|
||||
nullptr};
|
||||
|
||||
// Set up PyWindowType methods and getsetters before PyType_Ready
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue