亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qc-lang.htm

?? Quake 的 各 種 文 檔 格 式 說 明
?? HTM
字號:
<HTML><HEAD>
<TITLE>Quake-C Specificacions  v1.0</TITLE>
<LINK REV="MADE" HREF="mailto:100625.2622@compuserve.com">
</HEAD>  
<BODY BGCOLOR="#FFFFFF">

<H1><FONT COLOR="#007F00"><A NAME="QC-LANG">The Quake-C Language</A></FONT></H1>

<p>This is a <b>very crude manual</b> of Quake-C. It is rather
<b>incomplete</b>.

<h2>Basic constructs of Quake-C</h2>




<h4>Comments</h4>

<ul>
<li> <b>//</b> followed by comments, until the next line.
<li> <b>/*</b> enclose a block comments </b>*/</b>
</ul>
Those comments are the same as in C++ (and many C languages).

<h4>Names</h4>

<p>Names of variable, fields, or functions have a <b>maximum of 64</b> 
characters, must begin with A-Z,a-z, or _, and can continue with those 
characters or 0-9.</p>


<h4>Definition of types</h4>
 
<p>You <b>cannot</b> define new types from the <a href="qc-types.htm#simpletype" target="content">existing</a>
ones. In particular, you cannot define new structure, new objects, and you cannot
affect a new name to a type (as does <b>typedef</b> in C).</p> 
 
<p>These restrictions make Quake-C compare unfavourably even to <b>Basic</b>, and
sure it's about time the id software guys hired someone that already wrote a 
compiler.</p>
 

<h4>Definition of variables</h4>

<p>
<pre>
    <a href="qc-types.htm#simpletype" target="content">type</a> <i>variable1</i>, <i>variable2</i>;
</pre>
where <b>type</b> is one of the pre-defined
<a href="qc-types.htm#simpletype" target="content">simple types</a>.</p>

<p>
You can also affect default values to variables, for instance:
<pre>
    <a href="qc-types.htm#simpletype" target="content">type</a> <i>variable1</i> = <i>value</i>;
</pre>
</p>

<p><b>Scoping of variables:</b> There are two levels of scoping.
By default all variables are global: they can be accessed by any functions,
and they are shared by all the functions (and all the clients of a given
network server, of course).
</p>
<p>But inside the functions, using the keyword <b>local</b> just before the
declaration of a variable, you can make this variable visible only the
the function itself (i.e. it will be allocated on the stack).
</p>
<p>Note that parameters of a functions are treated like local variables,
they are only visible to the function, but they can be modified.
</p>

<h4>Definitions of constants</h4>

<p>Any global variable that is initialised by setting a value to it is
actually assumed to be a constant.</p>

<p>Since a constant is in fact represented by immediate values, you should
<b>NEVER</b> attempt to modify a constant by giving it anothe value.
Otherwise the program might not function correctly.
</p>
<p>The constants are not saved to game files. Only regular variables are.
</p>


<h4>Definitions of functions</h4>

<p>
The general structure of a function definition is:
<pre>
    <a href="qc-types.htm#simpletype" target="content">type</a> <b>(</b><a href="qc-types.htm#simpletype" target="content">type</a> <i>param1</i>, <a href="qc-types.htm#simpletype" target="content">type</a><i>param2</i>, ... <b>)</b> <i>function</i> =
    {
       <i>... code ...</i>
    }<b>;</b>
</pre>
Don't forget the <b>;</b> after the brackets.
</p>

<p>Here are some examples:
<pre>
    void()		think = {...}<b>;</b>
    entity()	FindTarget = {...}<b>;</b>
    void(vector destination, float speed, void() callback)	SUB_CalcMove = {...}<b>;</b>
</pre>
</p>


<h4>Function declaration</h4>

<p>
If you want to use a function before defining it,
you must declare it, otherwise the Quake-C compiler
will not be able to use it.</p>
<p>
The general structure of a function declaration is:
<pre>
    <a href="qc-types.htm#simpletype" target="content">type</a> <b>(</b><a href="qc-types.htm#simpletype" target="content">type</a> <i>param1</i>, <a href="qc-types.htm#simpletype" target="content">type</a><i>param2</i>, ... <b>)</b> <i>function</i><b>;</b>
</pre>
</p>


<h4>Definition of a frame function</h4>

<p>Frame functions (also called <i>States</i>) are special functions made for 
convenience.  They are meant to facilitate the definition of animation
frames, by making them more readable.</p>

<p>Here is an example:
<pre>
    void() <i>framename</i> = [<i>$framenum</i>, <i>nextthink</i>] { <i>...code...</i>};
</pre>
It is strictly equivalent to:
<pre>
    void() <i>framename</i> =
    {
       self.frame= <i>$framenum</i>;  // the model frame to displayed
       self.nextthink = time + 0.1;   // next frame happens in 1/10 of second
       self.think = <i>nextthink</i>; // the function to call at the next frame
       <i>...code...</i>
    };
</pre>

<hr>

<h2>Controling the flow of execution in Quake-C</h2>

<h4>Conditional construct</h4>
<pre>
    <b>if</b>( <i>expression</i> )
    {
      <i>statements</i>
    }
    <b>else</b>
    {
      <i>statements</i>
    }
</pre>

<h4>Loop construct</h4>
<pre>
    <b>while</b>( <i>expression</i> )
    {
      <i>statements</i>
    }
</pre>
or
<pre>
    <b>do</b>
    { 
      <i>statements</i>
    }<b>while</b>( <i>expression</i> )
</pre>


<h4>Function calls</h4>

<p>Call a function:
<pre>
    <i>function_name</i> ( <i>parameter1</i>, <i>parameter2</i>,... )
</pre>
The cannot be more than 8 parameters.
</p>
<p>Return a value:
<pre>
    <b>return</b>( <i>expression</i> )
</pre>
</p>

<h4>Logical operations</h4>
<pre>
     !   // logical not
     &&  // logical and
     ||  // logical or
</pre>
<p>Take care that in <b>if()</b> conditional expressions containing two
or more logical clauses, all the clauses will be evaluated before the
condition test (like in Basic, and unlike C).
</p>
<p>That means that if one part of your condition is not always valid or defined,
you had better decompose your <b>if()</b> into two successive <b>if()</b>.
It should also make it faster.
</p>

<h4>Comparisons</h4>
<pre>
     <=    <      >=     >  
     ==  // equal, beware at the double <b>=</b> like in C.
     !=  // not equal, like in C.
</pre>

<h4>Operations on floats or integer</h4>

<p><pre>
     *  /  -  +
</pre>
Use parenthesis to remove ambiguities.</p>

<p>Those operators perform bitwise operations on integers:
<pre>
    &   // bitwise and
    |   // bitwise or
</pre>
These operators treat floats like integers, so they are usually
meant to be used with values made of bit masks.</p>


<hr>

</BODY></HTML>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲天天做日日做天天谢日日欢 | 日韩福利视频导航| 蜜臀av亚洲一区中文字幕| 成人精品在线视频观看| 欧美一区二区三区人| 中文字幕一区二区三区四区不卡| 日韩激情av在线| 色一区在线观看| 国产欧美一区二区精品秋霞影院| 欧美a一区二区| 欧美日韩一本到| 中文字幕一区三区| 国产电影一区在线| 精品国产一区二区在线观看| 亚洲国产精品精华液网站| 99久久伊人精品| 久久久久亚洲蜜桃| 精品制服美女丁香| 欧美一区二区福利视频| 亚洲成av人影院在线观看网| 一本大道久久a久久精品综合| 国产欧美一区二区精品久导航| 九九九精品视频| 欧美mv日韩mv国产| 免费高清在线一区| 精品国产一区二区三区av性色| 日韩高清在线不卡| 欧美一级免费大片| 日韩av不卡一区二区| 91精品中文字幕一区二区三区| 亚洲一区二区三区在线看| 欧美在线免费播放| 亚洲成人福利片| 777a∨成人精品桃花网| 麻豆91在线播放免费| 欧美成人一区二区三区在线观看| 麻豆成人久久精品二区三区红| 91精品国产91热久久久做人人 | 欧美老年两性高潮| 亚洲国产成人91porn| 91精品麻豆日日躁夜夜躁| 日韩影院免费视频| 欧美成人午夜电影| 风间由美一区二区三区在线观看 | 久久久www成人免费无遮挡大片 | 日本欧美加勒比视频| 欧美一级精品大片| 国产丶欧美丶日本不卡视频| 中文字幕一区三区| 欧美丰满少妇xxxxx高潮对白| 日韩精品电影在线| xf在线a精品一区二区视频网站| 国产成人av电影在线观看| 亚洲欧美偷拍三级| 欧美一区二区女人| 国产精品白丝jk黑袜喷水| 亚洲色图在线看| 日韩午夜在线观看| 不卡的电影网站| 日韩高清电影一区| 亚洲成人7777| 久久亚洲综合色| 色婷婷亚洲精品| 久久99在线观看| 亚洲婷婷国产精品电影人久久| 4438成人网| 成人中文字幕合集| 视频一区中文字幕国产| 日本一区二区三区四区| 欧美体内she精高潮| 美女视频黄a大片欧美| 亚洲欧洲精品一区二区三区不卡 | 丁香啪啪综合成人亚洲小说 | 国产69精品久久久久毛片 | 欧美丝袜丝nylons| 国产在线国偷精品产拍免费yy| 亚洲人成网站色在线观看| 精品三级在线看| 欧美在线影院一区二区| 狠狠色狠狠色综合日日91app| 亚洲精品日产精品乱码不卡| 欧美mv日韩mv| 欧美日韩久久久| 99久久久国产精品免费蜜臀| 精品亚洲国内自在自线福利| 一区二区三区在线免费| 国产视频一区不卡| 日韩一级精品视频在线观看| 日本乱码高清不卡字幕| www.一区二区| 韩国理伦片一区二区三区在线播放 | 欧美日韩在线直播| 成人在线视频一区| 国产又黄又大久久| 看片的网站亚洲| 丝袜美腿亚洲综合| 依依成人综合视频| 成人免费在线观看入口| 亚洲国产精品成人综合 | 捆绑调教美女网站视频一区| 亚洲国产精品人人做人人爽| 亚洲欧美一区二区久久 | 久久久影院官网| 日韩女优av电影在线观看| 欧美日韩一区二区三区四区五区| 成人av一区二区三区| 国产不卡一区视频| 国产91精品久久久久久久网曝门| 久久激情综合网| 久久爱另类一区二区小说| 免费高清成人在线| 久久激情综合网| 国产一区二区在线视频| 国产成人丝袜美腿| 成人中文字幕电影| av动漫一区二区| 97精品电影院| 色欧美日韩亚洲| 欧美午夜宅男影院| 欧美精品一二三四| 欧美一级理论片| 久久网站最新地址| 中文字幕在线一区二区三区| 国产精品久久久久久久久久免费看| 国产欧美综合在线| 亚洲伦在线观看| 亚洲成人久久影院| 日韩精品电影一区亚洲| 国产一区二区三区免费在线观看| 国产精品自拍毛片| 99久久er热在这里只有精品66| 一本一道综合狠狠老| 欧美美女黄视频| 日韩精品一区二区三区在线观看| 久久综合网色—综合色88| 中文字幕欧美区| 亚洲综合男人的天堂| 麻豆视频一区二区| 国产99久久久国产精品| 欧洲精品中文字幕| 欧美videos大乳护士334| 国产欧美精品国产国产专区 | 在线一区二区三区做爰视频网站| 欧洲av在线精品| 91精品国产美女浴室洗澡无遮挡| 久久久欧美精品sm网站| 亚洲综合丁香婷婷六月香| 免播放器亚洲一区| www.欧美色图| 欧美电影免费观看高清完整版在线观看| 久久久久久**毛片大全| 亚洲永久精品大片| 国内精品写真在线观看| 色婷婷综合久色| 精品国内片67194| 一区二区三区四区不卡在线| 国产乱子伦视频一区二区三区 | 亚洲一区二区三区视频在线播放 | 中文字幕av一区二区三区高 | 亚洲日本电影在线| 免费看精品久久片| 日本电影欧美片| 久久青草欧美一区二区三区| 亚洲主播在线观看| 成人性生交大合| 欧美一卡在线观看| 亚洲无人区一区| 成人av小说网| 久久精品免费在线观看| 天堂成人免费av电影一区| 成人18视频在线播放| 久久综合色一综合色88| 亚洲日本韩国一区| 国产精品国产a级| 日本女人一区二区三区| 欧美三级中文字| 亚洲丝袜自拍清纯另类| 国产成人精品一区二区三区四区| 欧美乱妇20p| 亚洲国产日韩a在线播放| 欧美日韩国产电影| 久久99国产精品成人| 欧美视频在线一区二区三区 | 欧美变态凌虐bdsm| 日韩一区和二区| 亚洲国产一区二区视频| 国产不卡在线一区| 国产女人aaa级久久久级 | 欧美一级免费大片| 亚洲成av人片一区二区三区| 99久久99久久综合| 亚洲欧洲精品天堂一级| 国产suv精品一区二区883| 精品国产髙清在线看国产毛片| 丝瓜av网站精品一区二区| 欧美性受极品xxxx喷水| 一区二区三区欧美在线观看| 一本久久a久久精品亚洲| 国产精品久久久久一区| 成人激情文学综合网|