public class MOBloader
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected DBConnector |
DB |
|
protected Room |
emptyRoom |
|
protected java.util.Comparator<java.lang.String[]> |
itemComparator |
|
protected Filterer<java.lang.String> |
normalInventoryFilter |
|
protected Filterer<Pair<java.lang.String,java.lang.String>> |
normalMoneyFilter |
Constructor | Description |
---|---|
MOBloader(DBConnector newDB) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
addFollowerDependent(PhysicalAgent P,
PairList<PhysicalAgent,java.lang.String> list,
java.lang.String parent) |
|
protected Item |
DBBuildItemFromData(java.lang.String[] data) |
|
Clan.MemberRecord |
DBClanMember(java.lang.String clan,
java.lang.String memberName) |
|
java.util.List<Clan.MemberRecord> |
DBClanMembers(java.lang.String clan) |
|
void |
DBCreateAccount(PlayerAccount account) |
|
void |
DBCreateCharacter(MOB mob) |
|
void |
DBDeleteAccount(PlayerAccount account) |
|
void |
DBDeleteCharOnly(java.lang.String mobName) |
|
java.util.List<java.lang.String> |
DBExpiredCharNameSearch(java.util.Set<java.lang.String> skipNames) |
|
Pair<java.lang.String,java.lang.Boolean> |
DBFetchEmailData(java.lang.String name) |
|
protected java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] |
DBFindPrideWinners(int topThisMany,
short scanCPUPercent,
boolean players) |
|
java.lang.String |
DBGetAccountNameFromPlayer(java.lang.String player) |
|
Clan.MemberRecord |
DBGetClanMember(java.lang.String clan,
java.lang.String name) |
|
java.lang.String |
DBLeigeSearch(java.lang.String login) |
|
java.util.List<PlayerAccount> |
DBListAccounts(java.lang.String mask) |
|
PlayerStats |
DBLoadPlayerStats(java.lang.String name) |
|
void |
DBNameChange(java.lang.String oldName,
java.lang.String newName) |
|
java.lang.String |
DBPlayerEmailSearch(java.lang.String email) |
|
int |
DBRaceCheck(java.lang.String raceID) |
|
MOB |
DBRead(java.lang.String name) |
|
PlayerAccount |
DBReadAccount(java.lang.String login) |
|
void |
DBReadFollowers(MOB mob,
boolean bringToLife) |
|
int |
DBReadPlayerBitmap(java.lang.String name) |
|
PairList<java.lang.String,java.lang.Integer> |
DBReadPlayerClans(java.lang.String name) |
|
java.util.List<java.lang.String[]> |
DBReadPlayerItemData(java.lang.String name,
Filterer<Pair<java.lang.String,java.lang.String>> classLocFilter,
Filterer<java.lang.String> textFilter) |
|
java.lang.Object |
DBReadPlayerValue(java.lang.String name,
PlayerLibrary.PlayerCode code) |
|
MOB |
DBReadUserOnly(java.lang.String name,
java.lang.String[] locationID) |
|
java.util.List<MOB> |
DBScanFollowers(java.lang.String name) |
|
java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] |
DBScanPrideAccountWinners(int topThisMany,
short scanCPUPercent) |
|
java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] |
DBScanPridePlayerWinners(int topThisMany,
short scanCPUPercent) |
|
PairList<java.lang.String,java.lang.Long> |
DBSearchPFIL(java.lang.String match) |
|
void |
DBSetPlayerValue(java.lang.String name,
PlayerLibrary.PlayerCode code,
java.lang.Object value) |
|
void |
DBUpdate(MOB mob) |
|
void |
DBUpdateAbilities(MOB mob) |
|
void |
DBUpdateAccount(PlayerAccount account) |
|
void |
DBUpdateClanDonates(java.lang.String clan,
java.lang.String name,
double adjGold,
int adjXP,
double adjDues) |
|
void |
DBUpdateClanKills(java.lang.String clan,
java.lang.String name,
int adjMobKills,
int adjPlayerKills) |
|
void |
DBUpdateClanMembership(java.lang.String name,
java.lang.String clan,
int role) |
|
void |
DBUpdateEmail(MOB mob) |
|
void |
DBUpdateFollowers(MOB mob) |
|
void |
DBUpdateItems(MOB mob) |
|
void |
DBUpdateJustMOB(MOB mob) |
|
void |
DBUpdateJustPlayerStats(MOB mob) |
|
void |
DBUpdatePassword(java.lang.String name,
java.lang.String password) |
|
PlayerLibrary.ThinnerPlayer |
DBUserSearch(java.lang.String login) |
|
protected DBConnector.DBPreparedBatchEntry |
doBulkInsert(java.lang.StringBuilder str,
java.util.List<java.lang.String> clobs,
java.lang.String sql,
java.lang.String clob) |
|
protected java.lang.String |
getDBItemUpdateString(MOB mob,
Item thisItem) |
|
java.util.List<PlayerLibrary.ThinPlayer> |
getExtendedUserList() |
|
protected java.lang.String |
getShortID(Environmental E) |
|
PlayerLibrary.ThinPlayer |
getThinUser(java.lang.String name) |
|
java.util.List<java.lang.String> |
getUserList() |
|
PlayerAccount |
MakeAccount(java.lang.String username,
java.sql.ResultSet R) |
|
protected PlayerLibrary.ThinPlayer |
parseThinUser(java.sql.ResultSet R) |
|
java.lang.String |
queryCMACCTStr(java.lang.String name,
java.lang.String fieldName) |
|
java.lang.Long |
queryCMCHARLong(java.lang.String name,
java.lang.String fieldName) |
|
java.lang.String |
queryCMCHARStr(java.lang.String name,
java.lang.String fieldName) |
|
void |
updateCMCHARLong(java.lang.String name,
java.lang.String fieldName,
java.lang.Object value) |
|
void |
updateCMCHARString(java.lang.String name,
java.lang.String fieldName,
java.lang.Object value) |
|
void |
updatePlayerStartRooms(java.lang.String oldID,
java.lang.String newID) |
|
java.util.List<PlayerLibrary.ThinPlayer> |
vassals(java.lang.String liegeName) |
|
java.util.List<PlayerLibrary.ThinPlayer> |
worshippers(java.lang.String deityID) |
protected DBConnector DB
protected Room emptyRoom
protected java.util.Comparator<java.lang.String[]> itemComparator
protected final Filterer<java.lang.String> normalInventoryFilter
public MOBloader(DBConnector newDB)
public MOB DBReadUserOnly(java.lang.String name, java.lang.String[] locationID)
public java.lang.String queryCMCHARStr(java.lang.String name, java.lang.String fieldName)
public java.lang.String queryCMACCTStr(java.lang.String name, java.lang.String fieldName)
public java.lang.Long queryCMCHARLong(java.lang.String name, java.lang.String fieldName)
public java.lang.Object DBReadPlayerValue(java.lang.String name, PlayerLibrary.PlayerCode code)
public void updatePlayerStartRooms(java.lang.String oldID, java.lang.String newID)
public void updateCMCHARString(java.lang.String name, java.lang.String fieldName, java.lang.Object value)
public void updateCMCHARLong(java.lang.String name, java.lang.String fieldName, java.lang.Object value)
public void DBSetPlayerValue(java.lang.String name, PlayerLibrary.PlayerCode code, java.lang.Object value)
public PairList<java.lang.String,java.lang.Integer> DBReadPlayerClans(java.lang.String name)
public int DBReadPlayerBitmap(java.lang.String name)
protected Item DBBuildItemFromData(java.lang.String[] data)
public java.util.List<java.lang.String[]> DBReadPlayerItemData(java.lang.String name, Filterer<Pair<java.lang.String,java.lang.String>> classLocFilter, Filterer<java.lang.String> textFilter)
public MOB DBRead(java.lang.String name)
public java.util.List<java.lang.String> getUserList()
protected PlayerLibrary.ThinPlayer parseThinUser(java.sql.ResultSet R)
public PlayerLibrary.ThinPlayer getThinUser(java.lang.String name)
public java.util.List<PlayerLibrary.ThinPlayer> getExtendedUserList()
public java.util.List<PlayerLibrary.ThinPlayer> vassals(java.lang.String liegeName)
public java.util.List<PlayerLibrary.ThinPlayer> worshippers(java.lang.String deityID)
public java.util.List<MOB> DBScanFollowers(java.lang.String name)
public void DBReadFollowers(MOB mob, boolean bringToLife)
public void DBUpdateEmail(MOB mob)
public Clan.MemberRecord DBGetClanMember(java.lang.String clan, java.lang.String name)
public java.util.List<Clan.MemberRecord> DBClanMembers(java.lang.String clan)
public Clan.MemberRecord DBClanMember(java.lang.String clan, java.lang.String memberName)
public void DBUpdateClanMembership(java.lang.String name, java.lang.String clan, int role)
public void DBUpdateClanKills(java.lang.String clan, java.lang.String name, int adjMobKills, int adjPlayerKills)
public void DBUpdateClanDonates(java.lang.String clan, java.lang.String name, double adjGold, int adjXP, double adjDues)
public void DBUpdate(MOB mob)
public void DBUpdatePassword(java.lang.String name, java.lang.String password)
public void DBUpdateJustPlayerStats(MOB mob)
public void DBUpdateJustMOB(MOB mob)
protected java.lang.String getShortID(Environmental E)
protected DBConnector.DBPreparedBatchEntry doBulkInsert(java.lang.StringBuilder str, java.util.List<java.lang.String> clobs, java.lang.String sql, java.lang.String clob)
public void DBUpdateItems(MOB mob)
protected java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] DBFindPrideWinners(int topThisMany, short scanCPUPercent, boolean players)
public java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] DBScanPridePlayerWinners(int topThisMany, short scanCPUPercent)
public java.util.List<Pair<java.lang.String,java.lang.Integer>>[][] DBScanPrideAccountWinners(int topThisMany, short scanCPUPercent)
protected void addFollowerDependent(PhysicalAgent P, PairList<PhysicalAgent,java.lang.String> list, java.lang.String parent)
public int DBRaceCheck(java.lang.String raceID)
public void DBUpdateFollowers(MOB mob)
public void DBNameChange(java.lang.String oldName, java.lang.String newName)
public void DBDeleteCharOnly(java.lang.String mobName)
public void DBUpdateAbilities(MOB mob)
public void DBCreateCharacter(MOB mob)
public void DBUpdateAccount(PlayerAccount account)
public void DBDeleteAccount(PlayerAccount account)
public void DBCreateAccount(PlayerAccount account)
public PlayerAccount MakeAccount(java.lang.String username, java.sql.ResultSet R) throws java.sql.SQLException
java.sql.SQLException
public PlayerAccount DBReadAccount(java.lang.String login)
public java.util.List<PlayerAccount> DBListAccounts(java.lang.String mask)
public java.util.List<java.lang.String> DBExpiredCharNameSearch(java.util.Set<java.lang.String> skipNames)
public PlayerLibrary.ThinnerPlayer DBUserSearch(java.lang.String login)
public java.lang.String DBLeigeSearch(java.lang.String login)
public Pair<java.lang.String,java.lang.Boolean> DBFetchEmailData(java.lang.String name)
public java.lang.String DBGetAccountNameFromPlayer(java.lang.String player)
public java.lang.String DBPlayerEmailSearch(java.lang.String email)
public PairList<java.lang.String,java.lang.Long> DBSearchPFIL(java.lang.String match)
public PlayerStats DBLoadPlayerStats(java.lang.String name)