Guil02 / project-2-2

2 stars 3 forks source link

Initalize adjacent field for Tile class #5

Closed MischaRauch closed 2 years ago

MischaRauch commented 2 years ago

Scenario file - initalize adjacent tiles for each tile. either after creating the tile --> assign each neighbor for the tile, or during the creation of the tiles

MischaRauch commented 2 years ago

wouldn't it make more sense to create a method in the ScenarioBuilder class? which gets called in the build() function after the initMap() and filleMap() method? The way I would implement it: loop over map and check if adjacent is inside map boundaries if so add it to the right adjacent spot. Is there a more efficient way?