Package org.rspeer.game.script.component
Class GameAccount
- java.lang.Object
-
- org.rspeer.game.script.component.ScriptComponent
-
- org.rspeer.game.script.component.GameAccount
-
public class GameAccount extends ScriptComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GameAccount.Details
For jagex accounts, username is the character id and password is the session id.static class
GameAccount.Preferences
static class
GameAccount.Profile
-
Constructor Summary
Constructors Constructor Description GameAccount(GameAccount.Details details, GameAccount.Preferences preferences)
GameAccount(GameAccount.Details details, GameAccount.Preferences preferences, GameAccount.Profile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GameAccount.Details
getDetails()
GameAccount.Preferences
getPreferences()
GameAccount.Profile
getProfile()
void
initialize(Script script)
boolean
isJagexAccount()
static GameAccount
predefined()
static GameAccount
raw(String username, String password)
static GameAccount
raw(String username, String password, String pin)
String
toString()
boolean
validate()
-
-
-
Constructor Detail
-
GameAccount
public GameAccount(GameAccount.Details details, GameAccount.Preferences preferences, GameAccount.Profile profile)
-
GameAccount
public GameAccount(GameAccount.Details details, GameAccount.Preferences preferences)
-
-
Method Detail
-
predefined
public static GameAccount predefined()
-
raw
public static GameAccount raw(String username, String password)
-
raw
public static GameAccount raw(String username, String password, String pin)
-
validate
public boolean validate()
-
getDetails
public GameAccount.Details getDetails()
-
getPreferences
public GameAccount.Preferences getPreferences()
-
getProfile
public GameAccount.Profile getProfile()
-
initialize
public void initialize(Script script)
- Specified by:
initialize
in classScriptComponent
-
isJagexAccount
public boolean isJagexAccount()
-
-