Microsoft SDK for Java

destroyGroup

This method of the DirectPlay2 Class deletes a group from the session. The ID belonging to this group will not be reused during the current session.

Syntax

public void destroyGroup(int groupId);

Parameters

groupId The ID of the group being removed from the game.

Remarks

It is not necessary to empty a group before deleting it. The individual players belonging to the group are not destroyed. This method will generate a DPSYS_DELETEPLAYERFROMGROUP for each player in the group, and then generate a DPSYS_DESTROYPLAYERORGROUP system message.

See Also

createGroup, DPMSG_DESTROYPALYERORGROUP

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