Some renames
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user