123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506 |
- <!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: cWeapon 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>cWeapon Class Reference</h1><!-- doxytag: class="cWeapon" --><!-- doxytag: inherits="cObject" --><div class="dynheader">
- Inheritance diagram for cWeapon:</div>
- <div class="dynsection">
- <div class="center">
- <img src="classc_weapon.png" usemap="#cWeapon_map" alt=""/>
- <map id="cWeapon_map" name="cWeapon_map">
- <area href="classc_object.html" alt="cObject" shape="rect" coords="0,0,65,24"/>
- </map>
- </div>
- </div>
- <p><a href="classc_weapon-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_weapon.html#a01ba0c2af9cd902c91b830c50efee8f7">cWeapon</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, DWORD dwValue, WORD wWeight, BYTE bWieldType, DWORD dwIconHighlight, float fWorkmanship, DWORD dwMaterialType, DWORD dwWeaponDamage, DWORD dwWeaponSpeed, DWORD dwWeaponSkill, DWORD dwDamageType, double dWeaponVariance, double dWeaponModifier, double dWeaponPower, double dWeaponAttack)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_weapon.html#a1292e45fe461658af7701fcf7fa4f850">cWeapon</a> (DWORD dwGUID, DWORD dwContainer, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wWeight, BYTE bWieldType, DWORD dwIconHighlight, float fWorkmanship, DWORD dwMaterialType, DWORD dwWeaponDamage, DWORD dwWeaponSpeed, DWORD dwWeaponSkill, DWORD dwDamageType, double dWeaponVariance, double dWeaponModifier, double dWeaponPower, double dWeaponAttack)</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_weapon.html#a19d96aaa6be648ec79d3fd073eab1c3e">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_weapon.html#acfe58cfdc9bcd1d72396cacebf970653">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_weapon.html#ac5e977b298c211870beb8c0681885649">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_weapon.html#ac8a02d4f71745412f9f3100d735f1032">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="a315f7c281885ec8e0db6939d1be22367"></a><!-- doxytag: member="cWeapon::GetItemModelID" ref="a315f7c281885ec8e0db6939d1be22367" 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="acd48e1824ee13bbca0a684d8f2b52408"></a><!-- doxytag: member="cWeapon::GetContainerID" ref="acd48e1824ee13bbca0a684d8f2b52408" 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="a08eeaf60a82937248d5d34a34df7e166"></a><!-- doxytag: member="cWeapon::GetItemValue" ref="a08eeaf60a82937248d5d34a34df7e166" args="()" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>GetItemValue</b> ()</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab32453de363dbd87be5f25680f61f974"></a><!-- doxytag: member="cWeapon::GetIsUAWeapon" ref="ab32453de363dbd87be5f25680f61f974" args="()" -->
- int </td><td class="memItemRight" valign="bottom"><b>GetIsUAWeapon</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="a76ff3091edae22c5cad2070c75fd9c6e"></a><!-- doxytag: member="cWeapon::m_dwItemModelID" ref="a76ff3091edae22c5cad2070c75fd9c6e" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwItemModelID</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae2b7aec072237340d8e220402424849f"></a><!-- doxytag: member="cWeapon::m_bWieldType" ref="ae2b7aec072237340d8e220402424849f" args="" -->
- BYTE </td><td class="memItemRight" valign="bottom"><b>m_bWieldType</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5b4fe6471f840d44250b749884b1c3e4"></a><!-- doxytag: member="cWeapon::isUAWeapon" ref="a5b4fe6471f840d44250b749884b1c3e4" args="" -->
- int </td><td class="memItemRight" valign="bottom"><b>isUAWeapon</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9c9105b2ed0fefa7352c939bc17cd724"></a><!-- doxytag: member="cWeapon::m_dwDamageType" ref="a9c9105b2ed0fefa7352c939bc17cd724" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwDamageType</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="afc392b14f8ff5feadf5a0277a8a28de6"></a><!-- doxytag: member="cWeapon::m_wWeight" ref="afc392b14f8ff5feadf5a0277a8a28de6" args="" -->
- WORD </td><td class="memItemRight" valign="bottom"><b>m_wWeight</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a271f3e51638d93a71119749c9b4aeca9"></a><!-- doxytag: member="cWeapon::m_dwValue" ref="a271f3e51638d93a71119749c9b4aeca9" 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="a9c0a14fbe9bd52f8938709cca4d07799"></a><!-- doxytag: member="cWeapon::m_wIconHighlight" ref="a9c0a14fbe9bd52f8938709cca4d07799" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_wIconHighlight</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abd037dead7888d3c0cad81a6e7ccd207"></a><!-- doxytag: member="cWeapon::m_fWorkmanShip" ref="abd037dead7888d3c0cad81a6e7ccd207" args="" -->
- float </td><td class="memItemRight" valign="bottom"><b>m_fWorkmanShip</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa0818d328a8adc10888e60886aff6613"></a><!-- doxytag: member="cWeapon::m_dwMaterialType" ref="aa0818d328a8adc10888e60886aff6613" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwMaterialType</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac54dafb1ae22dc150c29c1ea7a5d41ca"></a><!-- doxytag: member="cWeapon::m_dwWeaponDamage" ref="ac54dafb1ae22dc150c29c1ea7a5d41ca" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwWeaponDamage</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19b0b48ed97dceb11f597df38b4f307e"></a><!-- doxytag: member="cWeapon::m_dwWeaponSpeed" ref="a19b0b48ed97dceb11f597df38b4f307e" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwWeaponSpeed</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02bd2ae3f9ab24bd66b8434d6c0a905f"></a><!-- doxytag: member="cWeapon::m_dwWeaponSkill" ref="a02bd2ae3f9ab24bd66b8434d6c0a905f" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwWeaponSkill</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0727dc5898f9f01e1d6e384e79f5ac6f"></a><!-- doxytag: member="cWeapon::m_dWeaponVariance" ref="a0727dc5898f9f01e1d6e384e79f5ac6f" args="" -->
- double </td><td class="memItemRight" valign="bottom"><b>m_dWeaponVariance</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39fbb8ca0071d7eb2b945b97dec44db0"></a><!-- doxytag: member="cWeapon::m_dWeaponModifier" ref="a39fbb8ca0071d7eb2b945b97dec44db0" args="" -->
- double </td><td class="memItemRight" valign="bottom"><b>m_dWeaponModifier</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab88386cb9889f075a71f82ab114b623d"></a><!-- doxytag: member="cWeapon::m_dWeaponPower" ref="ab88386cb9889f075a71f82ab114b623d" args="" -->
- double </td><td class="memItemRight" valign="bottom"><b>m_dWeaponPower</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad4809c1c32fe1d9f5b6af81ad376f751"></a><!-- doxytag: member="cWeapon::m_dWeaponAttack" ref="ad4809c1c32fe1d9f5b6af81ad376f751" args="" -->
- double </td><td class="memItemRight" valign="bottom"><b>m_dWeaponAttack</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac62ee522c255adb91f50ae32c7dc9836"></a><!-- doxytag: member="cWeapon::m_fIsStackable" ref="ac62ee522c255adb91f50ae32c7dc9836" 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="a047c61aca4b56c8e945e1c47d1fb2f22"></a><!-- doxytag: member="cWeapon::m_fEquippable" ref="a047c61aca4b56c8e945e1c47d1fb2f22" 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="a55eac69da4024d3ed36402ce731c52b6"></a><!-- doxytag: member="cWeapon::m_fIsSolid" ref="a55eac69da4024d3ed36402ce731c52b6" 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="afe3679f693bea83c362a051dd0e62cb8"></a><!-- doxytag: member="cWeapon::m_strDescription" ref="afe3679f693bea83c362a051dd0e62cb8" 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="a01ba0c2af9cd902c91b830c50efee8f7"></a><!-- doxytag: member="cWeapon::cWeapon" ref="a01ba0c2af9cd902c91b830c50efee8f7" args="(DWORD dwGUID, cLocation &Loc, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wWeight, BYTE bWieldType, DWORD dwIconHighlight, float fWorkmanship, DWORD dwMaterialType, DWORD dwWeaponDamage, DWORD dwWeaponSpeed, DWORD dwWeaponSkill, DWORD dwDamageType, double dWeaponVariance, double dWeaponModifier, double dWeaponPower, double dWeaponAttack)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">cWeapon::cWeapon </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>
- </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>wWeight</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BYTE </td>
- <td class="paramname"> <em>bWieldType</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwIconHighlight</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>fWorkmanship</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwMaterialType</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwWeaponDamage</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwWeaponSpeed</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwWeaponSkill</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwDamageType</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>dWeaponVariance</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>dWeaponModifier</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>dWeaponPower</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>dWeaponAttack</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 a weapon object is initialized in the world. </p>
- </div>
- </div>
- <a class="anchor" id="a1292e45fe461658af7701fcf7fa4f850"></a><!-- doxytag: member="cWeapon::cWeapon" ref="a1292e45fe461658af7701fcf7fa4f850" args="(DWORD dwGUID, DWORD dwContainer, DWORD dwModel, float flScale, BOOL fSolid, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wWeight, BYTE bWieldType, DWORD dwIconHighlight, float fWorkmanship, DWORD dwMaterialType, DWORD dwWeaponDamage, DWORD dwWeaponSpeed, DWORD dwWeaponSkill, DWORD dwDamageType, double dWeaponVariance, double dWeaponModifier, double dWeaponPower, double dWeaponAttack)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">cWeapon::cWeapon </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>wWeight</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">BYTE </td>
- <td class="paramname"> <em>bWieldType</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwIconHighlight</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">float </td>
- <td class="paramname"> <em>fWorkmanship</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwMaterialType</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwWeaponDamage</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwWeaponSpeed</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwWeaponSkill</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwDamageType</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>dWeaponVariance</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>dWeaponModifier</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>dWeaponPower</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>dWeaponAttack</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 a weapon object is initialized in a container. </p>
- </div>
- </div>
- <hr/><h2>Member Function Documentation</h2>
- <a class="anchor" id="ac8a02d4f71745412f9f3100d735f1032"></a><!-- doxytag: member="cWeapon::Action" ref="ac8a02d4f71745412f9f3100d735f1032" args="(cClient *who)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cWeapon::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 weapons objects.</p>
- <p>This function is called whenever a weapon 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="ac5e977b298c211870beb8c0681885649"></a><!-- doxytag: member="cWeapon::Assess" ref="ac5e977b298c211870beb8c0681885649" args="(cClient *pcAssesser)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cWeapon::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 weapons objects.</p>
- <p>This function is called whenever a weapon 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="a19d96aaa6be648ec79d3fd073eab1c3e"></a><!-- doxytag: member="cWeapon::CreatePacket" ref="a19d96aaa6be648ec79d3fd073eab1c3e" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classc_message.html">cMessage</a> cWeapon::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 weapons in the world.</p>
- <p>This function is called whenever a weapon 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 Create Object (0x0000F745) server message. </dd></dl>
- <p>Implements <a class="el" href="classc_object.html">cObject</a>.</p>
- </div>
- </div>
- <a class="anchor" id="acfe58cfdc9bcd1d72396cacebf970653"></a><!-- doxytag: member="cWeapon::CreatePacketContainer" ref="acfe58cfdc9bcd1d72396cacebf970653" 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> cWeapon::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 weapons in a container.</p>
- <p>This function is called whenever a weapon 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_weapon_8cpp.html">cWeapon.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>
|