Reset() public method

public Reset ( byte player ) : void
player byte
return void
示例#1
0
 public void ResetReq()
 {
     _turnNumber = 0;
     _turnStopPlayers.Clear();
     _phaseStopPlayers.Clear();
     _broadcaster.Reset(State.Instance.GetPlayer(_sender).Id);
 }
示例#2
0
 /// <summary>
 /// Reset the game state and broadcast the reset to other players
 /// </summary>
 /// <param name="playerId">The player initiating the reset</param>
 public void Reset(byte playerId)
 {
     State.TurnNumber  = 0;
     State.PhaseNumber = 0;
     State.TurnStopPlayers.Clear();
     State.PhaseStops.Clear();
     Broadcaster.Reset(playerId);
 }
示例#3
0
文件: Handler.cs 项目: totalgit/OCTGN
 public void ResetReq()
 {
     _turnNumber = 0;
     _turnStopPlayers.Clear();
     _broadcaster.Reset(_clients[_sender].Id);
 }