Class PlayerPrinter

java.lang.Object
org.xxdc.oss.example.PlayerPrinter

public class PlayerPrinter extends Object
Provides a utility to generate a player identifier string for a given PlayerNode.
  • Constructor Details

    • PlayerPrinter

      public PlayerPrinter()
  • Method Details

    • getPlayerIdentifier

      public String getPlayerIdentifier(PlayerNode player)
      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