123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- <!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: cFood 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>cFood Class Reference</h1><!-- doxytag: class="cFood" --><!-- doxytag: inherits="cObject" --><div class="dynheader">
- Inheritance diagram for cFood:</div>
- <div class="dynsection">
- <div class="center">
- <img src="classc_food.png" usemap="#cFood_map" alt=""/>
- <map id="cFood_map" name="cFood_map">
- <area href="classc_object.html" alt="cObject" shape="rect" coords="0,0,56,24"/>
- </map>
- </div>
- </div>
- <p><a href="classc_food-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_food.html#ae7dead4e00530dbb4501839000e55753">cFood</a> (DWORD dwGUID, <a class="el" href="structc_location.html">cLocation</a> &Loc, DWORD dwModel, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wBurden, DWORD dwVitalID, DWORD dwAmount)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_food.html#a126fb4d251e376f5da5e88d68382dafd">cFood</a> (DWORD dwGUID, DWORD dwContainer, DWORD dwModel, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wStack, WORD wBurden, DWORD dwVitalID, DWORD dwVitalAffect)</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_food.html#a0ccdb0a5404a7c2000b048c253ab7bfb">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_food.html#a6615b7f8ffd2b1d4b12e21fbe0d59fac">CreatePacketContainer</a> (DWORD Container, DWORD ItemModelID)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c719ba00fa636e3eefaf24f6427ac2c"></a><!-- doxytag: member="cFood::Animation" ref="a4c719ba00fa636e3eefaf24f6427ac2c" args="(WORD wAnim, float flPlaySpeed)" -->
- <a class="el" href="classc_message.html">cMessage</a> </td><td class="memItemRight" valign="bottom"><b>Animation</b> (WORD wAnim, float flPlaySpeed)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_food.html#a8b1aa8ded9d15fed60767b78c3824d06">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_food.html#a353692bfc33945be58faf884b9b7dbe2">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="a90bd1bbacd840f096057c1efc738d188"></a><!-- doxytag: member="cFood::GetItemModelID" ref="a90bd1bbacd840f096057c1efc738d188" 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="aa62483ef6455f042babfe13adb0d337d"></a><!-- doxytag: member="cFood::GetContainerID" ref="aa62483ef6455f042babfe13adb0d337d" args="()" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>GetContainerID</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="a9b68884f92a3d8115fe7c86340299f04"></a><!-- doxytag: member="cFood::m_dwItemModelID" ref="a9b68884f92a3d8115fe7c86340299f04" 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="af22f651b6232f19d103dedb513c036e9"></a><!-- doxytag: member="cFood::m_dwValue" ref="af22f651b6232f19d103dedb513c036e9" 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="a89201c966acfcf3adb45593e22ae80b4"></a><!-- doxytag: member="cFood::m_wBurden" ref="a89201c966acfcf3adb45593e22ae80b4" 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="a30fb1138b256d1d39d9a34c44eec71ab"></a><!-- doxytag: member="cFood::m_dwVitalID" ref="a30fb1138b256d1d39d9a34c44eec71ab" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwVitalID</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af908d9bc0dd7cb87a187118d05ce28b4"></a><!-- doxytag: member="cFood::m_wStack" ref="af908d9bc0dd7cb87a187118d05ce28b4" args="" -->
- WORD </td><td class="memItemRight" valign="bottom"><b>m_wStack</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab0b63c1332ae6bb6b5a4d9107600145a"></a><!-- doxytag: member="cFood::m_dwVitalAffect" ref="ab0b63c1332ae6bb6b5a4d9107600145a" args="" -->
- DWORD </td><td class="memItemRight" valign="bottom"><b>m_dwVitalAffect</b></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8f9f456584d4ada6e793eb17814263e4"></a><!-- doxytag: member="cFood::m_strDescription" ref="a8f9f456584d4ada6e793eb17814263e4" 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="ae7dead4e00530dbb4501839000e55753"></a><!-- doxytag: member="cFood::cFood" ref="ae7dead4e00530dbb4501839000e55753" args="(DWORD dwGUID, cLocation &Loc, DWORD dwModel, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wBurden, DWORD dwVitalID, DWORD dwAmount)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">cFood::cFood </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">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>dwVitalID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwAmount</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 food object is initialized in the world. </p>
- </div>
- </div>
- <a class="anchor" id="a126fb4d251e376f5da5e88d68382dafd"></a><!-- doxytag: member="cFood::cFood" ref="a126fb4d251e376f5da5e88d68382dafd" args="(DWORD dwGUID, DWORD dwContainer, DWORD dwModel, DWORD dwIcon, std::string strName, std::string strDescription, DWORD dwValue, WORD wStack, WORD wBurden, DWORD dwVitalID, DWORD dwVitalAffect)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">cFood::cFood </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">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>wStack</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>dwVitalID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwVitalAffect</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 food object is initialized in a container. </p>
- </div>
- </div>
- <hr/><h2>Member Function Documentation</h2>
- <a class="anchor" id="a353692bfc33945be58faf884b9b7dbe2"></a><!-- doxytag: member="cFood::Action" ref="a353692bfc33945be58faf884b9b7dbe2" args="(cClient *who)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cFood::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 food objects.</p>
- <p>This function is called whenever food 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="a8b1aa8ded9d15fed60767b78c3824d06"></a><!-- doxytag: member="cFood::Assess" ref="a8b1aa8ded9d15fed60767b78c3824d06" args="(cClient *pcAssesser)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cFood::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 food objects.</p>
- <p>This function is called whenever food 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="a0ccdb0a5404a7c2000b048c253ab7bfb"></a><!-- doxytag: member="cFood::CreatePacket" ref="a0ccdb0a5404a7c2000b048c253ab7bfb" args="()" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname"><a class="el" href="classc_message.html">cMessage</a> cFood::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 food in the world.</p>
- <p>This function is called whenever food 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="a6615b7f8ffd2b1d4b12e21fbe0d59fac"></a><!-- doxytag: member="cFood::CreatePacketContainer" ref="a6615b7f8ffd2b1d4b12e21fbe0d59fac" 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> cFood::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 food in a container.</p>
- <p>This function is called whenever food 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_food_8cpp.html">cFood.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>
|