Commit Graph
15 Commits
Author SHA1 Message Date
Memes 29444ad546 Moved PathfindingManager to proper folder.
1. Moved PathfindingManager class to a more proper folder.
2. Gave using statements to the objects that used the PathfindingManager.
3. Consequentially, removed unnecessary using statements and ordered them appropiately.
2025-11-25 16:28:43 -05:00
Memes d6fe95bbd7 Removed Debug Chat Popup 2025-11-25 16:28:43 -05:00
Memes b614c30bc2 First Implementation 2025-11-25 16:28:43 -05:00
CongratsIsTrash 9488fbf953 Fixed pathfinding compile error 2025-04-26 23:29:15 -04:00
Ozzatron 6fa46325b6 Fix end tile optimization to use paranoid tile retrieval 2025-04-26 20:48:37 -04:00
Memes a353cbe81b Improved the A* Algorithm.
1. Made nodes have a default value of infinity, as the common implementation suggests.
2. Created a new data structure, the HeapDict, for finding the node with the lowest cost at every iteration.
3. Added some comments and made some code more readable.
2025-04-26 17:40:25 +02:00
GinYuH 95949927d5 polyperil edits + null fix 2025-03-12 22:44:48 -07:00
NycroV 30e6f362fb Here you go Mr Memes 2025-03-08 14:30:42 -05:00
Memes 3d15aaa89c NYCRO HELP ME BRO (Fixed Compiling) 2025-03-08 14:30:42 -05:00
Ozzatron 50a14a454e THIS COMMIT DOES NOT COMPILE. It breaks the fish.
1 - Remove IPathFinder interface in favor of a PathfindingManager implementation.
2 - Significant internal rewrites to pathfinding for performance and proper sorting of variables.
3 - All pathfinding elements are now inside PathfindingManager instead of scattered throughout CalamityUtils.
4 - Significantly reduced visibility of all pathfinding internals. As they are multi-threaded, they should not be touched outside of their intended API.
5 - Properly implemented handling for pathfinding entities following one path while actively calculating another. This can be performed repeatedly, with each new pathfinding calculation overwriting the last one upon success.
2025-03-08 14:30:42 -05:00
Memes 6acac7c18a Pathfinding Interface Finished. 2025-03-01 13:56:23 -05:00
NycroV 9585fe76dd Better implementation of multithreading 2025-03-01 13:56:23 -05:00
Memes 523a712987 Major change to IPathFinder.
1. Fixed lag in IPathFinder.
2. Deleted Pathfinding property in IPathFinder.
3. Improvements to SunkenSeaNPC to fit IPathFinder.
4. Adaptation of Probesnaut and Sharkoon to the new changes.
2025-03-01 13:56:23 -05:00
NycroV 4ef36e28a8 Basic implementation of an interface for providing pathfinding functionality. For Memes <3 2025-03-01 13:56:23 -05:00
Alex 6f631b2272 Pathfinding Optimizations (#983)
Squash merge of pathfinding algorithm improvements and multi-threading by Memes.
2025-02-02 14:31:06 -05:00