123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446 |
- <!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: cWorldManager 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>cWorldManager Class Reference</h1><!-- doxytag: class="cWorldManager" -->
- <p><a href="classc_world_manager-members.html">List of all members.</a></p>
- <table border="0" cellpadding="0" cellspacing="0">
- <tr><td colspan="2"><h2>Public Types</h2></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9cf7aaf04b7edbe63fcc24bd5d586986"></a><!-- doxytag: member="cWorldManager::iterConfirmPanel_lst" ref="a9cf7aaf04b7edbe63fcc24bd5d586986" args="" -->
- typedef std::vector<br class="typebreak"/>
- < <a class="el" href="struct_confirm_panel.html">ConfirmPanel</a> >::iterator </td><td class="memItemRight" valign="bottom"><b>iterConfirmPanel_lst</b></td></tr>
- <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_world_manager.html#a2c4212dddeef4e17889a4937eee77851">Load</a> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a76f6acd85b778459039cc8e5cc3b7430"></a><!-- doxytag: member="cWorldManager::Unload" ref="a76f6acd85b778459039cc8e5cc3b7430" args="()" -->
- static void </td><td class="memItemRight" valign="bottom"><b>Unload</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#a6607263e24e164efaa63234f40f5c4ed">RemoveClient</a> (<a class="el" href="classc_client.html">cClient</a> *pcClient, BOOL fRemoveAvatar=TRUE, BOOL fDeleteAvatar=TRUE)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#af7cc618bf14e5ab18312cabb4f8294c0">AddClient</a> (<a class="el" href="classc_client.html">cClient</a> *pcClient, BOOL fSpawnAvatar=TRUE)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#a5d6cfb40c6c889f5ac3cdb0d77d40935">MoveAvatar</a> (<a class="el" href="classc_client.html">cClient</a> *pcClient, <a class="el" href="structc_location.html">cLocation</a> &NewLoc, WORD wAnim=0, float flPlaySpeed=1.0f)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#ad3b154b6ed42f879f7e4e1c440aa5aa1">TeleportAvatar</a> (<a class="el" href="classc_client.html">cClient</a> *pcClient, <a class="el" href="structc_location.html">cLocation</a> &NewLoc)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#a6ffa3d575f2be7e720dbec3b122a5f91">RemoveObject</a> (<a class="el" href="classc_object.html">cObject</a> *pcObject, BOOL fRemoveObject=TRUE, BOOL fDeleteObject=TRUE)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#ab2cdf93394f6104e931e8e2a2800aa44">AddObject</a> (<a class="el" href="classc_object.html">cObject</a> *pcObject, BOOL fSpawnObject=TRUE)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#aa7039258fb19b775cef89a2c88724588">MoveAddObject</a> (<a class="el" href="classc_object.html">cObject</a> *pcObject)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static BOOL </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#a7cf2e70b1ec6a850eca4527c14c6ce64">MoveRemObject</a> (<a class="el" href="classc_object.html">cObject</a> *pcObject)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#ad9a32e160ccc14e570213d415c3d1c9e">RemoveAllObjects</a> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5566a7a050695599eeac0ba38f2781d"></a><!-- doxytag: member="cWorldManager::SendToAllInLandBlock" ref="ab5566a7a050695599eeac0ba38f2781d" args="(cLocation &Loc, cMessage &cmPacket, WORD wGroup)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>SendToAllInLandBlock</b> (<a class="el" href="structc_location.html">cLocation</a> &Loc, <a class="el" href="classc_message.html">cMessage</a> &cmPacket, WORD wGroup)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9f9eb0fcc95113a39237cb7c820a53e9"></a><!-- doxytag: member="cWorldManager::SendToAllInFocus" ref="a9f9eb0fcc95113a39237cb7c820a53e9" args="(cLocation &Loc, cMessage &cmPacket, WORD wGroup)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>SendToAllInFocus</b> (<a class="el" href="structc_location.html">cLocation</a> &Loc, <a class="el" href="classc_message.html">cMessage</a> &cmPacket, WORD wGroup)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a422fca67687a7fd823d6900f31b8c688"></a><!-- doxytag: member="cWorldManager::SendToAllWithin" ref="a422fca67687a7fd823d6900f31b8c688" args="(BYTE bDistance, cLocation &Loc, cMessage &cmPacket, WORD wGroup)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>SendToAllWithin</b> (BYTE bDistance, <a class="el" href="structc_location.html">cLocation</a> &Loc, <a class="el" href="classc_message.html">cMessage</a> &cmPacket, WORD wGroup)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a483316ab5d823c9a127e3485747da159"></a><!-- doxytag: member="cWorldManager::SendToOthersInLandBlock" ref="a483316ab5d823c9a127e3485747da159" args="(cLocation &Loc, cClient *pcClient, cMessage &cmPacket, WORD wGroup)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>SendToOthersInLandBlock</b> (<a class="el" href="structc_location.html">cLocation</a> &Loc, <a class="el" href="classc_client.html">cClient</a> *pcClient, <a class="el" href="classc_message.html">cMessage</a> &cmPacket, WORD wGroup)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8f326759eb96be2b65716b86f103ab1e"></a><!-- doxytag: member="cWorldManager::SendToOthersInFocus" ref="a8f326759eb96be2b65716b86f103ab1e" args="(cLocation &Loc, cClient *pcClient, cMessage &cmPacket, WORD wGroup)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>SendToOthersInFocus</b> (<a class="el" href="structc_location.html">cLocation</a> &Loc, <a class="el" href="classc_client.html">cClient</a> *pcClient, <a class="el" href="classc_message.html">cMessage</a> &cmPacket, WORD wGroup)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a30cfb73ead3f9c95e630e166bcff851a"></a><!-- doxytag: member="cWorldManager::SendToOthersWithin" ref="a30cfb73ead3f9c95e630e166bcff851a" args="(BYTE bDistance, cLocation &Loc, cClient *pcClient, cMessage &cmPacket, WORD wGroup)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>SendToOthersWithin</b> (BYTE bDistance, <a class="el" href="structc_location.html">cLocation</a> &Loc, <a class="el" href="classc_client.html">cClient</a> *pcClient, <a class="el" href="classc_message.html">cMessage</a> &cmPacket, WORD wGroup)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8968df0d8a2ae884efa2387e6e88526d"></a><!-- doxytag: member="cWorldManager::GetCollisionPortal" ref="a8968df0d8a2ae884efa2387e6e88526d" args="(cLocation OldLoc, cLocation NewLoc)" -->
- static <a class="el" href="classc_object.html">cObject</a> * </td><td class="memItemRight" valign="bottom"><b>GetCollisionPortal</b> (<a class="el" href="structc_location.html">cLocation</a> OldLoc, <a class="el" href="structc_location.html">cLocation</a> NewLoc)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a30c6727e7311fcc682e94619f8ed6190"></a><!-- doxytag: member="cWorldManager::GetCollisionMonster" ref="a30c6727e7311fcc682e94619f8ed6190" args="(DWORD SpellGUID, cLocation SpellLoc)" -->
- static <a class="el" href="classc_object.html">cObject</a> * </td><td class="memItemRight" valign="bottom"><b>GetCollisionMonster</b> (DWORD SpellGUID, <a class="el" href="structc_location.html">cLocation</a> SpellLoc)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a58311ce524102a10692e712bc4b8eb13"></a><!-- doxytag: member="cWorldManager::FindObject" ref="a58311ce524102a10692e712bc4b8eb13" args="(DWORD dwGUID)" -->
- static <a class="el" href="classc_object.html">cObject</a> * </td><td class="memItemRight" valign="bottom"><b>FindObject</b> (DWORD dwGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa8adefac39be8f195aa915f9098856e9"></a><!-- doxytag: member="cWorldManager::FindCorpse" ref="aa8adefac39be8f195aa915f9098856e9" args="(DWORD dwGUID)" -->
- static <a class="el" href="classc_corpse.html">cCorpse</a> * </td><td class="memItemRight" valign="bottom"><b>FindCorpse</b> (DWORD dwGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09b48454af04defee6f839933d239e7b"></a><!-- doxytag: member="cWorldManager::FindAvatar" ref="a09b48454af04defee6f839933d239e7b" args="(DWORD dwGUID)" -->
- static <a class="el" href="classc_avatar.html">cAvatar</a> * </td><td class="memItemRight" valign="bottom"><b>FindAvatar</b> (DWORD dwGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3052729f98a0150d58355424dfd94665"></a><!-- doxytag: member="cWorldManager::FindNPC" ref="a3052729f98a0150d58355424dfd94665" args="(DWORD dwGUID)" -->
- static <a class="el" href="classc_n_p_c.html">cNPC</a> * </td><td class="memItemRight" valign="bottom"><b>FindNPC</b> (DWORD dwGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a273f31aada81eb8504415fb9562f8b18"></a><!-- doxytag: member="cWorldManager::NewGUID_Avatar" ref="a273f31aada81eb8504415fb9562f8b18" args="()" -->
- static UINT </td><td class="memItemRight" valign="bottom"><b>NewGUID_Avatar</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51f81b9e163996b39055b26c1dca2696"></a><!-- doxytag: member="cWorldManager::NewGUID_Object" ref="a51f81b9e163996b39055b26c1dca2696" args="()" -->
- static UINT </td><td class="memItemRight" valign="bottom"><b>NewGUID_Object</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80603e3963c58f68a6d6c446c1019373"></a><!-- doxytag: member="cWorldManager::AddUnusedAvatarGUID" ref="a80603e3963c58f68a6d6c446c1019373" args="(DWORD dwGUID)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddUnusedAvatarGUID</b> (DWORD dwGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5ab8a2b191c674532a681d66739fae9"></a><!-- doxytag: member="cWorldManager::AddUnusedObjectGUID" ref="ac5ab8a2b191c674532a681d66739fae9" args="(DWORD dwGUID)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddUnusedObjectGUID</b> (DWORD dwGUID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a52ae259c95db874e9ce1724fbd784547"></a><!-- doxytag: member="cWorldManager::GetUnusedAvatarGUID" ref="a52ae259c95db874e9ce1724fbd784547" args="()" -->
- static DWORD </td><td class="memItemRight" valign="bottom"><b>GetUnusedAvatarGUID</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a989f63d69c604f345e0d42b31807dc6c"></a><!-- doxytag: member="cWorldManager::GetUnusedObjectGUID" ref="a989f63d69c604f345e0d42b31807dc6c" args="()" -->
- static DWORD </td><td class="memItemRight" valign="bottom"><b>GetUnusedObjectGUID</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acc3a7e7dd05bc0ea7d0c6c0d085e9076"></a><!-- doxytag: member="cWorldManager::CurrentConfirmSeq" ref="acc3a7e7dd05bc0ea7d0c6c0d085e9076" args="()" -->
- static DWORD </td><td class="memItemRight" valign="bottom"><b>CurrentConfirmSeq</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15adf051943aad30742ea5642d935f1d"></a><!-- doxytag: member="cWorldManager::NewConfirmSeq" ref="a15adf051943aad30742ea5642d935f1d" args="()" -->
- static DWORD </td><td class="memItemRight" valign="bottom"><b>NewConfirmSeq</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac6bbb352594f0e424772799ad137e82b"></a><!-- doxytag: member="cWorldManager::AddPendingConfirm" ref="ac6bbb352594f0e424772799ad137e82b" args="(DWORD sequence, DWORD type, std::string szText, DWORD senderGUID, DWORD receiptGUID=NULL)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>AddPendingConfirm</b> (DWORD sequence, DWORD type, std::string szText, DWORD senderGUID, DWORD receiptGUID=NULL)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1bc51b4ac2cc4e76433d707663ee8265"></a><!-- doxytag: member="cWorldManager::FindPendingConfirm" ref="a1bc51b4ac2cc4e76433d707663ee8265" args="(DWORD dwSeq, DWORD dwReply)" -->
- static void </td><td class="memItemRight" valign="bottom"><b>FindPendingConfirm</b> (DWORD dwSeq, DWORD dwReply)</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="a2e50ebcc6307db613e31bc9b03c8c3b3"></a><!-- doxytag: member="cWorldManager::g_szAccessFile" ref="a2e50ebcc6307db613e31bc9b03c8c3b3" args="[MAX_PATH+20]" -->
- static char </td><td class="memItemRight" valign="bottom"><b>g_szAccessFile</b> [MAX_PATH+20]</td></tr>
- <tr><td colspan="2"><h2>Friends</h2></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af9cf39fc065c0c9c6040c8d5849cbdce"></a><!-- doxytag: member="cWorldManager::cMasterServer" ref="af9cf39fc065c0c9c6040c8d5849cbdce" args="" -->
- class </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_world_manager.html#af9cf39fc065c0c9c6040c8d5849cbdce">cMasterServer</a></td></tr>
- </table>
- <hr/><h2>Member Function Documentation</h2>
- <a class="anchor" id="af7cc618bf14e5ab18312cabb4f8294c0"></a><!-- doxytag: member="cWorldManager::AddClient" ref="af7cc618bf14e5ab18312cabb4f8294c0" args="(cClient *pcClient, BOOL fSpawnAvatar=TRUE)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cWorldManager::AddClient </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_client.html">cClient</a> * </td>
- <td class="paramname"> <em>pcClient</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BOOL </td>
- <td class="paramname"> <em>fSpawnAvatar</em> = <code>TRUE</code></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>Handles the processing for when a client is added to the server.</p>
- <p>This function is called whenever an avatar is added to the server.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>*pcClient</em> </td><td>- A pointer to the client whose avatar is being added. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>fSpawnAvatar</em> </td><td>- A value representing whether the avatar should be spawned. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="ab2cdf93394f6104e931e8e2a2800aa44"></a><!-- doxytag: member="cWorldManager::AddObject" ref="ab2cdf93394f6104e931e8e2a2800aa44" args="(cObject *pcObject, BOOL fSpawnObject=TRUE)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cWorldManager::AddObject </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_object.html">cObject</a> * </td>
- <td class="paramname"> <em>pcObject</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BOOL </td>
- <td class="paramname"> <em>fSpawnObject</em> = <code>TRUE</code></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 an object to object list of the landblock in which it is located.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>*pcObject</em> </td><td>- A pointer to the object to add. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>fSpawnObject</em> </td><td>- A value representing whether the object should be spawned. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="a2c4212dddeef4e17889a4937eee77851"></a><!-- doxytag: member="cWorldManager::Load" ref="a2c4212dddeef4e17889a4937eee77851" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cWorldManager::Load </td>
- <td>(</td>
- <td class="paramname"></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Loads the initial world objects</p>
- <p>This function is called when the server is started. </p>
- </div>
- </div>
- <a class="anchor" id="aa7039258fb19b775cef89a2c88724588"></a><!-- doxytag: member="cWorldManager::MoveAddObject" ref="aa7039258fb19b775cef89a2c88724588" args="(cObject *pcObject)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cWorldManager::MoveAddObject </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_object.html">cObject</a> * </td>
- <td class="paramname"> <em>pcObject</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Adds an object to object list of the landblock in which it is located.</p>
- <p>Used for when an object changes landblock location.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>*pcObject</em> </td><td>- A pointer to the object to add. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="a5d6cfb40c6c889f5ac3cdb0d77d40935"></a><!-- doxytag: member="cWorldManager::MoveAvatar" ref="a5d6cfb40c6c889f5ac3cdb0d77d40935" args="(cClient *pcClient, cLocation &NewLoc, WORD wAnim=0, float flPlaySpeed=1.0f)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cWorldManager::MoveAvatar </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_client.html">cClient</a> * </td>
- <td class="paramname"> <em>pcClient</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="structc_location.html">cLocation</a> & </td>
- <td class="paramname"> <em>NewLoc</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">WORD </td>
- <td class="paramname"> <em>wAnim</em> = <code>0</code>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>flPlaySpeed</em> = <code>1.0f</code></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>Handles the processing for when an avatar moves.</p>
- <p>This function is called whenever an avatar moves. The function checks whether the avatar has moved into a new landblock and populates/depopulates landblocks appropriately. The function also sends the movement animation to all clients within focus.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>*pcClient</em> </td><td>- A pointer to the client whose avatar is being teleported. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>&NewLoc</em> </td><td>- The address of the <a class="el" href="structc_location.html">cLocation</a> struct value that represents the location to which the avatar is being teleported. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>wAnim</em> </td><td>- The numeric value of the animation to play. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>flPlay</em> </td><td>- The speed at which to play the gievn animation.</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="return"><dt><b>Returns:</b></dt><dd>BOOL - A boolean value representing whether the avatar's landblock has not changed. </dd></dl>
- </div>
- </div>
- <a class="anchor" id="a7cf2e70b1ec6a850eca4527c14c6ce64"></a><!-- doxytag: member="cWorldManager::MoveRemObject" ref="a7cf2e70b1ec6a850eca4527c14c6ce64" args="(cObject *pcObject)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cWorldManager::MoveRemObject </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_object.html">cObject</a> * </td>
- <td class="paramname"> <em>pcObject</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Removes an object from the object list of the landblock in which it is located.</p>
- <p>Used for when an object changes landblock location.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>*pcObject</em> </td><td>- A pointer to the object to remove.</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="return"><dt><b>Returns:</b></dt><dd>BOOL - A boolean value representing whether the object is located in a known landblock. </dd></dl>
- </div>
- </div>
- <a class="anchor" id="ad9a32e160ccc14e570213d415c3d1c9e"></a><!-- doxytag: member="cWorldManager::RemoveAllObjects" ref="ad9a32e160ccc14e570213d415c3d1c9e" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cWorldManager::RemoveAllObjects </td>
- <td>(</td>
- <td class="paramname"></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Removes all object from the object list of all the landblocks.</p>
- <p>This is accomplished by iterating through each landblock, for each landblock iterating through each object, and deleting the objects as they are iterated through. </p>
- </div>
- </div>
- <a class="anchor" id="a6607263e24e164efaa63234f40f5c4ed"></a><!-- doxytag: member="cWorldManager::RemoveClient" ref="a6607263e24e164efaa63234f40f5c4ed" args="(cClient *pcClient, BOOL fRemoveAvatar=TRUE, BOOL fDeleteAvatar=TRUE)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cWorldManager::RemoveClient </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_client.html">cClient</a> * </td>
- <td class="paramname"> <em>pcClient</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BOOL </td>
- <td class="paramname"> <em>fRemoveAvatar</em> = <code>TRUE</code>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BOOL </td>
- <td class="paramname"> <em>fDeleteAvatar</em> = <code>TRUE</code></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>Handles the processing for when a client is removed from the server.</p>
- <p>This function is called whenever an avatar removed from the server</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>*pcClient</em> </td><td>- A pointer to the client whose avatar is being removed. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>fRemoveAvatar</em> </td><td>- A value representing whether the avatar should be removed. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>fDeleteavatar</em> </td><td>- A value representing whether the avatar object should be deleted from working memory.</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="return"><dt><b>Returns:</b></dt><dd>BOOL - A boolean value representing whether the avatar is located in a known landblock. </dd></dl>
- </div>
- </div>
- <a class="anchor" id="a6ffa3d575f2be7e720dbec3b122a5f91"></a><!-- doxytag: member="cWorldManager::RemoveObject" ref="a6ffa3d575f2be7e720dbec3b122a5f91" args="(cObject *pcObject, BOOL fRemoveObject=TRUE, BOOL fDeleteObject=TRUE)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cWorldManager::RemoveObject </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_object.html">cObject</a> * </td>
- <td class="paramname"> <em>pcObject</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BOOL </td>
- <td class="paramname"> <em>fRemoveObject</em> = <code>TRUE</code>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BOOL </td>
- <td class="paramname"> <em>fDeleteObject</em> = <code>TRUE</code></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 an object to object list of the landblock in which it is located.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>*pcObject</em> </td><td>- A pointer to the object to remove. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>fRemoveObject</em> </td><td>- A value representing whether the object should be removed. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>fDeleteObject</em> </td><td>- A value representing whether the object should be deleted from working memory. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="ad3b154b6ed42f879f7e4e1c440aa5aa1"></a><!-- doxytag: member="cWorldManager::TeleportAvatar" ref="ad3b154b6ed42f879f7e4e1c440aa5aa1" args="(cClient *pcClient, cLocation &NewLoc)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">BOOL cWorldManager::TeleportAvatar </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_client.html">cClient</a> * </td>
- <td class="paramname"> <em>pcClient</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype"><a class="el" href="structc_location.html">cLocation</a> & </td>
- <td class="paramname"> <em>NewLoc</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>Handles the processing for when an avatar is teleported</p>
- <p>This function is called whenever an avatar is teleported.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>*pcClient</em> </td><td>- A pointer to the client whose avatar is being teleported. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>&NewLoc</em> </td><td>- The address of the <a class="el" href="structc_location.html">cLocation</a> struct value that represents the location to which the avatar is being teleported.</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="return"><dt><b>Returns:</b></dt><dd>BOOL - A boolean value representing whether the avatar's landblock has not changed. </dd></dl>
- </div>
- </div>
- <hr/>The documentation for this class was generated from the following files:<ul>
- <li>E:/uas2/Server/<a class="el" href="_world_manager_8h_source.html">WorldManager.h</a></li>
- <li>E:/uas2/Server/<a class="el" href="_world_manager_8cpp.html">WorldManager.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>
|