public static void copy(SuteHai dest, Hai src) { Hai.copy(dest, src); dest._isNaki = false; dest._isReach = false; dest._isTedashi = false; }
public static void copy(SuteHai dest, SuteHai src) { Hai.copy(dest, src); dest._isNaki = src._isNaki; dest._isReach = src._isReach; dest._isTedashi = src._isTedashi; }
// 振听. public bool isFuriten() { List <Hai> machiHais; if (MahjongAgent.tryGetMachiHais(Tehai, out machiHais)) { // check hou SuteHai[] suteHais = Hou.getSuteHais(); for (int i = 0; i < suteHais.Length; i++) { SuteHai suteHaiTemp = suteHais[i]; for (int j = 0; j < machiHais.Count; j++) { if (suteHaiTemp.ID == machiHais[j].ID) { return(true); } } } // check sutehai suteHais = MahjongAgent.getSuteHaiList(); int playerSuteHaisCount = MahjongAgent.getPlayerSuteHaisCount(JiKaze); for ( ; playerSuteHaisCount < suteHais.Length - 1; playerSuteHaisCount++) { SuteHai suteHaiTemp = suteHais[playerSuteHaisCount]; for (int j = 0; j < machiHais.Count; j++) { if (suteHaiTemp.ID == machiHais[j].ID) { return(true); } } } } return(false); }
public SuteHai(SuteHai src) : base() { copy(this, src); }