public class AuthDatabase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static AuthQueries |
queries |
Constructor and Description |
---|
AuthDatabase() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAccountCharacter(OID accountID,
OID characterOID)
Adds an entry into the account_character table in the Auth Database.
|
void |
alterAccountCoinAmount(OID accountID,
int delta) |
boolean |
characterDeleted(OID accountID,
OID characterOID)
Removes a deleted character from an account entry.
|
void |
checkAccountPurchases(OID characterOID,
OID accountID) |
int |
getAccountCoinAmount(OID accountID) |
java.util.HashMap<java.lang.String,java.lang.String> |
getAccountSettings(OID accountID) |
java.util.ArrayList<java.util.HashMap<java.lang.String,java.io.Serializable>> |
getServers()
Retrieves the list of servers from the Authentication Database and verifies they are still online.
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getWorldWithPlayersCharacters(int accountID)
Reads in the servers the player has characters on.
|
void |
loadServerID()
Reads in the id for this server from the world table.
|
void |
sendServerStatusUpdate(int population)
Updates the entry in the world table for this server with the current population to help the
Authentication server manage player loads.
|
boolean |
updateAccountCurrentWorld(OID accountID)
Removes a deleted character from an account entry.
|
protected static AuthQueries queries
public java.util.ArrayList<java.util.HashMap<java.lang.String,java.io.Serializable>> getServers()
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getWorldWithPlayersCharacters(int accountID)
accountID
- public void loadServerID()
public void sendServerStatusUpdate(int population)
population
- public boolean updateAccountCurrentWorld(OID accountID)
accountID
- characterOID
- characterName
- public boolean addAccountCharacter(OID accountID, OID characterOID)
accountID
- characterOID
- public boolean characterDeleted(OID accountID, OID characterOID)
accountID
- characterOID
- characterName
- public int getAccountCoinAmount(OID accountID)
public void alterAccountCoinAmount(OID accountID, int delta)
public java.util.HashMap<java.lang.String,java.lang.String> getAccountSettings(OID accountID)