Class games.Battle.shared.comm.WhoInfo
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class games.Battle.shared.comm.WhoInfo

java.lang.Object
   |
   +----games.Battle.shared.comm.BattlePacket
           |
           +----games.Battle.shared.comm.PlayerInfo
                   |
                   +----games.Battle.shared.comm.WhoInfo

public class WhoInfo
extends PlayerInfo
WhoInfo is a specialized PlayerInfo packet that avoids setting the password. It provides a convenient way to tell each player about other players without compromising the security of the passwords.

Constructor Index

 o WhoInfo(PlayerInfo)
Constructs a WhoInfo packet from a PlayerInfo packet, stripping the password in the process.
 o WhoInfo()
Constructs an empty packet ready to be read in from an inputstream.

Method Index

 o setInfo(PlayerInfo)
Resets the info in the who packet based on the PlayerInfo packet.
 o toString()
Return a string suitable for display to the end user.

Constructors

 o WhoInfo
  public WhoInfo(PlayerInfo p)
Constructs a WhoInfo packet from a PlayerInfo packet, stripping the password in the process.
Parameters:
p - is the player info packet.
 o WhoInfo
  public WhoInfo()
Constructs an empty packet ready to be read in from an inputstream.

Methods

 o setInfo
  public void setInfo(PlayerInfo p)
Resets the info in the who packet based on the PlayerInfo packet.
 o toString
  public String toString()
Return a string suitable for display to the end user.
Overrides:
toString in class PlayerInfo

All Packages  Class Hierarchy  This Package  Previous  Next  Index