Reset() public method

public Reset ( byte player ) : void
player byte
return void
Exemplo n.º 1
0
 public void ResetReq()
 {
     _turnNumber = 0;
     _turnStopPlayers.Clear();
     _phaseStopPlayers.Clear();
     _broadcaster.Reset(State.Instance.GetPlayer(_sender).Id);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public void ResetReq()
 {
     _turnNumber = 0;
     _turnStopPlayers.Clear();
     _broadcaster.Reset(_clients[_sender].Id);
 }