Edytuj

Udostępnij za pośrednictwem


GKGameModel_Extensions Class

Definition

Extension methods to the IGKGameModel interface to support all the methods from the GKGameModel protocol.

public static class GKGameModel_Extensions
type GKGameModel_Extensions = class
Inheritance
GKGameModel_Extensions

Remarks

The extension methods for IGKGameModel allow developers to treat instances of the interface as having all the optional methods of the original GKGameModel protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

GetScore(IGKGameModel, IGKGameModelPlayer)

Gets the score for the specified player.

IsLoss(IGKGameModel, IGKGameModelPlayer)

Returns a Boolean value that tells whether the player lost.

IsWin(IGKGameModel, IGKGameModelPlayer)

Returns a Boolean value that tells whether the player won.

UnapplyGameModelUpdate(IGKGameModel, IGKGameModelUpdate)

Removes the specified changes from the game's state.

Applies to