123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <title>UAS2: cDatabase Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <link href="doxygen.css" rel="stylesheet" type="text/css"/>
- </head>
- <body>
- <!-- Generated by Doxygen 1.6.2 -->
- <div class="navigation" id="top">
- <div class="tabs">
- <ul>
- <li><a href="main.html"><span>Main Page</span></a></li>
- <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
- <li><a href="files.html"><span>Files</span></a></li>
- </ul>
- </div>
- <div class="tabs">
- <ul>
- <li><a href="annotated.html"><span>Class List</span></a></li>
- <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
- <li><a href="functions.html"><span>Class Members</span></a></li>
- </ul>
- </div>
- </div>
- <div class="contents">
- <h1>cDatabase Class Reference</h1><!-- doxytag: class="cDatabase" -->
- <p><a href="classc_database-members.html">List of all members.</a></p>
- <table border="0" cellpadding="0" cellspacing="0">
- <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a28e6f9bb76889a1b5a84acb8e9670cef">AddToInventoryDB</a> (DWORD dwAvatarGUID, <a class="el" href="classc_object.html">cObject</a> *pcObj)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#aaebd59281d93e6ad63014bd1c2653121">RemoveFromInventoryDB</a> (DWORD dwAvatarGUID, DWORD dwObjectGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#aad99ea2171588f78c51f97a148a2467e">AddSpell</a> (DWORD dwAvatarGUID, int SpellCount, int SpellID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a5fd805d2028347fd2c289208c99b7fae">AddSpellToTab</a> (DWORD dwAvatarGUID, int SpellID, int SpellCount, int TabID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a65109daec2fa8fda2569d153c33cd9b2"></a><!-- doxytag: member="cDatabase::AddGeneralItems" ref="a65109daec2fa8fda2569d153c33cd9b2" args="(DWORD dwAvatarGUID)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddGeneralItems</b> (DWORD dwAvatarGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaa5d58620c3aa3b68969a19563a7c692"></a><!-- doxytag: member="cDatabase::AddRaceItemsAluvian" ref="aaa5d58620c3aa3b68969a19563a7c692" args="(DWORD dwAvatarGUID)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddRaceItemsAluvian</b> (DWORD dwAvatarGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a35883d7436a5cc671fc3422fb4f53c3a"></a><!-- doxytag: member="cDatabase::AddRaceItemsGharundim" ref="a35883d7436a5cc671fc3422fb4f53c3a" args="(DWORD dwAvatarGUID)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddRaceItemsGharundim</b> (DWORD dwAvatarGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a450c6c74f9dae207c2ea86008230b4ea"></a><!-- doxytag: member="cDatabase::AddRaceItemsSho" ref="a450c6c74f9dae207c2ea86008230b4ea" args="(DWORD dwAvatarGUID)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddRaceItemsSho</b> (DWORD dwAvatarGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a63d0e18a18c5f1326c0cef5943538b9d"></a><!-- doxytag: member="cDatabase::AddCasterItems" ref="a63d0e18a18c5f1326c0cef5943538b9d" args="(DWORD dwAvatarGUID)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddCasterItems</b> (DWORD dwAvatarGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91ceb713699136cf3e23dddd09096a27"></a><!-- doxytag: member="cDatabase::AddFoci" ref="a91ceb713699136cf3e23dddd09096a27" args="(DWORD dwAvatarGUID, CreateCharacterMessage &ccm)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddFoci</b> (DWORD dwAvatarGUID, <a class="el" href="struct_create_character_message.html">CreateCharacterMessage</a> &ccm)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a41f60018874714b4d0d4ca1356c844e1"></a><!-- doxytag: member="cDatabase::AddProfessionItems" ref="a41f60018874714b4d0d4ca1356c844e1" args="(DWORD dwAvatarGUID, CreateCharacterMessage &ccm)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddProfessionItems</b> (DWORD dwAvatarGUID, <a class="el" href="struct_create_character_message.html">CreateCharacterMessage</a> &ccm)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7654e7e59542c86f119ee8c51f3298c9"></a><!-- doxytag: member="cDatabase::SaveCharacterFlags" ref="a7654e7e59542c86f119ee8c51f3298c9" args="(DWORD dwAvatarGUID, DWORD Flags)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>SaveCharacterFlags</b> (DWORD dwAvatarGUID, DWORD Flags)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static float </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a76c81cecb4a67596e8a793f735d17cfc">Hex2Float</a> (DWORD hexValue)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static DWORD </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a6eab03e92a2ff5f17fb78a7ef88c33f2">Float2Hex</a> (float floatValue)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac049024118fd774ae7ed65ca8f669bec"></a><!-- doxytag: member="cDatabase::ReturnClass" ref="ac049024118fd774ae7ed65ca8f669bec" args="(DWORD dwClass)" -->
- static char * </td><td class="memItemRight" valign="bottom"><b>ReturnClass</b> (DWORD dwClass)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5c6bb7d15116d91b2cb96af913cf8a7e"></a><!-- doxytag: member="cDatabase::ReturnGender" ref="a5c6bb7d15116d91b2cb96af913cf8a7e" args="(DWORD dwGender)" -->
- static char * </td><td class="memItemRight" valign="bottom"><b>ReturnGender</b> (DWORD dwGender)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8e28f0a29d3ea87a3d8d06627eb3f486"></a><!-- doxytag: member="cDatabase::ReturnRace" ref="a8e28f0a29d3ea87a3d8d06627eb3f486" args="(DWORD dwRace)" -->
- static char * </td><td class="memItemRight" valign="bottom"><b>ReturnRace</b> (DWORD dwRace)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a40d6422a940bb27b59bd962391d226a7"></a><!-- doxytag: member="cDatabase::ReturnNamePrefix" ref="a40d6422a940bb27b59bd962391d226a7" args="(BYTE bLevel)" -->
- static char * </td><td class="memItemRight" valign="bottom"><b>ReturnNamePrefix</b> (BYTE bLevel)</td></tr>
- <tr><td colspan="2"><div class="groupHeader">Database Initialization and Loading</div></td></tr>
- <tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp188865b9af4971b04b55c3850dd968a6"></a> Functions to initialize or load objects using database information </p>
- </div></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a86d984a2a06e50372e31deb4a719d39c">Load</a> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a88534965abfb9b920c392c3bba7feed9"></a><!-- doxytag: member="cDatabase::Unload" ref="a88534965abfb9b920c392c3bba7feed9" args="()" -->
- static void </td><td class="memItemRight" valign="bottom"><b>Unload</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adfa3927a6e4714baf82c942b58ab2ab5"></a><!-- doxytag: member="cDatabase::GetError" ref="adfa3927a6e4714baf82c942b58ab2ab5" args="(SQLSMALLINT type, SQLHANDLE *hptr)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>GetError</b> (SQLSMALLINT type, SQLHANDLE *hptr)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51439ceab280bd6314b898161ec73400"></a><!-- doxytag: member="cDatabase::InitializeSQLEnvironment" ref="a51439ceab280bd6314b898161ec73400" args="()" -->
- static int </td><td class="memItemRight" valign="bottom"><b>InitializeSQLEnvironment</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75216f7521386fd1aa507d271f5020f7"></a><!-- doxytag: member="cDatabase::FreeSQLEnvironment" ref="a75216f7521386fd1aa507d271f5020f7" args="()" -->
- static int </td><td class="memItemRight" valign="bottom"><b>FreeSQLEnvironment</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7be1da498d03beccb94483738aa0dc0"></a><!-- doxytag: member="cDatabase::InitializeMaxModel" ref="ab7be1da498d03beccb94483738aa0dc0" args="()" -->
- static void </td><td class="memItemRight" valign="bottom"><b>InitializeMaxModel</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5ac4312c96a0331110021c3fb9297fc"></a><!-- doxytag: member="cDatabase::LoadModelList" ref="ab5ac4312c96a0331110021c3fb9297fc" args="()" -->
- static void </td><td class="memItemRight" valign="bottom"><b>LoadModelList</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a971d5e17c7bf5072a01e36b4c34c7920">InitializeAvatarGUIDs</a> (DWORD &dwGUIDCycle_Avatar)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a1ec143c8df2037255b516e90f949502f">InitializeObjectGUIDs</a> (DWORD &dwGUIDCycle_Object)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#ad391744378d124de24494a89a83c23ea">InitializeAllegIDs</a> (DWORD &dwIDAllegiance)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#ab793d77fb6edfb2842182e89606104e0">VerifyAccount</a> (char *szUserName, char *szPassword, DWORD &dwAccountID, BOOL fCreate)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a3bea15a901555ad5de25cedc8d14fe14">CreateAccount</a> (char *szUserName, char *szPassword, DWORD &dwAccountID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#ab084360e7e8ef9151f637c71d7adeff2">LoadAvatarList</a> (DWORD dwAccountID, std::vector< <a class="el" href="structc_avatar_list.html">cAvatarList</a> > &AvatarList)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#afb7edb8a6435462956f24aa9135e71b1">CreateAvatar</a> (DWORD dwAccountID, <a class="el" href="struct_create_character_message.html">CreateCharacterMessage</a> &ccm, DWORD &dwNewAvatarGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a0c3c93587037123bf2765d91f133d5a5">DeleteAvatar</a> (DWORD dwAvatarGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a7fdc554648e537f5e35bdbaa4175f1b0">LoadAvatar</a> (<a class="el" href="classc_avatar.html">cAvatar</a> *pcAvatar)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_database.html#a34968d28bf83bf9e65187458a5e3f8a2">LoadDungeonList</a> (char strName, std::vector< <a class="el" href="structc_dungeon_list.html">cDungeonList</a> > &DungeonList)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a89555851e5616c04f33bb380728c2c38"></a><!-- doxytag: member="cDatabase::SetupDB" ref="a89555851e5616c04f33bb380728c2c38" args="(int DBType, char *szDBIP, char *szDBNAME, char *szDBUSER, char *szDBPASSWORD)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>SetupDB</b> (int DBType, char *szDBIP, char *szDBNAME, char *szDBUSER, char *szDBPASSWORD)</td></tr>
- <tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6955ae9b5bcfdb731a973f003fb57f9c"></a><!-- doxytag: member="cDatabase::m_hEnv" ref="a6955ae9b5bcfdb731a973f003fb57f9c" args="" -->
- static HENV </td><td class="memItemRight" valign="bottom"><b>m_hEnv</b> = 0</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7dd18be57cd2715df209c884a698424a"></a><!-- doxytag: member="cDatabase::m_hDBC" ref="a7dd18be57cd2715df209c884a698424a" args="" -->
- static HDBC </td><td class="memItemRight" valign="bottom"><b>m_hDBC</b> = 0</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a849436ad665d16916d4b4917eb1ca2fe"></a><!-- doxytag: member="cDatabase::m_hStmt" ref="a849436ad665d16916d4b4917eb1ca2fe" args="" -->
- static HSTMT </td><td class="memItemRight" valign="bottom"><b>m_hStmt</b> = 0</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a99de3630e5a4dbb586e2ce85fef4a19a"></a><!-- doxytag: member="cDatabase::wMaxModel" ref="a99de3630e5a4dbb586e2ce85fef4a19a" args="" -->
- static int </td><td class="memItemRight" valign="bottom"><b>wMaxModel</b> = 0</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ab3e7c08e8e2369bac44078900e896a"></a><!-- doxytag: member="cDatabase::szModelName" ref="a4ab3e7c08e8e2369bac44078900e896a" args="[1000][5]" -->
- static char </td><td class="memItemRight" valign="bottom"><b>szModelName</b> [1000][5]</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aee976150876d86772fbef958801ef59e"></a><!-- doxytag: member="cDatabase::szModelNumber" ref="aee976150876d86772fbef958801ef59e" args="[1000][3]" -->
- static char </td><td class="memItemRight" valign="bottom"><b>szModelNumber</b> [1000][3]</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a101733f0dd254d9578e0e2cbbf5cf41f"></a><!-- doxytag: member="cDatabase::szDBIP" ref="a101733f0dd254d9578e0e2cbbf5cf41f" args="[16]" -->
- static char </td><td class="memItemRight" valign="bottom"><b>szDBIP</b> [16]</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac9fcaaa99c555bc30cf9adc1a5a3b4be"></a><!-- doxytag: member="cDatabase::szDBNAME" ref="ac9fcaaa99c555bc30cf9adc1a5a3b4be" args="[20]" -->
- static char </td><td class="memItemRight" valign="bottom"><b>szDBNAME</b> [20]</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abc06d45ef022837c25a63157c49f9226"></a><!-- doxytag: member="cDatabase::szDBUSER" ref="abc06d45ef022837c25a63157c49f9226" args="[20]" -->
- static char </td><td class="memItemRight" valign="bottom"><b>szDBUSER</b> [20]</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c65f9d9121f2fc4e60bc0eb0cd65493"></a><!-- doxytag: member="cDatabase::szDBPASSWORD" ref="a4c65f9d9121f2fc4e60bc0eb0cd65493" args="[20]" -->
- static char </td><td class="memItemRight" valign="bottom"><b>szDBPASSWORD</b> [20]</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e0e6601c87597a52b335e43dc963b4b"></a><!-- doxytag: member="cDatabase::intDBType" ref="a7e0e6601c87597a52b335e43dc963b4b" args="" -->
- static int </td><td class="memItemRight" valign="bottom"><b>intDBType</b></td></tr>
- </table>
- <hr/><h2>Member Function Documentation</h2>
- <a class="anchor" id="aad99ea2171588f78c51f97a148a2467e"></a><!-- doxytag: member="cDatabase::AddSpell" ref="aad99ea2171588f78c51f97a148a2467e" args="(DWORD dwAvatarGUID, int SpellCount, int SpellID)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::AddSpell </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwAvatarGUID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"> <em>SpellCount</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"> <em>SpellID</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Adds spells to the avatars spell book.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>dwAvatarGUID</em> </td><td>= The Avatar GUID </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>SpellCount</em> </td><td>= Total spell count for this Avatar </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>SpellID</em> </td><td>= The ID of the spell to add</td></tr>
- </table>
- </dd>
- </dl>
- <p>Author: k109 </p>
- </div>
- </div>
- <a class="anchor" id="a5fd805d2028347fd2c289208c99b7fae"></a><!-- doxytag: member="cDatabase::AddSpellToTab" ref="a5fd805d2028347fd2c289208c99b7fae" args="(DWORD dwAvatarGUID, int SpellID, int SpellCount, int TabID)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::AddSpellToTab </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwAvatarGUID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"> <em>SpellID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"> <em>SpellCount</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">int </td>
- <td class="paramname"> <em>TabID</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Adds spells to the avatar's spell tab.</p>
- <p>dwAvatarGUID = The Avatar GUID SpellID = The ID of the spell to add SpellCount = Total spell count for this Avatar TabID = ID of the Spell Tab</p>
- <p>Author: k109 </p>
- </div>
- </div>
- <a class="anchor" id="a28e6f9bb76889a1b5a84acb8e9670cef"></a><!-- doxytag: member="cDatabase::AddToInventoryDB" ref="a28e6f9bb76889a1b5a84acb8e9670cef" args="(DWORD dwAvatarGUID, cObject *pcObj)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::AddToInventoryDB </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwAvatarGUID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="classc_object.html">cObject</a> * </td>
- <td class="paramname"> <em>pcObj</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Adds items to the avatar's inventory table </p>
- </div>
- </div>
- <a class="anchor" id="a3bea15a901555ad5de25cedc8d14fe14"></a><!-- doxytag: member="cDatabase::CreateAccount" ref="a3bea15a901555ad5de25cedc8d14fe14" args="(char *szUserName, char *szPassword, DWORD &dwAccountID)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cDatabase::CreateAccount </td>
- <td>(</td>
- <td class="paramtype">char * </td>
- <td class="paramname"> <em>szUserName</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">char * </td>
- <td class="paramname"> <em>szPassword</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD & </td>
- <td class="paramname"> <em>dwAccountID</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Creates a new account. A given account may create several characters on a given server. </p>
- </div>
- </div>
- <a class="anchor" id="afb7edb8a6435462956f24aa9135e71b1"></a><!-- doxytag: member="cDatabase::CreateAvatar" ref="afb7edb8a6435462956f24aa9135e71b1" args="(DWORD dwAccountID, CreateCharacterMessage &ccm, DWORD &dwNewAvatarGUID)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cDatabase::CreateAvatar </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwAccountID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="struct_create_character_message.html">CreateCharacterMessage</a> & </td>
- <td class="paramname"> <em>ccm</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD & </td>
- <td class="paramname"> <em>dwNewAvatarGUID</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Creates the database information for a newly created avatar.</p>
- <p>The following tables are populated: avatar, avatar_skills, avatar_clothing_palettes, avatar_location, avatar_spells. </p>
- <p><p>Determine New Avatar Clothing </p>
- </p>
- </div>
- </div>
- <a class="anchor" id="a0c3c93587037123bf2765d91f133d5a5"></a><!-- doxytag: member="cDatabase::DeleteAvatar" ref="a0c3c93587037123bf2765d91f133d5a5" args="(DWORD dwAvatarGUID)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::DeleteAvatar </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwAvatarGUID</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Deletes the database information on a particular avatar.</p>
- <p>Entries are deleted from the following tables: avatar, avatar_skills, avatar_location, avatar_spells, avatar_vector_spellbook, avatar_vector_spelltabs, avatar_vector_equipped, avatar_clothing_palettes, items_instance_inventory, avatar_comp_quests. </p>
- </div>
- </div>
- <a class="anchor" id="a6eab03e92a2ff5f17fb78a7ef88c33f2"></a><!-- doxytag: member="cDatabase::Float2Hex" ref="a6eab03e92a2ff5f17fb78a7ef88c33f2" args="(float floatValue)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">DWORD cDatabase::Float2Hex </td>
- <td>(</td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>floatValue</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Converts floating point numbers to 32-bit hexadecimal values.</p>
- <p>Expects float input. Returns DWORD. </p>
- </div>
- </div>
- <a class="anchor" id="a76c81cecb4a67596e8a793f735d17cfc"></a><!-- doxytag: member="cDatabase::Hex2Float" ref="a76c81cecb4a67596e8a793f735d17cfc" args="(DWORD hexValue)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">float cDatabase::Hex2Float </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>hexValue</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Converts 32-bit hexadecimal values to floating point numbers.</p>
- <p>Expects hexadecimal input. Returns a float value. </p>
- </div>
- </div>
- <a class="anchor" id="ad391744378d124de24494a89a83c23ea"></a><!-- doxytag: member="cDatabase::InitializeAllegIDs" ref="ad391744378d124de24494a89a83c23ea" args="(DWORD &dwIDAllegiance)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::InitializeAllegIDs </td>
- <td>(</td>
- <td class="paramtype">DWORD & </td>
- <td class="paramname"> <em>dwIDAllegiance</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Initializes the starting allegiance ID value. </p>
- </div>
- </div>
- <a class="anchor" id="a971d5e17c7bf5072a01e36b4c34c7920"></a><!-- doxytag: member="cDatabase::InitializeAvatarGUIDs" ref="a971d5e17c7bf5072a01e36b4c34c7920" args="(DWORD &dwGUIDCycle_Avatar)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::InitializeAvatarGUIDs </td>
- <td>(</td>
- <td class="paramtype">DWORD & </td>
- <td class="paramname"> <em>dwGUIDCycle_Avatar</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Initializes the starting avatar GUID value.</p>
- <p>As GUIDs must be unique and persistent, saved avatars are consulted for their GUID values. Database tables consulted: avatar. </p>
- </div>
- </div>
- <a class="anchor" id="a1ec143c8df2037255b516e90f949502f"></a><!-- doxytag: member="cDatabase::InitializeObjectGUIDs" ref="a1ec143c8df2037255b516e90f949502f" args="(DWORD &dwGUIDCycle_Object)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::InitializeObjectGUIDs </td>
- <td>(</td>
- <td class="paramtype">DWORD & </td>
- <td class="paramname"> <em>dwGUIDCycle_Object</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Initializes the starting item GUID value.</p>
- <p>As GUIDs must be unique and persistent, saved items are consulted for their GUID values. Database tables consulted: items_instance_inventory and items_instance_ground. </p>
- </div>
- </div>
- <a class="anchor" id="a86d984a2a06e50372e31deb4a719d39c"></a><!-- doxytag: member="cDatabase::Load" ref="a86d984a2a06e50372e31deb4a719d39c" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::Load </td>
- <td>(</td>
- <td class="paramname"></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Loads the proper database driver based upon the selected database type. </p>
- </div>
- </div>
- <a class="anchor" id="a7fdc554648e537f5e35bdbaa4175f1b0"></a><!-- doxytag: member="cDatabase::LoadAvatar" ref="a7fdc554648e537f5e35bdbaa4175f1b0" args="(cAvatar *pcAvatar)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::LoadAvatar </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_avatar.html">cAvatar</a> * </td>
- <td class="paramname"> <em>pcAvatar</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Loads the database information on a particular avatar during login.</p>
- <p>Database tables consulted: avatar, avatar_skills, avatar_location, houses_covenants, avatar_vector_spellbook, avatar_vector_spelltab, items_instance_inventory. </p>
- </div>
- </div>
- <a class="anchor" id="ab084360e7e8ef9151f637c71d7adeff2"></a><!-- doxytag: member="cDatabase::LoadAvatarList" ref="ab084360e7e8ef9151f637c71d7adeff2" args="(DWORD dwAccountID, std::vector< cAvatarList > &AvatarList)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::LoadAvatarList </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwAccountID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">std::vector< <a class="el" href="structc_avatar_list.html">cAvatarList</a> > & </td>
- <td class="paramname"> <em>AvatarList</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Loads the list of avatars for a given account. Used to send the client a list of its current characters. </p>
- </div>
- </div>
- <a class="anchor" id="a34968d28bf83bf9e65187458a5e3f8a2"></a><!-- doxytag: member="cDatabase::LoadDungeonList" ref="a34968d28bf83bf9e65187458a5e3f8a2" args="(char strName, std::vector< cDungeonList > &DungeonList)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cDatabase::LoadDungeonList </td>
- <td>(</td>
- <td class="paramtype">char </td>
- <td class="paramname"> <em>strName</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">std::vector< <a class="el" href="structc_dungeon_list.html">cDungeonList</a> > & </td>
- <td class="paramname"> <em>DungeonList</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Populates a list with the information on the name and location of dungeons. </p>
- </div>
- </div>
- <a class="anchor" id="aaebd59281d93e6ad63014bd1c2653121"></a><!-- doxytag: member="cDatabase::RemoveFromInventoryDB" ref="aaebd59281d93e6ad63014bd1c2653121" args="(DWORD dwAvatarGUID, DWORD dwObjectGUID)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cDatabase::RemoveFromInventoryDB </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwAvatarGUID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwObjectGUID</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Removes items from the avatar's inventory table </p>
- </div>
- </div>
- <a class="anchor" id="ab793d77fb6edfb2842182e89606104e0"></a><!-- doxytag: member="cDatabase::VerifyAccount" ref="ab793d77fb6edfb2842182e89606104e0" args="(char *szUserName, char *szPassword, DWORD &dwAccountID, BOOL fCreate)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cDatabase::VerifyAccount </td>
- <td>(</td>
- <td class="paramtype">char * </td>
- <td class="paramname"> <em>szUserName</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">char * </td>
- <td class="paramname"> <em>szPassword</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD & </td>
- <td class="paramname"> <em>dwAccountID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BOOL </td>
- <td class="paramname"> <em>fCreate</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Verifies the acount login information. </p>
- </div>
- </div>
- <hr/>The documentation for this class was generated from the following files:<ul>
- <li>E:/uas2/Server/<a class="el" href="_data_base_8h_source.html">DataBase.h</a></li>
- <li>E:/uas2/Server/<a class="el" href="_database_8cpp.html">Database.cpp</a></li>
- </ul>
- </div>
- <hr size="1"/><address style="text-align: right;"><small>Generated by
- <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address>
- </body>
- </html>
|