123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- <!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: cArmor 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>cArmor Class Reference</h1><!-- doxytag: class="cArmor" --><!-- doxytag: inherits="cObject" --><div class="dynheader">
- Inheritance diagram for cArmor:</div>
- <div class="dynsection">
- <div class="center">
- <img src="classc_armor.png" usemap="#cArmor_map" alt=""/>
- <map id="cArmor_map" name="cArmor_map">
- <area href="classc_object.html" alt="cObject" shape="rect" coords="0,0,56,24"/>
- </map>
- </div>
- </div>
- <p><a href="classc_armor-members.html">List of all members.</a></p>
- <table border="0" cellpadding="0" cellspacing="0">
- <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_armor.html#acd85a10ae3b78f408f1d47b2b180c01b">cArmor</a> (DWORD dwGUID, <a class="el" href="structc_location.html">cLocation</a> &Loc, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_armor.html#aea11da34fa495228e01701c65673bff9">cArmor</a> (DWORD dwGUID, DWORD dwContainer, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wBurden, DWORD dwArmor_Level, float fProt_Slashing, float fProt_Piercing, float fProt_Bludgeon, float fProt_Fire, float fProt_Cold, float fProt_Acid, float fProt_Electric)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classc_message.html">cMessage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_armor.html#a5490ab3dea4a78fdf05b976e045b9c1a">CreatePacket</a> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classc_message.html">cMessage</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_armor.html#a0f32d2315cb7d907f79b4a70015db629">CreatePacketContainer</a> (DWORD Container, DWORD ItemModelID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_armor.html#af795db61380698b03bc2f512736124a9">Assess</a> (<a class="el" href="classc_client.html">cClient</a> *pcAssesser)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_armor.html#a7a6e63b43797a8b13a41d1ed641556d9">Action</a> (<a class="el" href="classc_client.html">cClient</a> *who)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5123fa35ce54cb45819debb85a97fe73"></a><!-- doxytag: member="cArmor::GetItemModelID" ref="a5123fa35ce54cb45819debb85a97fe73" args="()" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>GetItemModelID</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad435f93ca1179a677713691be6955a12"></a><!-- doxytag: member="cArmor::GetContainerID" ref="ad435f93ca1179a677713691be6955a12" args="()" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>GetContainerID</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5e82d9a94794aedd0e0532c37ecf3f4f"></a><!-- doxytag: member="cArmor::GetSlashProt" ref="a5e82d9a94794aedd0e0532c37ecf3f4f" args="()" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>GetSlashProt</b> ()</td></tr>
- <tr><td colspan="2"><h2>Public Attributes</h2></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae550a2d6af3ae4c688039c49d5c9776e"></a><!-- doxytag: member="cArmor::m_dwItemModelID" ref="ae550a2d6af3ae4c688039c49d5c9776e" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwItemModelID</b></td></tr>
- <tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ade98945352947a5bdf3dc733cc1f2596"></a><!-- doxytag: member="cArmor::m_dwValue" ref="ade98945352947a5bdf3dc733cc1f2596" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwValue</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2797bf216b4c4aa2fb4fcbbe4bd1dba6"></a><!-- doxytag: member="cArmor::m_wBurden" ref="a2797bf216b4c4aa2fb4fcbbe4bd1dba6" args="" -->
- WORD </td><td class="memItemRight" valign="bottom"><b>m_wBurden</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa88c74bd6c91e3b285d8699d77aca6b2"></a><!-- doxytag: member="cArmor::m_fIsStackable" ref="aa88c74bd6c91e3b285d8699d77aca6b2" args="" -->
- BOOL </td><td class="memItemRight" valign="bottom"><b>m_fIsStackable</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3683115d230e551e4886301c1c09b2be"></a><!-- doxytag: member="cArmor::m_fEquippable" ref="a3683115d230e551e4886301c1c09b2be" args="" -->
- BOOL </td><td class="memItemRight" valign="bottom"><b>m_fEquippable</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad015ca1f42927c0bf780e693a1c736f4"></a><!-- doxytag: member="cArmor::m_fIsSolid" ref="ad015ca1f42927c0bf780e693a1c736f4" args="" -->
- BOOL </td><td class="memItemRight" valign="bottom"><b>m_fIsSolid</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5285497ef579c1af9d2f70f7cd2b4b24"></a><!-- doxytag: member="cArmor::m_dwActivate_Req_SkillID" ref="a5285497ef579c1af9d2f70f7cd2b4b24" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwActivate_Req_SkillID</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad03c575f3d8fd8f534870d25177b5c3f"></a><!-- doxytag: member="cArmor::m_dwActivate_Req_Skill_Level" ref="ad03c575f3d8fd8f534870d25177b5c3f" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwActivate_Req_Skill_Level</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e0df9ea29282640b8a63459879c3e70"></a><!-- doxytag: member="cArmor::m_dwArmor_Level" ref="a4e0df9ea29282640b8a63459879c3e70" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwArmor_Level</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1ba9bf50d294012122cc3aeba9e2d755"></a><!-- doxytag: member="cArmor::m_fProt_Slashing" ref="a1ba9bf50d294012122cc3aeba9e2d755" args="" -->
- float </td><td class="memItemRight" valign="bottom"><b>m_fProt_Slashing</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4797ae219c162935eb2df69036c34446"></a><!-- doxytag: member="cArmor::m_fProt_Piercing" ref="a4797ae219c162935eb2df69036c34446" args="" -->
- float </td><td class="memItemRight" valign="bottom"><b>m_fProt_Piercing</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a31fe8abfc8a213edc5dfd593458a3d8c"></a><!-- doxytag: member="cArmor::m_fProt_Bludgeon" ref="a31fe8abfc8a213edc5dfd593458a3d8c" args="" -->
- float </td><td class="memItemRight" valign="bottom"><b>m_fProt_Bludgeon</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adee5c537867f7c2223f1e9185b1240b7"></a><!-- doxytag: member="cArmor::m_fProt_Fire" ref="adee5c537867f7c2223f1e9185b1240b7" args="" -->
- float </td><td class="memItemRight" valign="bottom"><b>m_fProt_Fire</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2dacde1a80af06f225a62fce90070b52"></a><!-- doxytag: member="cArmor::m_fProt_Cold" ref="a2dacde1a80af06f225a62fce90070b52" args="" -->
- float </td><td class="memItemRight" valign="bottom"><b>m_fProt_Cold</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a73f24c4fe2d95efc1bb0ab0cdd64abe9"></a><!-- doxytag: member="cArmor::m_fProt_Acid" ref="a73f24c4fe2d95efc1bb0ab0cdd64abe9" args="" -->
- float </td><td class="memItemRight" valign="bottom"><b>m_fProt_Acid</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af88a78ff4aee1145ece7b9cb0c3b9e3b"></a><!-- doxytag: member="cArmor::m_fProt_Electric" ref="af88a78ff4aee1145ece7b9cb0c3b9e3b" args="" -->
- float </td><td class="memItemRight" valign="bottom"><b>m_fProt_Electric</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a322a1f4e299f92e6c6d93151f2e96646"></a><!-- doxytag: member="cArmor::m_strDescription" ref="a322a1f4e299f92e6c6d93151f2e96646" args="" -->
- std::string </td><td class="memItemRight" valign="bottom"><b>m_strDescription</b></td></tr>
- </table>
- <hr/><h2>Constructor & Destructor Documentation</h2>
- <a class="anchor" id="acd85a10ae3b78f408f1d47b2b180c01b"></a><!-- doxytag: member="cArmor::cArmor" ref="acd85a10ae3b78f408f1d47b2b180c01b" args="(DWORD dwGUID, cLocation &Loc, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">cArmor::cArmor </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwGUID</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>Loc</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwModel</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>flScale</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BOOL </td>
- <td class="paramname"> <em>fSolid</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwIcon</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">std::string </td>
- <td class="paramname"> <em>strName</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">std::string </td>
- <td class="paramname"> <em>strDescription</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>A constructor.</p>
- <p>Called whenever an armor object is initialized in the world. </p>
- </div>
- </div>
- <a class="anchor" id="aea11da34fa495228e01701c65673bff9"></a><!-- doxytag: member="cArmor::cArmor" ref="aea11da34fa495228e01701c65673bff9" args="(DWORD dwGUID, DWORD dwContainer, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wBurden, DWORD dwArmor_Level, float fProt_Slashing, float fProt_Piercing, float fProt_Bludgeon, float fProt_Fire, float fProt_Cold, float fProt_Acid, float fProt_Electric)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">cArmor::cArmor </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwGUID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwContainer</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwModel</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>flScale</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BOOL </td>
- <td class="paramname"> <em>fSolid</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwIcon</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">std::string </td>
- <td class="paramname"> <em>strName</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">std::string </td>
- <td class="paramname"> <em>strDescription</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwValue</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">WORD </td>
- <td class="paramname"> <em>wBurden</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwArmor_Level</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>fProt_Slashing</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>fProt_Piercing</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>fProt_Bludgeon</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>fProt_Fire</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>fProt_Cold</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>fProt_Acid</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>fProt_Electric</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [inline]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>A constructor.</p>
- <p>Called whenever an armor object is initialized in a container. </p>
- </div>
- </div>
- <hr/><h2>Member Function Documentation</h2>
- <a class="anchor" id="a7a6e63b43797a8b13a41d1ed641556d9"></a><!-- doxytag: member="cArmor::Action" ref="a7a6e63b43797a8b13a41d1ed641556d9" args="(cClient *who)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cArmor::Action </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_client.html">cClient</a> * </td>
- <td class="paramname"> <em>who</em></td>
- <td> ) </td>
- <td><code> [virtual]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Handles the actions of armor objects.</p>
- <p>This function is called whenever armor is used or should perform an action. </p>
- <p>Implements <a class="el" href="classc_object.html">cObject</a>.</p>
- </div>
- </div>
- <a class="anchor" id="af795db61380698b03bc2f512736124a9"></a><!-- doxytag: member="cArmor::Assess" ref="af795db61380698b03bc2f512736124a9" args="(cClient *pcAssesser)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cArmor::Assess </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_client.html">cClient</a> * </td>
- <td class="paramname"> <em>pcAssesser</em></td>
- <td> ) </td>
- <td><code> [virtual]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Handles the assessment of armor objects.</p>
- <p>This function is called whenever armor is assessed by a client.</p>
- <p>Returns a Game Event (0x0000F7B0) server message of type Identify Object (0x000000C9). </p>
- <p>Reimplemented from <a class="el" href="classc_object.html">cObject</a>.</p>
- </div>
- </div>
- <a class="anchor" id="a5490ab3dea4a78fdf05b976e045b9c1a"></a><!-- doxytag: member="cArmor::CreatePacket" ref="a5490ab3dea4a78fdf05b976e045b9c1a" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classc_message.html">cMessage</a> cArmor::CreatePacket </td>
- <td>(</td>
- <td class="paramname"></td>
- <td> ) </td>
- <td><code> [virtual]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Handles the message sent for the creation of armor in the world.</p>
- <p>This function is called whenever armor should be created in the world for a client.</p>
- <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classc_message.html">cMessage</a> - Returns a server message to the client. </dd></dl>
- <p>Implements <a class="el" href="classc_object.html">cObject</a>.</p>
- </div>
- </div>
- <a class="anchor" id="a0f32d2315cb7d907f79b4a70015db629"></a><!-- doxytag: member="cArmor::CreatePacketContainer" ref="a0f32d2315cb7d907f79b4a70015db629" args="(DWORD Container, DWORD ItemModelID)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classc_message.html">cMessage</a> cArmor::CreatePacketContainer </td>
- <td>(</td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>Container</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>ItemModelID</em></td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Handles the message sent for the creation of armor in a container.</p>
- <p>This function is called whenever armor should be created in the inventory of another object.</p>
- <dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="classc_message.html">cMessage</a> - Returns a Create Object (0x0000F745) server message. </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="_object_8h_source.html">Object.h</a></li>
- <li>E:/uas2/Server/<a class="el" href="c_armor_8cpp.html">cArmor.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>
|