diff options
Diffstat (limited to 'docs/doxygen/nel/a03752.html')
-rw-r--r-- | docs/doxygen/nel/a03752.html | 361 |
1 files changed, 361 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03752.html b/docs/doxygen/nel/a03752.html new file mode 100644 index 00000000..26aa1e72 --- /dev/null +++ b/docs/doxygen/nel/a03752.html @@ -0,0 +1,361 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: NL3D::CZoneLoadingTask class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>NL3D::CZoneLoadingTask Class Reference</h1><code>#include <<a class="el" href="a06771.html">zone_manager.h</a>></code> +<p> +<p>Inheritance diagram for NL3D::CZoneLoadingTask: +<p><center><img src="a03752.png" usemap="#NL3D::CZoneLoadingTask_map" border="0" alt=""></center> +<map name="NL3D::CZoneLoadingTask_map"> +<area href="a02221.html" alt="NLMISC::IRunnablePos" shape="rect" coords="0,56,160,80"> +<area href="a02187.html" alt="NLMISC::IRunnable" shape="rect" coords="0,0,160,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +<a class="el" href="a03752.html">CZoneLoadingTask</a> implement run methode for loading a zone for TaskManager <dl compact><dt><b>Author:</b></dt><dd>Alain Saffray <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2000 sa See Also, <a class="el" href="a03753.html">CZoneManager</a>, CTaskManager </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a06771.html#l00161">161</a> of file <a class="el" href="a06771.html">zone_manager.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaska0">CZoneLoadingTask</a> (const std::string &sZoneName, <a class="el" href="a05363.html#a364">TVolatileZonePtr</a> *ppZone, <a class="el" href="a03128.html">CVector</a> &pos, bool monochrome, float factor)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#NL3D_1_1CZoneLoadingTaska0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaska1">getName</a> (std::string &result) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaska2">run</a> (void)</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Runnable Task. <a href="#NL3D_1_1CZoneLoadingTaska2"></a><br><br></td></tr> +<tr><td colspan=2><br><h2>Data Fields</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a03128.html">NLMISC::CVector</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02221.html#NLMISC_1_1IRunnablePoso0">Position</a></td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaskr0">_Monochrome</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>float </td><td class="memItemRight" valign=bottom><a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaskr1">_TileColorFactor</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05363.html#a364">TVolatileZonePtr</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaskr2">_Zone</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaskr3">_ZoneName</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NL3D_1_1CZoneLoadingTaska0" doxytag="NL3D::CZoneLoadingTask::CZoneLoadingTask" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NL3D::CZoneLoadingTask::CZoneLoadingTask </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const std::string & </td> + <td class="mdname" nowrap> <em>sZoneName</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a05363.html#a364">TVolatileZonePtr</a> * </td> + <td class="mdname" nowrap> <em>ppZone</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a03128.html">CVector</a> & </td> + <td class="mdname" nowrap> <em>pos</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>monochrome</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>float </td> + <td class="mdname" nowrap> <em>factor</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Constructor. +<p> + +<p> +Definition at line <a class="el" href="a06770.html#l00233">233</a> of file <a class="el" href="a06770.html">zone_manager.cpp</a>. +<p> +References <a class="el" href="a06771.html#l00175">_Monochrome</a>, <a class="el" href="a06771.html#l00176">_TileColorFactor</a>, <a class="el" href="a06771.html#l00173">_Zone</a>, <a class="el" href="a06771.html#l00174">_ZoneName</a>, and <a class="el" href="a06771.html#l00042">NL3D::TVolatileZonePtr</a>. +<p> +<div class="fragment"><pre>00234 { +00235 *ppZone = NULL; +00236 <a class="code" href="a03752.html#NL3D_1_1CZoneLoadingTaskr2">_Zone</a> = ppZone; +00237 <a class="code" href="a03752.html#NL3D_1_1CZoneLoadingTaskr3">_ZoneName</a> = sZoneName; +00238 <a class="code" href="a02221.html#NLMISC_1_1IRunnablePoso0">Position</a> = pos; +00239 <a class="code" href="a03752.html#NL3D_1_1CZoneLoadingTaskr0">_Monochrome</a> = monochrome; +00240 <a class="code" href="a03752.html#NL3D_1_1CZoneLoadingTaskr1">_TileColorFactor</a> = max(0.0f, factor); +00241 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NL3D_1_1CZoneLoadingTaska1" doxytag="NL3D::CZoneLoadingTask::getName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CZoneLoadingTask::getName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string & </td> + <td class="mdname1" valign="top" nowrap> <em>result</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const<code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Reimplemented from <a class="el" href="a02187.html#NLMISC_1_1IRunnablePosa0">NLMISC::IRunnable</a>. +<p> +Definition at line <a class="el" href="a06770.html#l00271">271</a> of file <a class="el" href="a06770.html">zone_manager.cpp</a>. +<p> +References <a class="el" href="a06771.html#l00174">_ZoneName</a>. +<p> +<div class="fragment"><pre>00272 { +00273 result = <span class="stringliteral">"LoadZone("</span> + <a class="code" href="a03752.html#NL3D_1_1CZoneLoadingTaskr3">_ZoneName</a> + <span class="stringliteral">")"</span>; +00274 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CZoneLoadingTaska2" doxytag="NL3D::CZoneLoadingTask::run" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NL3D::CZoneLoadingTask::run </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">void </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Runnable Task. +<p> + +<p> +Implements <a class="el" href="a02187.html#NLMISC_1_1IRunnablePosa1">NLMISC::IRunnable</a>. +<p> +Definition at line <a class="el" href="a06770.html#l00244">244</a> of file <a class="el" href="a06770.html">zone_manager.cpp</a>. +<p> +References <a class="el" href="a06771.html#l00175">_Monochrome</a>, <a class="el" href="a06771.html#l00176">_TileColorFactor</a>, <a class="el" href="a06771.html#l00173">_Zone</a>, <a class="el" href="a06771.html#l00174">_ZoneName</a>, <a class="el" href="a05538.html#l02654">file</a>, <a class="el" href="a05622.html#l00101">nldebug</a>, <a class="el" href="a06758.html#l00432">NL3D::CZone::serial()</a>, and <a class="el" href="a06758.html#l01357">NL3D::CZone::setTileColor()</a>. +<p> +<div class="fragment"><pre>00245 { +00246 <span class="comment">// Lookup the zone</span> +00247 string zonePathLookup = CPath::lookup (_ZoneName, <span class="keyword">false</span>, <span class="keyword">false</span>, <span class="keyword">true</span>); +00248 <span class="keywordflow">if</span> (zonePathLookup == <span class="stringliteral">""</span>) +00249 zonePathLookup = <a class="code" href="a03752.html#NL3D_1_1CZoneLoadingTaskr3">_ZoneName</a>; +00250 +00251 CZone *ZoneTmp = <span class="keyword">new</span> CZone; +00252 <a class="code" href="a02653.html">CIFile</a> <a class="code" href="a04115.html#a95">file</a>; +00253 <span class="keywordflow">if</span>(<a class="code" href="a04115.html#a95">file</a>.open(zonePathLookup)) +00254 { +00255 ZoneTmp->serial(file); +00256 <a class="code" href="a04115.html#a95">file</a>.close(); +00257 ZoneTmp->setTileColor(_Monochrome, _TileColorFactor); +00258 *<a class="code" href="a03752.html#NL3D_1_1CZoneLoadingTaskr2">_Zone</a> = ZoneTmp; +00259 } +00260 <span class="keywordflow">else</span> +00261 { +00262 <a class="code" href="a04199.html#a0">nldebug</a>(<span class="stringliteral">"CZoneLoadingTask::run(): File not found: %s"</span>, zonePathLookup.c_str ()); +00263 <span class="keyword">delete</span> ZoneTmp; +00264 *<a class="code" href="a03752.html#NL3D_1_1CZoneLoadingTaskr2">_Zone</a> = (CZone*)-1; <span class="comment">// Return error</span> +00265 } +00266 <span class="keyword">delete</span> <span class="keyword">this</span>; +00267 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NL3D_1_1CZoneLoadingTaskr0" doxytag="NL3D::CZoneLoadingTask::_Monochrome" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool <a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaskr0">NL3D::CZoneLoadingTask::_Monochrome</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06771.html#l00175">175</a> of file <a class="el" href="a06771.html">zone_manager.h</a>. +<p> +Referenced by <a class="el" href="a06770.html#l00233">CZoneLoadingTask()</a>, and <a class="el" href="a06770.html#l00244">run()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CZoneLoadingTaskr1" doxytag="NL3D::CZoneLoadingTask::_TileColorFactor" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> float <a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaskr1">NL3D::CZoneLoadingTask::_TileColorFactor</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06771.html#l00176">176</a> of file <a class="el" href="a06771.html">zone_manager.h</a>. +<p> +Referenced by <a class="el" href="a06770.html#l00233">CZoneLoadingTask()</a>, and <a class="el" href="a06770.html#l00244">run()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CZoneLoadingTaskr2" doxytag="NL3D::CZoneLoadingTask::_Zone" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a05363.html#a364">TVolatileZonePtr</a>* <a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaskr2">NL3D::CZoneLoadingTask::_Zone</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06771.html#l00173">173</a> of file <a class="el" href="a06771.html">zone_manager.h</a>. +<p> +Referenced by <a class="el" href="a06770.html#l00233">CZoneLoadingTask()</a>, and <a class="el" href="a06770.html#l00244">run()</a>. </td> + </tr> +</table> +<a class="anchor" name="NL3D_1_1CZoneLoadingTaskr3" doxytag="NL3D::CZoneLoadingTask::_ZoneName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string <a class="el" href="a03752.html#NL3D_1_1CZoneLoadingTaskr3">NL3D::CZoneLoadingTask::_ZoneName</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06771.html#l00174">174</a> of file <a class="el" href="a06771.html">zone_manager.h</a>. +<p> +Referenced by <a class="el" href="a06770.html#l00233">CZoneLoadingTask()</a>, <a class="el" href="a06770.html#l00271">getName()</a>, and <a class="el" href="a06770.html#l00244">run()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLMISC_1_1IRunnablePoso0" doxytag="NL3D::CZoneLoadingTask::Position" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a03128.html">NLMISC::CVector</a> <a class="el" href="a02221.html#NLMISC_1_1IRunnablePoso0">NLMISC::IRunnablePos::Position</a><code> [inherited]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a06486.html#l00046">46</a> of file <a class="el" href="a06486.html">task_manager.h</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a06771.html">zone_manager.h</a><li><a class="el" href="a06770.html">zone_manager.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 08:35:59 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |