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.
-
WhoInfo(PlayerInfo)
- Constructs a WhoInfo packet from a PlayerInfo packet, stripping
the password in the process.
-
WhoInfo()
- Constructs an empty packet ready to be read in from an inputstream.
-
setInfo(PlayerInfo)
- Resets the info in the who packet based on the PlayerInfo packet.
-
toString()
- Return a string suitable for display to the end user.
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.
WhoInfo
public WhoInfo()
- Constructs an empty packet ready to be read in from an inputstream.
setInfo
public void setInfo(PlayerInfo p)
- Resets the info in the who packet based on the PlayerInfo packet.
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