📄 controller.html
字号:
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="getShapeFactory()"><!-- --></A><H3>
getShapeFactory</H3>
<PRE>
public <A HREF="../../../../cn/itcast/tetris/entities/ShapeFactory.html" title="class in cn.itcast.tetris.entities">ShapeFactory</A> <B>getShapeFactory</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setShapeFactory(cn.itcast.tetris.entities.ShapeFactory)"><!-- --></A><H3>
setShapeFactory</H3>
<PRE>
public void <B>setShapeFactory</B>(<A HREF="../../../../cn/itcast/tetris/entities/ShapeFactory.html" title="class in cn.itcast.tetris.entities">ShapeFactory</A> shapeFactory)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getGround()"><!-- --></A><H3>
getGround</H3>
<PRE>
public <A HREF="../../../../cn/itcast/tetris/entities/Ground.html" title="class in cn.itcast.tetris.entities">Ground</A> <B>getGround</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setGround(cn.itcast.tetris.entities.Ground)"><!-- --></A><H3>
setGround</H3>
<PRE>
public void <B>setGround</B>(<A HREF="../../../../cn/itcast/tetris/entities/Ground.html" title="class in cn.itcast.tetris.entities">Ground</A> ground)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getGamePanel()"><!-- --></A><H3>
getGamePanel</H3>
<PRE>
public <A HREF="../../../../cn/itcast/tetris/view/GamePanel.html" title="class in cn.itcast.tetris.view">GamePanel</A> <B>getGamePanel</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setGamePanel(cn.itcast.tetris.view.GamePanel)"><!-- --></A><H3>
setGamePanel</H3>
<PRE>
public void <B>setGamePanel</B>(<A HREF="../../../../cn/itcast/tetris/view/GamePanel.html" title="class in cn.itcast.tetris.view">GamePanel</A> gamePanel)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="beforeDeleteFullLine(cn.itcast.tetris.entities.Ground, int)"><!-- --></A><H3>
beforeDeleteFullLine</H3>
<PRE>
public void <B>beforeDeleteFullLine</B>(<A HREF="../../../../cn/itcast/tetris/entities/Ground.html" title="class in cn.itcast.tetris.entities">Ground</A> ground,
int lineNum)</PRE>
<DL>
<DD>处理Ground 触发的 beforeDeleteFullLine 事件将会改变满行的颜色并暂停一段时间
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../cn/itcast/tetris/listener/GroundListener.html#beforeDeleteFullLine(cn.itcast.tetris.entities.Ground, int)">beforeDeleteFullLine</A></CODE> in interface <CODE><A HREF="../../../../cn/itcast/tetris/listener/GroundListener.html" title="interface in cn.itcast.tetris.listener">GroundListener</A></CODE></DL>
</DD>
<DD><DL>
<DD><CODE>lineNum</CODE> - 将要消除的行的行号</DL>
</DD>
</DL>
<HR>
<A NAME="fullLineDeleted(cn.itcast.tetris.entities.Ground, int)"><!-- --></A><H3>
fullLineDeleted</H3>
<PRE>
public void <B>fullLineDeleted</B>(<A HREF="../../../../cn/itcast/tetris/entities/Ground.html" title="class in cn.itcast.tetris.entities">Ground</A> ground,
int deletedLineCount)</PRE>
<DL>
<DD>处理Ground 触发的 fullLineDeleted 事件, 这个方法什么也没做, 只是打印了一句话
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../cn/itcast/tetris/listener/GroundListener.html#fullLineDeleted(cn.itcast.tetris.entities.Ground, int)">fullLineDeleted</A></CODE> in interface <CODE><A HREF="../../../../cn/itcast/tetris/listener/GroundListener.html" title="interface in cn.itcast.tetris.listener">GroundListener</A></CODE></DL>
</DD>
<DD><DL>
<DD><CODE>deletedLineCount</CODE> - 本次消除的行数</DL>
</DD>
</DL>
<HR>
<A NAME="isPlaying()"><!-- --></A><H3>
isPlaying</H3>
<PRE>
public boolean <B>isPlaying</B>()</PRE>
<DL>
<DD>是否正在游戏中
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="getGameInfoLabel()"><!-- --></A><H3>
getGameInfoLabel</H3>
<PRE>
public javax.swing.JLabel <B>getGameInfoLabel</B>()</PRE>
<DL>
<DD>得到显示提示信息的组件
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="setGameInfoLabel(javax.swing.JLabel)"><!-- --></A><H3>
setGameInfoLabel</H3>
<PRE>
public void <B>setGameInfoLabel</B>(javax.swing.JLabel gameInfoLabel)</PRE>
<DL>
<DD>设置
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>gameInfoLabel</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="groundIsFull(cn.itcast.tetris.entities.Ground)"><!-- --></A><H3>
groundIsFull</H3>
<PRE>
public void <B>groundIsFull</B>(<A HREF="../../../../cn/itcast/tetris/entities/Ground.html" title="class in cn.itcast.tetris.entities">Ground</A> ground)</PRE>
<DL>
<DD>处理Ground 的 groundIsFull() 事件, 将触发游戏结束事件
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../cn/itcast/tetris/listener/GroundListener.html#groundIsFull(cn.itcast.tetris.entities.Ground)">groundIsFull</A></CODE> in interface <CODE><A HREF="../../../../cn/itcast/tetris/listener/GroundListener.html" title="interface in cn.itcast.tetris.listener">GroundListener</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="addGameListener(cn.itcast.tetris.listener.GameListener)"><!-- --></A><H3>
addGameListener</H3>
<PRE>
public void <B>addGameListener</B>(<A HREF="../../../../cn/itcast/tetris/listener/GameListener.html" title="interface in cn.itcast.tetris.listener">GameListener</A> l)</PRE>
<DL>
<DD>添加监听器, 可添加多个
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>l</CODE> - </DL>
</DD>
</DL>
<HR>
<A NAME="removeGameListener(cn.itcast.tetris.listener.GameListener)"><!-- --></A><H3>
removeGameListener</H3>
<PRE>
public void <B>removeGameListener</B>(<A HREF="../../../../cn/itcast/tetris/listener/GameListener.html" title="interface in cn.itcast.tetris.listener">GameListener</A> l)</PRE>
<DL>
<DD>移除监听器
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>l</CODE> - </DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<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"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Controller.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-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="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </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">
PREV CLASS
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?cn/itcast/tetris/controller/Controller.html" target="_top"><B>FRAMES</B></A>
<A HREF="Controller.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>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -