Added roads between buildings and their flags. Updated Courier to walk up to a building to deliver a cargo instead of stopping at its flag. Added tests to verify this and updated old tests
Changed woodcutter to leave its cargo manually on the flag. Added test for this. Also added tests for cargo to make sure it handle getNextStep correctly
Add missing file from previous commit
Added a map member to Building and updated GameMap to set it when the building is placed. Also added tests for this
Changed Cargo's constructor to take a GameMap as second argument and updated all users to either pass a map or null.
Changed Cargo::setTarget(Point, GameMap) to not take a GameMap as its second argument. It is set through the constructor instead
Fixed the WoodcutterWorker so that it uses the get|setCargo method in the super class instead of using its own parallel member woodCargo
Fixed Stonemason so that it uses the built-in get|setCargo() method in the Worker super class instead of implementing its own
Fixed Farmer to use the set|getCargo() method in the Worker super class instead of re-implementing it
Fixed a bug where findWayOffroad worked from but not to the entrance of a house. Added a test case for this. Also added two new methods to find a way via a point on the way
Simplified WoodcutterWorker by moving logic to the common Worker class. Fixed tests that relied on that the woodcutter worker first went to the flag and then out.