23 #ifndef __PSCHARACTERLOADER_H__    24 #define __PSCHARACTERLOADER_H__   183     PID 
FindCharacterID(
const char* character_name, 
bool excludeNPCs=
true);
   204     bool AccountOwner(
const char* characterName, AccountID accountID);
   210                               unsigned int skill_z, 
unsigned int skill_y, 
unsigned int skill_rank);
   215     bool ClearCharacterAdvantages(PID pid);
   216     bool SaveCharacterAdvantage(PID pid, 
unsigned int advantage_id);
   217     bool ClearCharacterSkills(PID pid);
   218     bool ClearCharacterTraits(PID pid);
   219     bool SaveCharacterSkill(PID pid,
unsigned int skill_id,
   220                             unsigned int skill_z, 
unsigned int skill_y, 
unsigned int skill_rank);
   221     bool SaveCharacterTrait(PID pid, 
unsigned int trait_id);
   264     virtual void Trigger();  
 unsigned int InsertNewCharacterData(const char **fieldnames, psStringArray &fieldvalues)
 
This class controls loading and saving Characters and Character specific data to and from an iDatabas...
 
psCharacterLoader()
Construct a new psCharacterLoader, optionally specifying an iDatabase interface to use for database c...
 
psCharacter ** LoadAllNPCCharacterData(psSectorInfo *sector, int &count)
 
psCharacterList * LoadCharacterList(AccountID accountid)
Loads the names of characters for a given account for charpick screen on login. 
 
bool SaveCharacterData(psCharacter *chardata, gemActor *actor, bool charRecordOnly=false)
Saves character data to the database. 
 
PID FindCharacterID(const char *character_name, bool excludeNPCs=true)
This function finds a character's ID given a character name. 
 
Any semi-autonomous object, either a player or an NPC. 
 
This is an event that schedules regular saving of character data. 
 
bool DeleteCharacterData(PID pid, csString &error)
Deletes character data to the database. 
 
bool Initialize()
Initializes settings related to this class. 
 
psCharacter * QuickLoadCharacterData(PID pid, bool noInventory)
Load just enough of the character data to know what it looks like (for selection screen). 
 
psCharacter * LoadCharacterData(PID pid, bool forceReload)
Loads data for a character from the database and constructs and fills a new psCharacter object with t...
 
~psCharacterLoader()
Destructor. 
 
bool AccountOwner(const char *characterName, AccountID accountID)
Checks to see if the character name is owned by a particular ID. 
 
This huge class stores all the properties of any object a player can have in the game. 
 
bool UpdateCharacterSkill(PID pid, unsigned int skill_id, unsigned int skill_z, unsigned int skill_y, unsigned int skill_rank)
Update the skill in the database. 
 
Holds a list of characters associated to one account. 
 
Contains information about sectors from the server perspective. 
 
A slightly improved version of csStringArray, sporting the handy FormatPush method. 
 
All scheduled events must inherit from this class. 
 
bool NewCharacterData(AccountID accountid, psCharacter *chardata)
Creates a new character entry to store the provided character data. 
 
This class generically allows objects to be notified when a gemObject is removed. ...
 
bool NewNPCCharacterData(AccountID accountid, psCharacter *chardata)
 
This class embodies item instances in the game.