fate.network
Class PlayerInfo


java.lang.Object

  |

  +--fate.network.PlayerInfo


public class PlayerInfo
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Stores player info, such as user ID, username, password, email, etc.

See Also:
Serialized Form

Field Summary
 int id
           
 int idPlayer
          Maps to the Player object in the Fate World.
 java.lang.String password
           
 PlayerState state
          Keeps track of the player's current state in the virtual world
 java.lang.String username
           
 
Constructor Summary
PlayerInfo(java.lang.String username, java.lang.String password)
          Creates new PlayerInfo
 
Method Summary
 int compareTo(java.lang.Object playerInfo)
           
 Player getPlayer()
          Returns the Player object associated with this user account
 java.lang.String toString()
          Convert to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

username


public java.lang.String username

password


public java.lang.String password

id


public int id

idPlayer


public int idPlayer
Maps to the Player object in the Fate World.

state


public PlayerState state
Keeps track of the player's current state in the virtual world
Constructor Detail

PlayerInfo


public PlayerInfo(java.lang.String username,
                  java.lang.String password)
Creates new PlayerInfo
Method Detail

getPlayer


public Player getPlayer()
Returns the Player object associated with this user account

toString


public java.lang.String toString()
Convert to a string
Overrides:
toString in class java.lang.Object

compareTo


public int compareTo(java.lang.Object playerInfo)
Specified by:
compareTo in interface java.lang.Comparable