void _BroadCastStep(PlayTypes.SevenPokerStep step, bool Board = true, bool Player = true) { // 게임 보드 셋팅 GetBoard().ToSevenPoker().SetStep_Board(step); // 플레이어들 셋팅 foreach (PlayerBase player in PlayerList) { assert.set(player is SevenPokerPlayer); if (player.IsPlay()) { SevenPokerPlayer spPlayer = player as SevenPokerPlayer; spPlayer.SetStep_Player(step); } } }
// OpenCardIndex 는 ThrowCardIndex 버리고 나서의 인덱스 계산 public void Recv_UserChoiceComplete(int PlayerIndex, int ThrowCardIndex, int OpenCardIndex) { SevenPokerPlayer player = GameSingleton.GetPlay().GetPlayer(PlayerIndex).ToSevenPoker(); if (player.IsMyPlayer() == true) { // 버림 계산 후에 player.RemoveCard_ByIndex(ThrowCardIndex); // 뒤로갈 카드 계산 player.CardMoveToTail(OpenCardIndex); GameSingleton.GetPlay().GetBoard().ToSevenPoker().SetStep_Board(PlayTypes.SevenPokerStep.ChoiceCardSelect); player.SetStep_Player(PlayTypes.SevenPokerStep.ChoiceCardSelect); } else { player.RemoveCard_ByIndex(0); player.SetStep_Player(PlayTypes.SevenPokerStep.ChoiceCardSelect); } }