Instance Property

activePlayer

The player whose turn it currently is in the game.

Required.

Declaration

var activePlayer: GKGameModelPlayer? { get }

Discussion

This player is responsible for the next move. GameplayKit assumes that the next call to the apply(_:) method will perform a move on behalf of this player.

See Also

Keeping Track of Players

var players: [GKGameModelPlayer]?

The players currently in the game.

Required.