Inherits from NSObject
Conforms to NSCopying
Declared in NPTournamentContainers.h

Overview

NPTournamentPlayer represents a player, and contains information about them.

Tasks

Properties

playerId

A unique and persistent identifier for the player in Nextpeer.

@property (nonatomic, readonly, strong) NSString *playerId

Declared In

NPTournamentContainers.h

playerImage

The player’s avatar image. This is a cached object, and may return nil.

@property (nonatomic, readonly, assign) UIImage *playerImage

Declared In

NPTournamentContainers.h

playerImageUrl

The player’s avatar image URL.

@property (nonatomic, readonly, strong) NSString *playerImageUrl

Declared In

NPTournamentContainers.h

playerIsBot

A flag specifying if the player is a bot (a recording of a previous game) or a real player.

@property (nonatomic, readonly, assign) BOOL playerIsBot

Declared In

NPTournamentContainers.h

playerName

The player name.

@property (nonatomic, readonly, strong) NSString *playerName

Declared In

NPTournamentContainers.h

Instance Methods

isCurrentUser

Checks if the receiver represents the current user.

- (BOOL)isCurrentUser

Return Value

YES if the receiving tournament player object represents the current user, NO otherwise.

Declared In

NPTournamentContainers.h