Feature/cleanup#25
Conversation
…elJourney() i traveler för att förhindra att programmet crashar om en spelare inte har råd med en resa.
…elJourney() i traveler för att förhindra att programmet crashar om en spelare inte har råd med en resa.
…rivate String managedMoneyAsInt(Traveler t), private List<Location> distinctLocationsById(List<Location> locations) som inte används längre i TravelGameController.
…nLink(Location fromLocation, Location toLocation, int distance) i LocationLink, dialogPane i TravelGame, konstruktorn public Transport(TransportType type, String costPerMove) i Transport, getTurnNumber() i Journey, setType i Location, getLocationLink() i TransportLink.
# Conflicts: # src/main/java/org/example/TravelGameController.java
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR removes several public accessors and constructors from domain entity classes (Journey, Location, LocationLink, Transport, TransportLink), deletes the EventResult record entirely, adds a cancelJourney method to Traveler, and removes an unused variable from TravelGame. The changes reduce the public API surface across multiple model classes. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
✏️ Tip: You can disable this entire section by setting Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
New Features
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.