au.com.solidsoftware.multimahjong.shared
Class MiniPlayer

java.lang.Object
  |
  +--au.com.solidsoftware.multimahjong.shared.MiniPlayer

public class MiniPlayer
extends java.lang.Object
implements java.io.Serializable

MiniPlayer is a minimal representation of a player used for transmitting between the MMC and MMS via RMI. It is just a data structure and as such, it just contains a constructor to initialise the data and public fields to store the data.

Author:
Michael Hart
See Also:
Serialized Form

Field Summary
 int iconID
          The ID of the icon of the player.
 java.lang.String ownerName
          The name of the player.
 
Constructor Summary
MiniPlayer(java.lang.String name, int iconID)
          Initialises the name and icon ID of the player.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ownerName

public java.lang.String ownerName
The name of the player. To save on overhead due to serialization, this field is publicly accessible.

iconID

public int iconID
The ID of the icon of the player. To save on overhead due to serialization, this field is publicly accessible.
Constructor Detail

MiniPlayer

public MiniPlayer(java.lang.String name,
                  int iconID)
Initialises the name and icon ID of the player.
Parameters:
name - the name of the player
name - the icon ID of the player