public bool CanMove(short x, short y) { if (x >= mnWidth || y >= mnHeight || x < 0 || y < 0) return false; return mMapGridInfo[x, y].Mask == 0; }