⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zigletcomp_8h-source.html

📁 用来介绍ZIG Library游戏网络引擎的文档
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>zigletcomp.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>zigletcomp.h</h1><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment">    ZIG - An extendable, portable game engine focused on networking &amp; scripting</span>00003 <span class="comment">    Project Home: http://zige.sourceforge.net</span>00004 <span class="comment">    Copyright (C) 2002  F醔io Reis Cecin &lt;fcecin AT inf DOT ufrgs DOT br&gt;</span>00005 <span class="comment"></span>00006 <span class="comment">    This library is free software; you can redistribute it and/or</span>00007 <span class="comment">    modify it under the terms of the GNU Lesser General Public</span>00008 <span class="comment">    License as published by the Free Software Foundation; either</span>00009 <span class="comment">    version 2.1 of the License, or (at your option) any later version.</span>00010 <span class="comment"></span>00011 <span class="comment">    This library is distributed in the hope that it will be useful,</span>00012 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>00013 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>00014 <span class="comment">    Lesser General Public License for more details.</span>00015 <span class="comment"></span>00016 <span class="comment">    You should have received a copy of the GNU Lesser General Public</span>00017 <span class="comment">    License along with this library; if not, write to the Free Software</span>00018 <span class="comment">    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA   </span>00019 <span class="comment">*/</span>00020 00021 <span class="preprocessor">#ifndef _ZIG_HEADER_ZIGLETCOMP_H_</span>00022 <span class="preprocessor"></span><span class="preprocessor">#define _ZIG_HEADER_ZIGLETCOMP_H_</span>00023 <span class="preprocessor"></span>00024 <span class="preprocessor">#include "<a class="code" href="zig_8h.html">zig.h</a>"</span>00025 <span class="preprocessor">#include "buffer.h"</span>00026 <span class="preprocessor">#include "console.h"</span>00027 00028 <span class="preprocessor">#include &lt;string&gt;</span>00029 <span class="comment">//using namespace std;</span>00030 00031 <span class="keyword">class </span><a class="code" href="classziglet__c.html">ziglet_c</a>;00032 <a name="l00034"></a><a class="code" href="classziglet__component__c.html">00034</a> <span class="keyword">class </span><a class="code" href="classziglet__component__c.html">ziglet_component_c</a> {00035 <span class="keyword">public</span>:00036 00037         <span class="comment">//ctor</span>00038         <span class="comment">//dir: owner ziglet, version: string version where this component (file) is located,</span>00039         <span class="comment">//name: the filename of the component.</span>00040         <a class="code" href="classziglet__component__c.html#a1">ziglet_component_c</a>(<a class="code" href="classconsole__c.html">console_c</a> *conio, <a class="code" href="classziglet__c.html">ziglet_c</a> *dir, std::string version, std::string name, <span class="keywordtype">int</span> file_size);00041 00043         <a class="code" href="classziglet__component__c.html#a1">ziglet_component_c</a>(<span class="keyword">const</span> <a class="code" href="classziglet__component__c.html">ziglet_component_c</a> &amp;z);00044 00045         <span class="comment">//dtor</span>00046         <span class="keyword">virtual</span> ~<a class="code" href="classziglet__component__c.html">ziglet_component_c</a>();00047 <a name="l00049"></a><a class="code" href="classziglet__component__c.html#a3">00049</a>         std::string <a class="code" href="classziglet__component__c.html#a3">get_name</a>() { <span class="keywordflow">return</span> name; }00050 <a name="l00052"></a><a class="code" href="classziglet__component__c.html#a4">00052</a>         std::string <a class="code" href="classziglet__component__c.html#a4">get_version</a>() { <span class="keywordflow">return</span> version; }00053 <a name="l00055"></a><a class="code" href="classziglet__component__c.html#a5">00055</a>         <span class="keywordtype">int</span> <a class="code" href="classziglet__component__c.html#a5">get_size</a>() { <span class="keywordflow">return</span> size; }00056 00058         NLushort <a class="code" href="classziglet__component__c.html#a6">get_CRC16</a>();00059 00061         std::string <a class="code" href="classziglet__component__c.html#a7">location</a>();00062 00063         <span class="comment">//remove flag - only for ziglet_c::update_file_list()</span>00064         <span class="keywordtype">bool</span> remove;00065 00066 <span class="keyword">protected</span>:00067 00068         <span class="comment">//owner ziglet (folder)</span>00069         <a class="code" href="classziglet__c.html">ziglet_c</a> *ziglet;00070 00071         <span class="comment">//file name</span>00072         std::string name;00073 00074         <span class="comment">//ziglet version (directory) where this component (filename) is located</span>00075         std::string version;00076 00077         <span class="comment">//file CRC16 (-1 if not calculated yet)</span>00078         <span class="keywordtype">int</span> CRC16;00079 00080         <span class="comment">//file size</span>00081         <span class="keywordtype">int</span> size;00082 00083         <span class="comment">//console</span>00084         <a class="code" href="classconsole__c.html">console_c</a> *con;00085 00086 <span class="keyword">private</span>:00087 00088         <a class="code" href="classziglet__component__c.html">ziglet_component_c</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classziglet__component__c.html">ziglet_component_c</a>&amp;); 00089 };00090 00091 <span class="preprocessor">#endif</span>00092 <span class="preprocessor"></span></pre></div><hr><address style="align: right;"><small>Generated on Mon Jan 24 21:14:23 2005 for ZIG by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -