Package games.stendhal.client.gui.login
Class Profile
java.lang.Object
games.stendhal.client.gui.login.Profile
User login profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProfilecreateFromCommandline(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 seedbooleangetHost()intgetPort()getSeed()getUser()inthashCode()booleanisValid()checks whether all required attributes are definedvoidsetCharacter(String character) voidvoidsetPassword(String password) voidsetPort(int port) voidvoidtoString()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.
-