Пример #1
0
 private void ts_map_init()
 {
     map = new ts_map_t();
     int x, y, initval;
     //ts_map_pixel_t * ptr ;
     //ushort ptr;
     initval = (TS_OBSTACLE + TS_NO_OBSTACLE) / 2;
     for (y = 0; y < TS_MAP_SIZE; y++)
     {
         for (x = 0; x < TS_MAP_SIZE; x++)
         {
             map.map[y * TS_MAP_SIZE + x] = (ushort)initval;
         }
     }
 }
Пример #2
0
        private void ts_map_init()
        {
            map = new ts_map_t();
            int x, y, initval;

            //ts_map_pixel_t * ptr ;
            //ushort ptr;
            initval = (TS_OBSTACLE + TS_NO_OBSTACLE) / 2;
            for (y = 0; y < TS_MAP_SIZE; y++)
            {
                for (x = 0; x < TS_MAP_SIZE; x++)
                {
                    map.map[y * TS_MAP_SIZE + x] = (ushort)initval;
                }
            }
        }