Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 4 - NetSprocket / NetSprocket Reference
Data Structures


Player Enumeration Structure

You use the player enumeration structure to maintain a list of all the players currently in the game. It contains a count of the players, followed by pointers to each of the playerInfo structures. The player enumeration structure is defined by the NSpPlayerEnumeration data type.

typedef struct NSpPlayerEnumeration {
   UInt32                     count;
   NSpPlayerInfoPtr           playerInfo[kVariableLengthArray];
} NSpPlayerEnumeration, *NSpPlayerEnumerationPtr;
Field descriptions

count
The number of players (and player information structures) listed in NSpPlayerEnumeration.
playerInfo
An array of pointers to player information structures for each player in the game.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996