示例#1
0
 public static void SetTileGroundInductive(HexTile ht, int r, gen.unit u, int rot1, Tile t)
 {
     foreach (Hex h in gen.refractEmission(r, u, rot1, new List <Hex>()
     {
     }))
     {
         (ht + h).SetTileGround(t);
     }
 }
示例#2
0
        public void UpdateTileByStepOverGroundHorizon(HexUnit u)
        {
            HexTile nextCenter = generatedCenter + u;

            gen.unit d  = u.d;
            gen.unit bd = gen.unitRotate(d, 3);

            (nextCenter + gen.liner(d, generatedRadius)).SetTileGroundInit();

            SetTileGroundInductive(nextCenter, generatedRadius, d, 2, 4);
            SetTileGroundInductive(nextCenter, generatedRadius, d, 4, 2);
        }
示例#3
0
 private static int walltypeDivider(HexTile h, gen.unit u)
 {
     return((int)(h.hasWall(gen.unit2Hex[u]) ? unit2around[u] : around.iso));
 }
示例#4
0
 public static int unit2blaindId(gen.unit u, bool isInductive = false)
 {
     return(unit2blaindArea[u] + (isInductive ? 1 : 0));
 }
示例#5
0
 public void SetTileGroundHorizon(gen.unit step)
 {
     (generatedCenter + gen.liner(step, generatedRadius)).SetTileGroundInit();
     SetTileGroundInductive(step, 2, 4);
     SetTileGroundInductive(step, 4, 2);
 }
示例#6
0
 public void SetTileGroundInductive(gen.unit u, int rot1, int rot2)
 {
     SetTileGroundInductive(generatedCenter, generatedRadius, u, rot1, rot2);
 }