Class PlayerPrinter
java.lang.Object
org.xxdc.oss.example.PlayerPrinter
Provides a utility to generate a player identifier string for a given
PlayerNode.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPlayerIdentifier(PlayerNode player) Generates a player identifier string for the given `PlayerNode` instance.
-
Constructor Details
-
PlayerPrinter
public PlayerPrinter()
-
-
Method Details
-
getPlayerIdentifier
Generates a player identifier string for the given `PlayerNode` instance. The identifier includes information about the player type (local or remote), the player marker, the Java version, the operating system, and the host IP address and name.- Parameters:
player- the `PlayerNode` instance to generate the identifier for- Returns:
- a string representing the player identifier
-