peerIsPlaying

GameSpy SDK

peerIsPlaying

Returns PEERTrue if the local client is playing.

PEERBool peerIsPlaying(
PEER peer );
RoutineRequired HeaderDistribution
peerIsPlaying<peer.h>SDKZIP

Return Value

This function returns PEERTrue if the local client is playing.  PEERFalse otherwise.

Parameters

peer
[in] Initialized peer object.

Remarks

The peerIsPlaying checks to see if the local player is playing. This will be true if the player successfully launched a game with peerStartGame(), was in a staging room and got the peerGameStartedCallback(), or was marked as playing with peerStartPlaying(). This function can only be called if a title is set and the peer object is connected.

Section Reference: Gamespy Peer SDK