Skip to content

Commit

Permalink
#202, #228 Mored conversion of 120km E0 terrain.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich2 committed Mar 25, 2023
1 parent 0cf7226 commit 9650819
Showing 1 changed file with 14 additions and 31 deletions.
45 changes: 14 additions & 31 deletions EGrid/src/eg120/Terr120E0.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
package ostrat; package eg120
import prid._, phex._, egrid._, WTile._

/** [[WTile]] terrain for 15 West to 15 East. So one of the principles of these terrain grids is that tiles and tile sides should be specified
* according to objective geographical criteria, not political considerations. So hex 4CG0 140, 512 should not be a sea hex as the majority of the
* hex is covered by land and we do not want the narrowest gap from England to France to be a whole hex. Given that it is a land hex by geoprhical
* area it must be assigned to France. The Faroe Islands and the Shetland Islands are large enough as an island. */
/** [[WTile]] terrain for 15 West to 15 East. The Faroe Islands and the Shetland Islands are large enough to qualify as an island. The Orkney's are
* probably not, even with the mainland that comes into the hex, but for the sake of Scapa FLow they will be an [[Island]]. */
object Terr120E0 extends Long120Terrs
{
override implicit val grid: EGrid120LongFull = EGrid120.e0(300)
Expand All @@ -15,15 +13,6 @@ object Terr120E0 extends Long120Terrs
def gs(r: Int, cStart: Int, tileValues: Multiple[WTile]*): Unit = { res.setRowEnd(r, cStart, tileValues :_*); () }
def wr(r: Int, tileValues: Multiple[WTile]*): Unit = { res.setRow(r, tileValues :_*); () }

wr(328, sea * 6, sea * 3, mtain, taigaHills * 3)
wr(326, sea * 5, hills, sea * 3, taigaHills * 2, taiga * 3)
wr(324, sea * 3, plain, hills, sea * 4, taigaHills * 2, sea, plain * 2)
wr(322, sea * 3, hills, hills * 2, sea * 5, plain, sea, plain * 2)
wr(320, sea * 4, plain * 2, sea * 5, plain * 2, sea, plain)
wr(318, sea * 3, plain, hills * 2, sea * 5, plain, plain, plain, sea)
wr(316, sea * 2, plain * 3, hills, plain, sea * 5, plain, sea * 3)
wr(314, sea * 2, plain * 3, hills, plain * 2, sea * 3, plain * 5)
wr(312, sea * 2, plain * 2, sea, hills, plain * 3, sea, plain * 6)
wr(310, sea * 2, plain, sea * 2, hills, plain * 3, sea, plain * 3, hills * 2, plain * 2)
wr(308, sea * 5, hills * 2, plain * 2, plain * 3, hills * 5)
wr(306, sea * 8, plain * 4, hills * 6)
Expand All @@ -36,38 +25,22 @@ object Terr120E0 extends Long120Terrs

override val sTerrs: HSideLayer[WSide] =
{ val res: HSideLayer[WSide] = grid.newSideLayer[WSide](WSideNone)
res.setSomeInts(WSideMid(), 319,499, 318,500, 317,501, 316,502, 315,501, 314,500, 321,499, 322,500, 323,501, 324,502, 325,505)//Britain

res.setSomeInts(WSideMid(), 307,509, 307,511, 307,513, 308,514, 309,515)//English Channel
res.setSomeInts(WSideMid(), 323,529, 317,533, 318,532, 318,536, 319,533, 319,539)//Denmark
//res.setSomeInts(WSideMid(), 323,529, 317,533, 318,532, 318,536)//, 319,533, 319,539)//Denmark
res
}

override val corners: HCornerLayer =
{ val res: HCornerLayer = grid.newHVertOffsetLayer

res.setMouth2(320, 496)//Scotland - Ireland north west
res.setVert1In(318, 498)//Ireland - Scotland
res.setVert4In(318, 502)//Scotland - Ireland
res.setVert1In(316, 500)//Irish Sea
res.setVert2In(316, 500)//Irish Sea
res.setVert5In(314, 502)//Irish Sea
res.setMouth0(312, 500)//Irish Sea

res.setMouth1(306, 506)//English Channel Cherbourg
res.setVert0In(306, 510)//English Channel
res.setVert3In(308, 512)//English Channel
res.setVert2In(308, 512)//English Channel
res.setVert5In(308, 516)//English Channel
res.setMouth4(310, 518)//English Channel Dover - Calais

res.setMouth4(320, 536)
res.setVert5In(318, 534)
res.setVert4In(318, 534)
res.setMouth5(316, 536)
res.setMouth3(320, 536)
res.setMouth0(316, 536)
res.setMouth2(320, 536)
res.setMouth5(318, 542)
res
}

Expand All @@ -81,6 +54,16 @@ object Terr120E0 extends Long120Terrs
TRow(334, sea * 8, Head2Land(5, Mountains), taigaHills * 3),
TRow(332, sea * 3, Island(Hilly), sea * 4, Head2Land(4, Mountains), mtain, taigaHills, taiga * 2),
TRow(330, sea * 5, Island(Hilly), sea * 2, mtain * 4, taigaHills),
TRow(328, sea * 6, sea * 3, mtain, taigaHills * 3),
TRow(326, sea * 5, Island(Hilly), sea * 3, Head2Land(4, Hilly, Taiga), taigaHills, taiga * 3),
TRow(324, sea * 3, plain, hills, sea * 4, Head2Land(3, Hilly, Taiga), Head2Land(2, Hilly, Taiga), sea, plain * 2),
TRow(322, sea * 3, hills, hills * 2, sea * 5, plain, sea, plain * 2),
TRow(320, sea * 4, plain * 2, sea * 5, plain * 2, sea, plain),
TRow(318, sea * 3, Head3Land(5), Head1Land(4, Hilly), hills, sea * 5, plain, plain, plain, sea),
TRow(316, sea * 2, Head2Land(5), plain, Head3Land(1), hills, plain, sea * 5, plain, sea * 3),
VRow(315, MouthUL(498)),
TRow(314, sea * 2, Head2Land(4), plain, Head2Land(1), hills, plain * 2, sea * 3, plain * 5),
TRow(312, sea * 2, plain * 2, sea, hills, plain * 3, sea, plain * 6),
)
}
help.run
Expand Down

0 comments on commit 9650819

Please sign in to comment.