package fi.hallo.mapgen;

public class HexMap {
    private int height, width = 0;
    private Hex[][] map;

    public HexMap(int height, int width) {
        this.height = height;
        this.width = width;
        map = new Hex[height][width];
    }
}

@@ -40,16 +40,120 @@
 HexMap %7B
+%0A%0A    public enum Region %7BNORTH, RIVERLAND, CROWNLAND, VALE, WESTERLAND, IRON, DORNE, REACH, STORMLAND%7D;
 %0A    pri
@@ -178,12 +178,8 @@
 idth
- = 0
 ;%0A  
@@ -200,16 +200,43 @@
 %5D%5B%5D map;
+%0A    private Region region;
 %0A%0A    pu
@@ -268,16 +268,31 @@
 nt width
+, Region region
 ) %7B%0A    
@@ -353,16 +353,51 @@
         
+this.region = region;%0A        this.
 map = ne
@@ -422,12 +422,785 @@
 h%5D;%0A
+%0A
     %7D
+%0A%0A    public void createMap() %7B%0A        int%5B%5D typePortion = hexTypePortion();%0A%0A    %7D%0A%0A%0A    private int%5B%5D hexTypePortion() %7B%0A        switch (region) %7B%0A            case NORTH:%0A                return new int%5B8%5D;%0A            case RIVERLAND:%0A                return new int%5B8%5D;%0A            case CROWNLAND:%0A                return new int%5B8%5D;%0A            case VALE:%0A                return new int%5B8%5D;%0A            case WESTERLAND:%0A                return new int%5B8%5D;%0A            case IRON:%0A                return new int%5B8%5D;%0A            case DORNE:%0A                return new int%5B8%5D;%0A            case REACH:%0A                return new int%5B8%5D;%0A            case STORMLAND:%0A                return new int%5B8%5D;%0A        %7D%0A        return new int%5B%5D %7B12, 12, 12, 12, 12 ,12, 12, 12%7D;%0A    %7D%0A%0A
 %0A%7D%0A

Add enum for map type