Conversation
|
Here is an example of what it currently looks like when I add a new transport type: c0b70f9.
|
|
Thanks for the reference! That'll help. I haven't looked yet, but are there currently any checks for the availability of transports, or is the user's choice if they are enabled? |
|
A possible refactor that can be explored is to move all the transports away from TSV files and over to separate enums. Enums in Java allow you to define several constructors and can support arbitrary number of arguments using e.g. |
A certain type of transport (e.g. all hot air balloons) will be considered during the pathfinding if:
A specific transport (e.g. the hot air balloon from Varrock to Castle Wars) will be considered during the pathfinding if:
|
|
Yeah, I was thinking along the same lines. Enums usually have my preference for this kind of thing, as I find them to be a bit more solid programatically. I do like the TSV for storing the data, as that can get a bit ugly in code. The enum constructors seem like a good place for that. |
…uirements and improve separation of concerns.
…lized transport management
… no point testing.
… available for fairy rings with bank items.
…f is not a teleport, required some more work.
…ensured correct transport logic after bank visit.
…mprove fairy ring checks. Moved poh remapping to its own function.
…/equipment presence of the Dramen staff, preventing invalid routes when only in bank.
…sed on bank visit status
…sport filtering logic
… based on bank visit status
… enforce item pickup before teleporting
# Conflicts: # src/main/java/shortestpath/transport/Transport.java # src/test/java/shortestpath/pathfinder/PathfinderTest.java
…d clarity and maintainability
…om both origins for improved functionality
…ne setup with bank items
|
As a first time contributor, I would have found it easier to modify part of the program rather than a TSV file since my normal configuration strips trailing whitespace and expands tab characters. |


I am starting work on refactoring the transport type logic so it's easier to extend when new transports need to be added.