/// <summary> /// 公開情報を作成 /// </summary> /// <returns></returns> private PublicStatus MakePublicStatus() { var publicStatus = new PublicStatus { field = fieldStack.FirstOrDefault(), phase = Phase.Trading, turn = 0, hasFlowed = false, isElevenBack = false, isKakumei = false, isShibari = false, playerStatuses = new List <PublicPlayerStatus>() }; foreach (var player in players) { var playerStatus = new PublicPlayerStatus { id = player.id, seat = player.seat, roleRank = player.roleRank, cardCount = player.hand.Count, hasPassed = player.hasPassed }; publicStatus.playerStatuses.Add(playerStatus); } return(publicStatus); }
public PublicPlayerStatus Clone() { var clone = new PublicPlayerStatus(); clone.id = id; clone.seat = seat; clone.roleRank = roleRank; clone.cardCount = cardCount; clone.hasPassed = hasPassed; return(clone); }