/* * 재검토 * - 패턴 데이터 검사 * - 결과는 매치와 매칭의 종류(new) * - bug: 22 & match3 */ private void FindMatchingTiles(int row, int col, MatchInfo findinfo) { Tile baseTile = _gamepanel.tiles[row, col]; if (baseTile.IsChecked) { return; } else { baseTile.IsChecked = true; } // 검사 기준을 먼저 둔다 findinfo.SetCreationPos(row, col); FindMatch(row, col, findinfo, FindDirection.Horizon); FindMatch(row, col, findinfo, FindDirection.Vertical); if (findinfo.isMatch) { AddCreatetionMatchInfo(new MatchInfo(findinfo)); } // 레퍼런스 게임 참조 if (findinfo.isMatch == false || findinfo.matchType == MatchType.Normal) { IsMatch2by2(row, col); } findinfo.Reset(); }
public void ResetSearch() { _gamepanel.ResetFindPropertyForTiles(); findinfo.Reset(); matchInfos.Clear(); }