private int testIJ(string [,] field, int i, int j, MapStore.Around around){ int x = i; int y = j; switch(around){ case MapStore.Around.Right: ++x; break; case MapStore.Around.Left: --x; break; case MapStore.Around.Up: ++y; break; case MapStore.Around.Down: --y; break; } if (x < 0 || x >= field.GetLength (0) || y < 0 || y >= field.GetLength (1)) { return 0; } if (field [i, j] == block_ && field [x,y] != block_) { return 0; } return (int)around; }
public void render(MapModel map, MapStore store){ }
public void render (MapModel map, MapStore store){ //return }