Lines Matching refs:locale
82 extend_spine(locale, wall_there, dx, dy)
83 int locale[3][3];
93 if (locale[ 1][0] && locale[ 1][2] && /* EW are wall/stone */
94 locale[nx][0] && locale[nx][2]) { /* diag are wall/stone */
100 if (locale[0][ 1] && locale[2][ 1] && /* NS are wall/stone */
101 locale[0][ny] && locale[2][ny]) { /* diag are wall/stone */
128 int locale[3][3]; /* rock or wall status surrounding positions */
175 locale[0][0] = iswall_or_stone(x-1,y-1);
176 locale[1][0] = iswall_or_stone( x,y-1);
177 locale[2][0] = iswall_or_stone(x+1,y-1);
179 locale[0][1] = iswall_or_stone(x-1, y);
180 locale[2][1] = iswall_or_stone(x+1, y);
182 locale[0][2] = iswall_or_stone(x-1,y+1);
183 locale[1][2] = iswall_or_stone( x,y+1);
184 locale[2][2] = iswall_or_stone(x+1,y+1);
187 bits = (extend_spine(locale, iswall(x,y-1), 0, -1) << 3)
188 | (extend_spine(locale, iswall(x,y+1), 0, 1) << 2)
189 | (extend_spine(locale, iswall(x+1,y), 1, 0) << 1)
190 | extend_spine(locale, iswall(x-1,y), -1, 0);