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.
public void destroyPlayer(int playerId);
playerId | The ID of the player that is being removed from the session. |
This method will generate a DPSYS_DELETEPLAYERFROMGROUP message for each group that the player belongs to, and then generate a DPSYS_DESTROYPLAYERORGROUP system message.
createPlayer, DPSYS_DESTROYPLAYERORGROUP