Esempio n. 1
0
		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;
		}
Esempio n. 2
0
		public void render(MapModel map, MapStore store){

		}
Esempio n. 3
0
		public void render (MapModel map, MapStore store){
			//return 
		}