Microsoft SDK for Java

addPlayerToGroup

This method of the DirectPlay2 Class adds an existing player to an existing group.

Syntax

public void addPlayerToGroup(int groupId, int playerId);

Parameters

groupId The ID of the group to be augmented.
playerId The ID of the player to be added to the group.

Remarks

Groups cannot be added to other groups, but players can be members of multiple groups. A DPSYS_ADDDIRECTPLAYERTOGROUP system message will be generated and sent to all the other players.

See Also

createGroup, deletePlayerFromGroup, DPSYS_ADDDIRECTPLAYERTOGROUP

© 1999 Microsoft Corporation. All rights reserved. Terms of use.