Add8WayLookup() public static method

public static Add8WayLookup ( int lookup, short x, short y ) : void
lookup int
x short
y short
return void
Esempio n. 1
0
        public static void Initialize()
        {
            Framing.selfFrame8WayLookup = new Point16[256][];
            Framing.frameSize8Way       = new Point16(18, 18);
            Framing.Add8WayLookup(0, 9, 3, 10, 3, 11, 3);
            Framing.Add8WayLookup(1, 6, 3, 7, 3, 8, 3);
            Framing.Add8WayLookup(2, 12, 0, 12, 1, 12, 2);
            Framing.Add8WayLookup(3, 15, 2);
            Framing.Add8WayLookup(4, 9, 0, 9, 1, 9, 2);
            Framing.Add8WayLookup(5, 13, 2);
            Framing.Add8WayLookup(6, 6, 4, 7, 4, 8, 4);
            Framing.Add8WayLookup(7, 14, 2);
            Framing.Add8WayLookup(8, 6, 0, 7, 0, 8, 0);
            Framing.Add8WayLookup(9, 5, 0, 5, 1, 5, 2);
            Framing.Add8WayLookup(10, 15, 0);
            Framing.Add8WayLookup(11, 15, 1);
            Framing.Add8WayLookup(12, 13, 0);
            Framing.Add8WayLookup(13, 13, 1);
            Framing.Add8WayLookup(14, 14, 0);
            Framing.Add8WayLookup(15, 14, 1);
            Framing.Add8WayLookup(19, 1, 4, 3, 4, 5, 4);
            Framing.Add8WayLookup(23, 16, 3);
            Framing.Add8WayLookup(27, 17, 0);
            Framing.Add8WayLookup(31, 13, 4);
            Framing.Add8WayLookup(37, 0, 4, 2, 4, 4, 4);
            Framing.Add8WayLookup(39, 17, 3);
            Framing.Add8WayLookup(45, 16, 0);
            Framing.Add8WayLookup(47, 12, 4);
            Framing.Add8WayLookup(55, 1, 2, 2, 2, 3, 2);
            Framing.Add8WayLookup(63, 6, 2, 7, 2, 8, 2);
            Framing.Add8WayLookup(74, 1, 3, 3, 3, 5, 3);
            Framing.Add8WayLookup(75, 17, 1);
            Framing.Add8WayLookup(78, 16, 2);
            Framing.Add8WayLookup(79, 13, 3);
            Framing.Add8WayLookup(91, 4, 0, 4, 1, 4, 2);
            Framing.Add8WayLookup(95, 11, 0, 11, 1, 11, 2);
            Framing.Add8WayLookup(111, 17, 4);
            Framing.Add8WayLookup(127, 14, 3);
            Framing.Add8WayLookup(140, 0, 3, 2, 3, 4, 3);
            Framing.Add8WayLookup(141, 16, 1);
            Framing.Add8WayLookup(142, 17, 2);
            Framing.Add8WayLookup(143, 12, 3);
            Framing.Add8WayLookup(159, 16, 4);
            Framing.Add8WayLookup(173, 0, 0, 0, 1, 0, 2);
            Framing.Add8WayLookup(175, 10, 0, 10, 1, 10, 2);
            Framing.Add8WayLookup(191, 15, 3);
            Framing.Add8WayLookup(206, 1, 0, 2, 0, 3, 0);
            Framing.Add8WayLookup(207, 6, 1, 7, 1, 8, 1);
            Framing.Add8WayLookup(223, 14, 4);
            Framing.Add8WayLookup(239, 15, 4);
            Framing.Add8WayLookup(255, 1, 1, 2, 1, 3, 1);
            Framing.blockStyleLookup           = new Framing.BlockStyle[6];
            Framing.blockStyleLookup[0]        = new Framing.BlockStyle(true, true, true, true);
            Framing.blockStyleLookup[1]        = new Framing.BlockStyle(false, true, true, true);
            Framing.blockStyleLookup[2]        = new Framing.BlockStyle(false, true, true, false);
            Framing.blockStyleLookup[3]        = new Framing.BlockStyle(false, true, false, true);
            Framing.blockStyleLookup[4]        = new Framing.BlockStyle(true, false, true, false);
            Framing.blockStyleLookup[5]        = new Framing.BlockStyle(true, false, false, true);
            Framing.largeTileFrameNumberLookup = new int[][]
            {
                new int[]
                {
                    2,
                    4,
                    2
                },
                new int[]
                {
                    1,
                    3,
                    1
                },
                new int[]
                {
                    2,
                    2,
                    4
                },
                new int[]
                {
                    1,
                    1,
                    3
                }
            };
            int[][] array     = new int[3][];
            int[][] arg_36F_0 = array;
            int     arg_36F_1 = 0;

            int[] array2 = new int[3];
            array2[0]            = 2;
            arg_36F_0[arg_36F_1] = array2;
            array[1]             = new int[]
            {
                0,
                1,
                4
            };
            int[][] arg_394_0 = array;
            int     arg_394_1 = 2;

            int[] array3 = new int[3];
            array3[1]                     = 3;
            arg_394_0[arg_394_1]          = array3;
            Framing.centerWallFrameLookup = array;
            Framing.wallFrameLookup       = new Point16[20][];
            Framing.wallFrameSize         = new Point16(36, 36);
            Framing.AddWallFrameLookup(0, 9, 3, 10, 3, 11, 3, 6, 6);
            Framing.AddWallFrameLookup(1, 6, 3, 7, 3, 8, 3, 4, 6);
            Framing.AddWallFrameLookup(2, 12, 0, 12, 1, 12, 2, 12, 5);
            Framing.AddWallFrameLookup(3, 1, 4, 3, 4, 5, 4, 3, 6);
            Framing.AddWallFrameLookup(4, 9, 0, 9, 1, 9, 2, 9, 5);
            Framing.AddWallFrameLookup(5, 0, 4, 2, 4, 4, 4, 0, 6);
            Framing.AddWallFrameLookup(6, 6, 4, 7, 4, 8, 4, 5, 6);
            Framing.AddWallFrameLookup(7, 1, 2, 2, 2, 3, 2, 3, 5);
            Framing.AddWallFrameLookup(8, 6, 0, 7, 0, 8, 0, 6, 5);
            Framing.AddWallFrameLookup(9, 5, 0, 5, 1, 5, 2, 5, 5);
            Framing.AddWallFrameLookup(10, 1, 3, 3, 3, 5, 3, 1, 6);
            Framing.AddWallFrameLookup(11, 4, 0, 4, 1, 4, 2, 4, 5);
            Framing.AddWallFrameLookup(12, 0, 3, 2, 3, 4, 3, 0, 6);
            Framing.AddWallFrameLookup(13, 0, 0, 0, 1, 0, 2, 0, 5);
            Framing.AddWallFrameLookup(14, 1, 0, 2, 0, 3, 0, 1, 6);
            Framing.AddWallFrameLookup(15, 1, 1, 2, 1, 3, 1, 2, 5);
            Framing.AddWallFrameLookup(16, 6, 1, 7, 1, 8, 1, 7, 5);
            Framing.AddWallFrameLookup(17, 6, 2, 7, 2, 8, 2, 8, 5);
            Framing.AddWallFrameLookup(18, 10, 0, 10, 1, 10, 2, 10, 5);
            Framing.AddWallFrameLookup(19, 11, 0, 11, 1, 11, 2, 11, 5);
        }
Esempio n. 2
0
 public static void Initialize()
 {
     Framing.selfFrame8WayLookup = new Point16[256][];
     Framing.frameSize8Way       = new Point16(18, 18);
     Framing.Add8WayLookup(0, (short)9, (short)3, (short)10, (short)3, (short)11, (short)3);
     Framing.Add8WayLookup(1, (short)6, (short)3, (short)7, (short)3, (short)8, (short)3);
     Framing.Add8WayLookup(2, (short)12, (short)0, (short)12, (short)1, (short)12, (short)2);
     Framing.Add8WayLookup(3, (short)15, (short)2);
     Framing.Add8WayLookup(4, (short)9, (short)0, (short)9, (short)1, (short)9, (short)2);
     Framing.Add8WayLookup(5, (short)13, (short)2);
     Framing.Add8WayLookup(6, (short)6, (short)4, (short)7, (short)4, (short)8, (short)4);
     Framing.Add8WayLookup(7, (short)14, (short)2);
     Framing.Add8WayLookup(8, (short)6, (short)0, (short)7, (short)0, (short)8, (short)0);
     Framing.Add8WayLookup(9, (short)5, (short)0, (short)5, (short)1, (short)5, (short)2);
     Framing.Add8WayLookup(10, (short)15, (short)0);
     Framing.Add8WayLookup(11, (short)15, (short)1);
     Framing.Add8WayLookup(12, (short)13, (short)0);
     Framing.Add8WayLookup(13, (short)13, (short)1);
     Framing.Add8WayLookup(14, (short)14, (short)0);
     Framing.Add8WayLookup(15, (short)14, (short)1);
     Framing.Add8WayLookup(19, (short)1, (short)4, (short)3, (short)4, (short)5, (short)4);
     Framing.Add8WayLookup(23, (short)16, (short)3);
     Framing.Add8WayLookup(27, (short)17, (short)0);
     Framing.Add8WayLookup(31, (short)13, (short)4);
     Framing.Add8WayLookup(37, (short)0, (short)4, (short)2, (short)4, (short)4, (short)4);
     Framing.Add8WayLookup(39, (short)17, (short)3);
     Framing.Add8WayLookup(45, (short)16, (short)0);
     Framing.Add8WayLookup(47, (short)12, (short)4);
     Framing.Add8WayLookup(55, (short)1, (short)2, (short)2, (short)2, (short)3, (short)2);
     Framing.Add8WayLookup(63, (short)6, (short)2, (short)7, (short)2, (short)8, (short)2);
     Framing.Add8WayLookup(74, (short)1, (short)3, (short)3, (short)3, (short)5, (short)3);
     Framing.Add8WayLookup(75, (short)17, (short)1);
     Framing.Add8WayLookup(78, (short)16, (short)2);
     Framing.Add8WayLookup(79, (short)13, (short)3);
     Framing.Add8WayLookup(91, (short)4, (short)0, (short)4, (short)1, (short)4, (short)2);
     Framing.Add8WayLookup(95, (short)11, (short)0, (short)11, (short)1, (short)11, (short)2);
     Framing.Add8WayLookup(111, (short)17, (short)4);
     Framing.Add8WayLookup((int)sbyte.MaxValue, (short)14, (short)3);
     Framing.Add8WayLookup(140, (short)0, (short)3, (short)2, (short)3, (short)4, (short)3);
     Framing.Add8WayLookup(141, (short)16, (short)1);
     Framing.Add8WayLookup(142, (short)17, (short)2);
     Framing.Add8WayLookup(143, (short)12, (short)3);
     Framing.Add8WayLookup(159, (short)16, (short)4);
     Framing.Add8WayLookup(173, (short)0, (short)0, (short)0, (short)1, (short)0, (short)2);
     Framing.Add8WayLookup(175, (short)10, (short)0, (short)10, (short)1, (short)10, (short)2);
     Framing.Add8WayLookup(191, (short)15, (short)3);
     Framing.Add8WayLookup(206, (short)1, (short)0, (short)2, (short)0, (short)3, (short)0);
     Framing.Add8WayLookup(207, (short)6, (short)1, (short)7, (short)1, (short)8, (short)1);
     Framing.Add8WayLookup(223, (short)14, (short)4);
     Framing.Add8WayLookup(239, (short)15, (short)4);
     Framing.Add8WayLookup((int)byte.MaxValue, (short)1, (short)1, (short)2, (short)1, (short)3, (short)1);
     Framing.blockStyleLookup             = new Framing.BlockStyle[6];
     Framing.blockStyleLookup[0]          = new Framing.BlockStyle(true, true, true, true);
     Framing.blockStyleLookup[1]          = new Framing.BlockStyle(false, true, true, true);
     Framing.blockStyleLookup[2]          = new Framing.BlockStyle(false, true, true, false);
     Framing.blockStyleLookup[3]          = new Framing.BlockStyle(false, true, false, true);
     Framing.blockStyleLookup[4]          = new Framing.BlockStyle(true, false, true, false);
     Framing.blockStyleLookup[5]          = new Framing.BlockStyle(true, false, false, true);
     Framing.phlebasTileFrameNumberLookup = new int[4][]
     {
         new int[3] {
             2, 4, 2
         },
         new int[3] {
             1, 3, 1
         },
         new int[3] {
             2, 2, 4
         },
         new int[3] {
             1, 1, 3
         }
     };
     Framing.lazureTileFrameNumberLookup = new int[2][]
     {
         new int[2] {
             1, 3
         },
         new int[2] {
             2, 4
         }
     };
     Framing.centerWallFrameLookup = new int[3][]
     {
         new int[3] {
             2, 0, 0
         },
         new int[3] {
             0, 1, 4
         },
         new int[3] {
             0, 3, 0
         }
     };
     Framing.wallFrameLookup = new Point16[20][];
     Framing.wallFrameSize   = new Point16(36, 36);
     Framing.AddWallFrameLookup(0, (short)9, (short)3, (short)10, (short)3, (short)11, (short)3, (short)6, (short)6);
     Framing.AddWallFrameLookup(1, (short)6, (short)3, (short)7, (short)3, (short)8, (short)3, (short)4, (short)6);
     Framing.AddWallFrameLookup(2, (short)12, (short)0, (short)12, (short)1, (short)12, (short)2, (short)12, (short)5);
     Framing.AddWallFrameLookup(3, (short)1, (short)4, (short)3, (short)4, (short)5, (short)4, (short)3, (short)6);
     Framing.AddWallFrameLookup(4, (short)9, (short)0, (short)9, (short)1, (short)9, (short)2, (short)9, (short)5);
     Framing.AddWallFrameLookup(5, (short)0, (short)4, (short)2, (short)4, (short)4, (short)4, (short)2, (short)6);
     Framing.AddWallFrameLookup(6, (short)6, (short)4, (short)7, (short)4, (short)8, (short)4, (short)5, (short)6);
     Framing.AddWallFrameLookup(7, (short)1, (short)2, (short)2, (short)2, (short)3, (short)2, (short)3, (short)5);
     Framing.AddWallFrameLookup(8, (short)6, (short)0, (short)7, (short)0, (short)8, (short)0, (short)6, (short)5);
     Framing.AddWallFrameLookup(9, (short)5, (short)0, (short)5, (short)1, (short)5, (short)2, (short)5, (short)5);
     Framing.AddWallFrameLookup(10, (short)1, (short)3, (short)3, (short)3, (short)5, (short)3, (short)1, (short)6);
     Framing.AddWallFrameLookup(11, (short)4, (short)0, (short)4, (short)1, (short)4, (short)2, (short)4, (short)5);
     Framing.AddWallFrameLookup(12, (short)0, (short)3, (short)2, (short)3, (short)4, (short)3, (short)0, (short)6);
     Framing.AddWallFrameLookup(13, (short)0, (short)0, (short)0, (short)1, (short)0, (short)2, (short)0, (short)5);
     Framing.AddWallFrameLookup(14, (short)1, (short)0, (short)2, (short)0, (short)3, (short)0, (short)1, (short)6);
     Framing.AddWallFrameLookup(15, (short)1, (short)1, (short)2, (short)1, (short)3, (short)1, (short)2, (short)5);
     Framing.AddWallFrameLookup(16, (short)6, (short)1, (short)7, (short)1, (short)8, (short)1, (short)7, (short)5);
     Framing.AddWallFrameLookup(17, (short)6, (short)2, (short)7, (short)2, (short)8, (short)2, (short)8, (short)5);
     Framing.AddWallFrameLookup(18, (short)10, (short)0, (short)10, (short)1, (short)10, (short)2, (short)10, (short)5);
     Framing.AddWallFrameLookup(19, (short)11, (short)0, (short)11, (short)1, (short)11, (short)2, (short)11, (short)5);
 }
Esempio n. 3
0
 public static void Initialize()
 {
     Framing.selfFrame8WayLookup = new Point16[256][];
     Framing.frameSize8Way       = new Point16(18, 18);
     Framing.Add8WayLookup(0, 9, 3, 10, 3, 11, 3);
     Framing.Add8WayLookup(1, 6, 3, 7, 3, 8, 3);
     Framing.Add8WayLookup(2, 12, 0, 12, 1, 12, 2);
     Framing.Add8WayLookup(3, 15, 2);
     Framing.Add8WayLookup(4, 9, 0, 9, 1, 9, 2);
     Framing.Add8WayLookup(5, 13, 2);
     Framing.Add8WayLookup(6, 6, 4, 7, 4, 8, 4);
     Framing.Add8WayLookup(7, 14, 2);
     Framing.Add8WayLookup(8, 6, 0, 7, 0, 8, 0);
     Framing.Add8WayLookup(9, 5, 0, 5, 1, 5, 2);
     Framing.Add8WayLookup(10, 15, 0);
     Framing.Add8WayLookup(11, 15, 1);
     Framing.Add8WayLookup(12, 13, 0);
     Framing.Add8WayLookup(13, 13, 1);
     Framing.Add8WayLookup(14, 14, 0);
     Framing.Add8WayLookup(15, 14, 1);
     Framing.Add8WayLookup(19, 1, 4, 3, 4, 5, 4);
     Framing.Add8WayLookup(23, 16, 3);
     Framing.Add8WayLookup(27, 17, 0);
     Framing.Add8WayLookup(31, 13, 4);
     Framing.Add8WayLookup(37, 0, 4, 2, 4, 4, 4);
     Framing.Add8WayLookup(39, 17, 3);
     Framing.Add8WayLookup(45, 16, 0);
     Framing.Add8WayLookup(47, 12, 4);
     Framing.Add8WayLookup(55, 1, 2, 2, 2, 3, 2);
     Framing.Add8WayLookup(63, 6, 2, 7, 2, 8, 2);
     Framing.Add8WayLookup(74, 1, 3, 3, 3, 5, 3);
     Framing.Add8WayLookup(75, 17, 1);
     Framing.Add8WayLookup(78, 16, 2);
     Framing.Add8WayLookup(79, 13, 3);
     Framing.Add8WayLookup(91, 4, 0, 4, 1, 4, 2);
     Framing.Add8WayLookup(95, 11, 0, 11, 1, 11, 2);
     Framing.Add8WayLookup(111, 17, 4);
     Framing.Add8WayLookup(127, 14, 3);
     Framing.Add8WayLookup(140, 0, 3, 2, 3, 4, 3);
     Framing.Add8WayLookup(141, 16, 1);
     Framing.Add8WayLookup(142, 17, 2);
     Framing.Add8WayLookup(143, 12, 3);
     Framing.Add8WayLookup(159, 16, 4);
     Framing.Add8WayLookup(173, 0, 0, 0, 1, 0, 2);
     Framing.Add8WayLookup(175, 10, 0, 10, 1, 10, 2);
     Framing.Add8WayLookup(191, 15, 3);
     Framing.Add8WayLookup(206, 1, 0, 2, 0, 3, 0);
     Framing.Add8WayLookup(207, 6, 1, 7, 1, 8, 1);
     Framing.Add8WayLookup(223, 14, 4);
     Framing.Add8WayLookup(239, 15, 4);
     Framing.Add8WayLookup(255, 1, 1, 2, 1, 3, 1);
     Framing.blockStyleLookup = new Framing.BlockStyle[] { new Framing.BlockStyle(true, true, true, true), new Framing.BlockStyle(false, true, true, true), new Framing.BlockStyle(false, true, true, false), new Framing.BlockStyle(false, true, false, true), new Framing.BlockStyle(true, false, true, false), new Framing.BlockStyle(true, false, false, true) };
     int[][] numArray = new int[][] { new int[] { 2, 4, 2 }, new int[] { 1, 3, 1 }, new int[] { 2, 2, 4 }, new int[] { 1, 1, 3 } };
     Framing.phlebasTileFrameNumberLookup = numArray;
     int[][] numArray1 = new int[][] { new int[] { 1, 2 }, new int[] { 3, 4 } };
     Framing.lazureTileFrameNumberLookup = numArray1;
     int[][] numArray2 = new int[3][];
     int[]   numArray3 = new int[] { 2, 0, 0 };
     numArray2[0] = numArray3;
     int[] numArray4 = new int[] { 0, 1, 4 };
     numArray2[1] = numArray4;
     int[] numArray5 = new int[] { 0, 3, 0 };
     numArray2[2] = numArray5;
     Framing.centerWallFrameLookup = numArray2;
     Framing.wallFrameLookup       = new Point16[20][];
     Framing.wallFrameSize         = new Point16(36, 36);
     Framing.AddWallFrameLookup(0, 9, 3, 10, 3, 11, 3, 6, 6);
     Framing.AddWallFrameLookup(1, 6, 3, 7, 3, 8, 3, 4, 6);
     Framing.AddWallFrameLookup(2, 12, 0, 12, 1, 12, 2, 12, 5);
     Framing.AddWallFrameLookup(3, 1, 4, 3, 4, 5, 4, 3, 6);
     Framing.AddWallFrameLookup(4, 9, 0, 9, 1, 9, 2, 9, 5);
     Framing.AddWallFrameLookup(5, 0, 4, 2, 4, 4, 4, 2, 6);
     Framing.AddWallFrameLookup(6, 6, 4, 7, 4, 8, 4, 5, 6);
     Framing.AddWallFrameLookup(7, 1, 2, 2, 2, 3, 2, 3, 5);
     Framing.AddWallFrameLookup(8, 6, 0, 7, 0, 8, 0, 6, 5);
     Framing.AddWallFrameLookup(9, 5, 0, 5, 1, 5, 2, 5, 5);
     Framing.AddWallFrameLookup(10, 1, 3, 3, 3, 5, 3, 1, 6);
     Framing.AddWallFrameLookup(11, 4, 0, 4, 1, 4, 2, 4, 5);
     Framing.AddWallFrameLookup(12, 0, 3, 2, 3, 4, 3, 0, 6);
     Framing.AddWallFrameLookup(13, 0, 0, 0, 1, 0, 2, 0, 5);
     Framing.AddWallFrameLookup(14, 1, 0, 2, 0, 3, 0, 1, 6);
     Framing.AddWallFrameLookup(15, 1, 1, 2, 1, 3, 1, 2, 5);
     Framing.AddWallFrameLookup(16, 6, 1, 7, 1, 8, 1, 7, 5);
     Framing.AddWallFrameLookup(17, 6, 2, 7, 2, 8, 2, 8, 5);
     Framing.AddWallFrameLookup(18, 10, 0, 10, 1, 10, 2, 10, 5);
     Framing.AddWallFrameLookup(19, 11, 0, 11, 1, 11, 2, 11, 5);
 }