Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
NetSprocket Functions / Managing Player Information


NSpPlayer_GetInfo

You can use the NSpPlayer_GetInfo function to get information about a player.

OSStatus NSpPlayer_GetInfo (
	NSpGameReference inGame,
	NSpPlayerID inPlayerID,
	NSpPlayerInfoPtr *outInfo);
inGame
An opaque reference to your game object.
inPlayerID
The ID of the player you want information about.
outInfo
A pointer to NSpPlayerInfoPtr which contains a pointer to the player's information data structure you have requested.
function result
A result code of noErr, or a NetSprocket or Open Transport result code.
DESCRIPTION
When you are done with the player's information, you should pass the NSpPlayerInfoPtr back to NetSprocket via NSpPlayer_ReleaseInfo.

NetSprocket returns an error if the player's information could not be obtained.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help