Microsoft SDK for Java

destroyPlayer

This method of the DirectPlay2 Class deletes a player from the session, removes any pending messages destined for that player from the message queue, and removes the player from any groups to which that player belonged. The player ID will not be reused during the current session.

Syntax

public void destroyPlayer(int playerId);

Parameters

playerId The ID of the player that is being removed from the session.

Remarks

This method will generate a DPSYS_DELETEPLAYERFROMGROUP message for each group that the player belongs to, and then generate a DPSYS_DESTROYPLAYERORGROUP system message.

See Also

createPlayer, DPSYS_DESTROYPLAYERORGROUP

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