📄 index-3.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_01) on Tue Jan 29 17:09:38 CST 2008 -->
<TITLE>
C-Index
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="C-Index";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index-2.html"><B>PREV LETTER</B></A>
<A HREF="index-4.html"><B>NEXT LETTER</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?index-filesindex-3.html" target="_top"><B>FRAMES</B></A>
<A HREF="index-3.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">H</A> <A HREF="index-9.html">I</A> <A HREF="index-10.html">K</A> <A HREF="index-11.html">L</A> <A HREF="index-12.html">M</A> <A HREF="index-13.html">N</A> <A HREF="index-14.html">O</A> <A HREF="index-15.html">P</A> <A HREF="index-16.html">R</A> <A HREF="index-17.html">S</A> <A HREF="index-18.html">T</A> <A HREF="index-19.html">U</A> <A HREF="index-20.html">W</A> <HR>
<A NAME="_C_"><!-- --></A><H2>
<B>C</B></H2>
<DL>
<DT><A HREF="../cn/itcast/tetris/util/Global.html#CELL_HEIGHT"><B>CELL_HEIGHT</B></A> -
Static variable in class cn.itcast.tetris.util.<A HREF="../cn/itcast/tetris/util/Global.html" title="class in cn.itcast.tetris.util">Global</A>
<DD>一个格子的高度, 单位:像素 <BR> 对应的配置文件中的关键字为: cell_width, 或用 cell_size指定<BR> 范围1 至 100<BR> 缺省值为 23
<DT><A HREF="../cn/itcast/tetris/util/Global.html#CELL_WIDTH"><B>CELL_WIDTH</B></A> -
Static variable in class cn.itcast.tetris.util.<A HREF="../cn/itcast/tetris/util/Global.html" title="class in cn.itcast.tetris.util">Global</A>
<DD>一个格子的宽度, 单位:像素 <BR> 对应的配置文件中的关键字为: cell_width, 或用 cell_size指定<BR> 范围1 至 100<BR> 缺省值为 23
<DT><A HREF="../cn/itcast/tetris/entities/Ground.html#changeFullLineColor(int)"><B>changeFullLineColor(int)</B></A> -
Method in class cn.itcast.tetris.entities.<A HREF="../cn/itcast/tetris/entities/Ground.html" title="class in cn.itcast.tetris.entities">Ground</A>
<DD>改变指定行的颜色,(可以做为消行前的效果)
<DT><A HREF="../cn/itcast/tetris/entities/Shape.html#changePause()"><B>changePause()</B></A> -
Method in class cn.itcast.tetris.entities.<A HREF="../cn/itcast/tetris/entities/Shape.html" title="class in cn.itcast.tetris.entities">Shape</A>
<DD>更改暂停状态<BR> 若是暂停状态, 则继续下落<BR> 若正在下落, 则暂停
<DT><A HREF="../cn/itcast/tetris/entities/Ground.html#clear()"><B>clear()</B></A> -
Method in class cn.itcast.tetris.entities.<A HREF="../cn/itcast/tetris/entities/Ground.html" title="class in cn.itcast.tetris.entities">Ground</A>
<DD>清空容器
<DT><A HREF="../cn/itcast/tetris/entities/UnitType.html#clone()"><B>clone()</B></A> -
Method in class cn.itcast.tetris.entities.<A HREF="../cn/itcast/tetris/entities/UnitType.html" title="class in cn.itcast.tetris.entities">UnitType</A>
<DD>返回一个新的,和自己有一样的颜色并且类型相同的UnitType
<DT><A HREF="../cn/itcast/tetris/entities/UnitType.html#cloneProperties(cn.itcast.tetris.entities.UnitType)"><B>cloneProperties(UnitType)</B></A> -
Method in class cn.itcast.tetris.entities.<A HREF="../cn/itcast/tetris/entities/UnitType.html" title="class in cn.itcast.tetris.entities">UnitType</A>
<DD>把自己克隆成和指定的UnitType 相同的 UnitType, value 和 Color 都会被克隆
<DT><A HREF="../cn/itcast/tetris/controller/package-summary.html"><B>cn.itcast.tetris.controller</B></A> - package cn.itcast.tetris.controller<DD> <DT><A HREF="../cn/itcast/tetris/entities/package-summary.html"><B>cn.itcast.tetris.entities</B></A> - package cn.itcast.tetris.entities<DD> <DT><A HREF="../cn/itcast/tetris/game/package-summary.html"><B>cn.itcast.tetris.game</B></A> - package cn.itcast.tetris.game<DD> <DT><A HREF="../cn/itcast/tetris/listener/package-summary.html"><B>cn.itcast.tetris.listener</B></A> - package cn.itcast.tetris.listener<DD> <DT><A HREF="../cn/itcast/tetris/util/package-summary.html"><B>cn.itcast.tetris.util</B></A> - package cn.itcast.tetris.util<DD> <DT><A HREF="../cn/itcast/tetris/view/package-summary.html"><B>cn.itcast.tetris.view</B></A> - package cn.itcast.tetris.view<DD> <DT><A HREF="../cn/itcast/tetris/util/Global.html#COMMON_COLORS"><B>COMMON_COLORS</B></A> -
Static variable in class cn.itcast.tetris.util.<A HREF="../cn/itcast/tetris/util/Global.html" title="class in cn.itcast.tetris.util">Global</A>
<DD>
<DT><A HREF="../cn/itcast/tetris/game/CommonShapeFactory.html" title="class in cn.itcast.tetris.game"><B>CommonShapeFactory</B></A> - Class in <A HREF="../cn/itcast/tetris/game/package-summary.html">cn.itcast.tetris.game</A><DD>为了扩展一些功能,可用配置文件配置这个工厂用的颜色<DT><A HREF="../cn/itcast/tetris/game/CommonShapeFactory.html#CommonShapeFactory()"><B>CommonShapeFactory()</B></A> -
Constructor for class cn.itcast.tetris.game.<A HREF="../cn/itcast/tetris/game/CommonShapeFactory.html" title="class in cn.itcast.tetris.game">CommonShapeFactory</A>
<DD>
<DT><A HREF="../cn/itcast/tetris/controller/Controller.html#continueGame()"><B>continueGame()</B></A> -
Method in class cn.itcast.tetris.controller.<A HREF="../cn/itcast/tetris/controller/Controller.html" title="class in cn.itcast.tetris.controller">Controller</A>
<DD>继续游戏
<DT><A HREF="../cn/itcast/tetris/controller/Controller.html" title="class in cn.itcast.tetris.controller"><B>Controller</B></A> - Class in <A HREF="../cn/itcast/tetris/controller/package-summary.html">cn.itcast.tetris.controller</A><DD>控制器<BR> 控制Ground, Snake, Food<BR> 负责游戏的逻辑<BR> 处理按键事件<BR> <BR><DT><A HREF="../cn/itcast/tetris/controller/Controller.html#Controller(cn.itcast.tetris.entities.ShapeFactory, cn.itcast.tetris.entities.Ground, cn.itcast.tetris.view.GamePanel)"><B>Controller(ShapeFactory, Ground, GamePanel)</B></A> -
Constructor for class cn.itcast.tetris.controller.<A HREF="../cn/itcast/tetris/controller/Controller.html" title="class in cn.itcast.tetris.controller">Controller</A>
<DD>
<DT><A HREF="../cn/itcast/tetris/controller/Controller.html#Controller(cn.itcast.tetris.entities.ShapeFactory, cn.itcast.tetris.entities.Ground, cn.itcast.tetris.view.GamePanel, javax.swing.JLabel)"><B>Controller(ShapeFactory, Ground, GamePanel, JLabel)</B></A> -
Constructor for class cn.itcast.tetris.controller.<A HREF="../cn/itcast/tetris/controller/Controller.html" title="class in cn.itcast.tetris.controller">Controller</A>
<DD>多接受一个 JTextComponent, 可以给在这个组件上显示提示信息
<DT><A HREF="../cn/itcast/tetris/util/Global.html#CURRENT_SPEED"><B>CURRENT_SPEED</B></A> -
Static variable in class cn.itcast.tetris.util.<A HREF="../cn/itcast/tetris/util/Global.html" title="class in cn.itcast.tetris.util">Global</A>
<DD>保存当前游戏中图形的下落速度
</DL>
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Package</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="index-2.html"><B>PREV LETTER</B></A>
<A HREF="index-4.html"><B>NEXT LETTER</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html?index-filesindex-3.html" target="_top"><B>FRAMES</B></A>
<A HREF="index-3.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<A HREF="index-1.html">A</A> <A HREF="index-2.html">B</A> <A HREF="index-3.html">C</A> <A HREF="index-4.html">D</A> <A HREF="index-5.html">E</A> <A HREF="index-6.html">F</A> <A HREF="index-7.html">G</A> <A HREF="index-8.html">H</A> <A HREF="index-9.html">I</A> <A HREF="index-10.html">K</A> <A HREF="index-11.html">L</A> <A HREF="index-12.html">M</A> <A HREF="index-13.html">N</A> <A HREF="index-14.html">O</A> <A HREF="index-15.html">P</A> <A HREF="index-16.html">R</A> <A HREF="index-17.html">S</A> <A HREF="index-18.html">T</A> <A HREF="index-19.html">U</A> <A HREF="index-20.html">W</A> <HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -