Microsoft SDK for Java

setPlayerName

This method of the DirectPlay2 Class sets the name of the player after it has been changed. A DPSYS_SETPLAYERORGROUPNAME system message will be sent to all other players notifying them of the change, unless DPSESSION_NODATAMESSAGES is set in the session description.

Syntax

public void setPlayerName(int playerId, String friendlyName, String formalName, int flags);

Parameters

playerId The player ID for which data is being sent.
formalName The formal name for the player. Use null if the player has no formal name.
friendlyName The friendly name for the player. Use null if the player has no friendly name.
flags If this parameter is set to 0, the name will be propagated to all the remote systems using nonguaranteed message passing.

See Also

DPMSG_SETPLAYERORGROUPNAME, getPlayerFormalName, getPlayerFriendlyName, send, com.ms.directX.DirectXConstants.DPSET_GUARANTEED

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