Package games.stendhal.client.gui.login
Class Profile
java.lang.Object
games.stendhal.client.gui.login.Profile
User login profile.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Profile
createFromCommandline(String[] args)
create a profile based on command line arguments -u: username -p: password -c: character name (defaults to username) -h: hostname -P: port -S: pre authentication seedboolean
getHost()
int
getPort()
getSeed()
getUser()
int
hashCode()
boolean
isValid()
checks whether all required attributes are definedvoid
setCharacter(String character)
void
void
setPassword(String password)
void
setPort(int port)
void
void
toString()
Get the label string.
-
Constructor Details
-
Profile
public Profile()
-
-
Method Details
-
getHost
-
getPassword
-
getPort
public int getPort() -
getUser
-
getCharacter
-
getSeed
-
createFromCommandline
create a profile based on command line arguments- -u: username
- -p: password
- -c: character name (defaults to username)
- -h: hostname
- -P: port
- -S: pre authentication seed
- Parameters:
args
- command line arguments- Returns:
- profile
-
isValid
public boolean isValid()checks whether all required attributes are defined- Returns:
- true if all required attributes are defined, false if some are missing.
-
setHost
-
setPassword
-
setPort
public void setPort(int port) -
setUser
-
setCharacter
-
setSeed
-
equals
-
hashCode
public int hashCode() -
toString
Get the label string. This label is used for the profile selection list.
-