Center sectors map on most recently saved (played and not abandoned) sector (#375)

This commit is contained in:
Clarence "Sparr" Risher
2018-12-13 14:35:24 -08:00
committed by Anuken
parent 18ddc040d1
commit 54dd67a435
4 changed files with 34 additions and 7 deletions

View File

@@ -86,6 +86,10 @@ public class Sectors{
return grid.get(Bits.getLeftShort(position), Bits.getRightShort(position));
}
public Iterable<Sector> getSectors(){
return grid.values();
}
public Difficulty getDifficulty(Sector sector){
if(sector.difficulty == 0){
return Difficulty.hard;