Some renames

This commit is contained in:
DTieman
2024-05-18 14:16:30 +02:00
parent 90c9b0031c
commit f5c2b937b0
3 changed files with 14 additions and 13 deletions

View File

@@ -39,14 +39,14 @@ public class TurnManager
* Change the turn to another player.
* If no player is given, the next player in the current direction is chosen.
* </summary>
* <param name="nextPlayer">The player to change the turn to. Defaults to the next player in the current direction.</param>
* <param name="playerayer">The player to change the turn to. Defaults to the next player in the current direction.</param>
*/
public void ChangeTurn(Player? nextPlayer = null)
public void ChangeTurnTo(Player? player = null, PlayerState nextPlayerState = PlayerState.TURN)
{
var player = nextPlayer ?? GetNextPlayer();
var nextPlayer = player ?? GetNextPlayer();
CurrentPlayer.State = PlayerState.WAIT;
player.State = PlayerState.TURN;
CurrentPlayer = player;
nextPlayer.State = nextPlayerState;
CurrentPlayer = nextPlayer;
}
/**