|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.agis.database.AuthDatabase
public class AuthDatabase
Manages Server and Account information retrieval and storage for the Authentication Database. The main purpose is to let the Authentication server know this server is still running and how many players are currently connected.
Field Summary | |
---|---|
protected static AuthQueries |
queries
|
Constructor Summary | |
---|---|
AuthDatabase()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static AuthQueries queries
Constructor Detail |
---|
public AuthDatabase()
Method Detail |
---|
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 void checkAccountPurchases(OID characterOID, OID accountID)
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)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |