123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- <!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: cPortalDat 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>cPortalDat Class Reference</h1><!-- doxytag: class="cPortalDat" -->
- <p><a href="classc_portal_dat-members.html">List of all members.</a></p>
- <table border="0" cellpadding="0" cellspacing="0">
- <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_portal_dat.html#ae8ca396f22b1f579fc434e60b7a89ae5">LoadStartingInfo</a> (<a class="el" href="classc_avatar.html">cAvatar</a> *pcAvatar)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_portal_dat.html#a6c8107db937e73132eaded6b2666b5ce">LoadItemModel</a> (<a class="el" href="classc_object.html">cObject</a> *pcObject, DWORD dwModelID, DWORD dwColorID=0, double dblColorValue=-1)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_portal_dat.html#a940524424142a7d06f770be36f68355b">CalcPalette</a> (int numPalettes, double palValue=-1)</td></tr>
- <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classc_portal_dat.html#a3f390fc24d3d6d64194239e4d38fbbb2">Load_PortalDat</a> (UCHAR *&buf, char file[9])</td></tr>
- </table>
- <hr/><h2>Member Function Documentation</h2>
- <a class="anchor" id="a940524424142a7d06f770be36f68355b"></a><!-- doxytag: member="cPortalDat::CalcPalette" ref="a940524424142a7d06f770be36f68355b" args="(int numPalettes, double palValue=-1)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">int cPortalDat::CalcPalette </td>
- <td>(</td>
- <td class="paramtype">int </td>
- <td class="paramname"> <em>numPalettes</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>palValue</em> = <code>-1</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>Determines the CLUT (0x04000000 object in the portal.dat) to be used.</p>
- <p>The palette to use is determined by rounding the value of numPalettes minus one (as the palettes are zero-indexed) multiplied by the palValue value.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>numPalettes</em> </td><td>- The number of palettes in the palette list. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>palValue</em> </td><td>- The shading value used to determine the palette (between 0 and 1).</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="return"><dt><b>Returns:</b></dt><dd>palette - The palette index (beginning with 0) to use. </dd></dl>
- </div>
- </div>
- <a class="anchor" id="a3f390fc24d3d6d64194239e4d38fbbb2"></a><!-- doxytag: member="cPortalDat::Load_PortalDat" ref="a3f390fc24d3d6d64194239e4d38fbbb2" args="(UCHAR *&buf, char file[9])" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">static void cPortalDat::Load_PortalDat </td>
- <td>(</td>
- <td class="paramtype">UCHAR *& </td>
- <td class="paramname"> <em>buf</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">char </td>
- <td class="paramname"> <em>file</em>[9]</td><td> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td><td><code> [inline, static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Loads the portal.dat information for the specified file.</p>
- <p>Calls FetchPortalFilePos to find a file's position. Calls FetchPortalFile to fetch a file from its found position.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>&buf</em> </td><td>- The address of the buffer that should receive the file information. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>file</em> </td><td>- The file to be loaded from the portal.dat. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="a6c8107db937e73132eaded6b2666b5ce"></a><!-- doxytag: member="cPortalDat::LoadItemModel" ref="a6c8107db937e73132eaded6b2666b5ce" args="(cObject *pcObject, DWORD dwModelID, DWORD dwColorID=0, double dblColorValue=-1)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cPortalDat::LoadItemModel </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">DWORD </td>
- <td class="paramname"> <em>dwModelID</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">DWORD </td>
- <td class="paramname"> <em>dwColorID</em> = <code>0</code>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">double </td>
- <td class="paramname"> <em>dblColorValue</em> = <code>-1</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 loading of item models (palette, texture, and model information).</p>
- <p>Called whenever an object's p/t/m information should be initialized or updated.</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 whose p/t/m information will be initialized or updated. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>dwModelID</em> </td><td>- The item model to be used (world, male, female) for the object. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>dwColorID</em> </td><td>- The color of the object. </td></tr>
- <tr><td valign="top"></td><td valign="top"><em>dblColorValue</em> </td><td>- The color shade of the object. </td></tr>
- </table>
- </dd>
- </dl>
- </div>
- </div>
- <a class="anchor" id="ae8ca396f22b1f579fc434e60b7a89ae5"></a><!-- doxytag: member="cPortalDat::LoadStartingInfo" ref="ae8ca396f22b1f579fc434e60b7a89ae5" args="(cAvatar *pcAvatar)" -->
- <div class="memitem">
- <div class="memproto">
- <table class="memname">
- <tr>
- <td class="memname">void cPortalDat::LoadStartingInfo </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="classc_avatar.html">cAvatar</a> * </td>
- <td class="paramname"> <em>pcAvatar</em></td>
- <td> ) </td>
- <td><code> [static]</code></td>
- </tr>
- </table>
- </div>
- <div class="memdoc">
- <p>Navigates the Character Creation Information (0x0E000002) file in the portal.dat. This file contains the starting locations, race- and gender-specific clothing and color selections, and the male and female palette, texture, and model information. This model information includes the female/male models, skin shade, hair color, hair shade, hair style, eye color, forehead style, chin style, and nose style.</p>
- <dl><dt><b>Parameters:</b></dt><dd>
- <table border="0" cellspacing="2" cellpadding="0">
- <tr><td valign="top"></td><td valign="top"><em>*pcAvatar</em> </td><td>- A pointer to the avatar whose information should be loaded or updated.</td></tr>
- </table>
- </dd>
- </dl>
- <p>Author: eLeM </p>
- </div>
- </div>
- <hr/>The documentation for this class was generated from the following files:<ul>
- <li>E:/uas2/Server/<a class="el" href="_dat_file_8h_source.html">DatFile.h</a></li>
- <li>E:/uas2/Server/<a class="el" href="_dat_file_8cpp.html">DatFile.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>
|