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
|
Constructor Summary |
PlayerInfo(java.lang.String username,
java.lang.String password)
Creates new PlayerInfo |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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
PlayerInfo
public PlayerInfo(java.lang.String username,
java.lang.String password)
- Creates new PlayerInfo
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