Files
vilya/apidocs/com/threerings/puzzle/drop/client/DropBlockSprite.html
T
2011-04-06 17:01:15 -07:00

629 lines
31 KiB
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.6.0_24) on Wed Apr 06 17:00:11 PDT 2011 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
DropBlockSprite (vilya 1.3 API)
</TITLE>
<META NAME="date" CONTENT="2011-04-06">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="DropBlockSprite (vilya 1.3 API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= 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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DropBlockSprite.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../com/threerings/puzzle/drop/client/DropBoardView.html" title="class in com.threerings.puzzle.drop.client"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?com/threerings/puzzle/drop/client/DropBlockSprite.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="DropBlockSprite.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.threerings.media.AbstractMedia">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.threerings.puzzle.drop.client</FONT>
<BR>
Class DropBlockSprite</H2>
<PRE>
<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">com.threerings.media.AbstractMedia
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by ">com.threerings.media.sprite.Sprite
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html" title="class in com.threerings.puzzle.drop.client">com.threerings.puzzle.drop.client.DropSprite</A>
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.threerings.puzzle.drop.client.DropBlockSprite</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>com.threerings.media.util.Pathable, com.threerings.util.DirectionCodes, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Shape.html?is-external=true" title="class or interface in java.awt">Shape</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>DropBlockSprite</B><DT>extends <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html" title="class in com.threerings.puzzle.drop.client">DropSprite</A></DL>
</PRE>
<P>
The drop block sprite represents a block of multiple pieces that can be rotated to any of the
four cardinal compass directions. As such, it may span multiple columns or rows depending on
its orientation. The block has a "central" piece around which it rotates, with the other pieces
referred to as "external" pieces.
<P>
<P>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_com.threerings.media.AbstractMedia"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class com.threerings.media.AbstractMedia</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>HUD_LAYER</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_com.threerings.util.DirectionCodes"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from interface com.threerings.util.DirectionCodes</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>CARDINAL_DIRECTIONS, CCW, CW, DIRECTION_COUNT, DOWN, EAST, EASTNORTHEAST, EASTSOUTHEAST, FINE_DIRECTION_COUNT, HORIZONTAL, LEFT, NONE, NORTH, NORTHEAST, NORTHNORTHEAST, NORTHNORTHWEST, NORTHWEST, RIGHT, SOUTH, SOUTHEAST, SOUTHSOUTHEAST, SOUTHSOUTHWEST, SOUTHWEST, UP, VERTICAL, WEST, WESTNORTHWEST, WESTSOUTHWEST</CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#DropBlockSprite(com.threerings.puzzle.drop.client.DropBoardView, int, int, int, int[])">DropBlockSprite</A></B>(<A HREF="../../../../../com/threerings/puzzle/drop/client/DropBoardView.html" title="class in com.threerings.puzzle.drop.client">DropBoardView</A>&nbsp;view,
int&nbsp;col,
int&nbsp;row,
int&nbsp;orient,
int[]&nbsp;pieces)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a drop block sprite and starts it dropping.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#DropBlockSprite(com.threerings.puzzle.drop.client.DropBoardView, int, int, int, int[], int)">DropBlockSprite</A></B>(<A HREF="../../../../../com/threerings/puzzle/drop/client/DropBoardView.html" title="class in com.threerings.puzzle.drop.client">DropBoardView</A>&nbsp;view,
int&nbsp;col,
int&nbsp;row,
int&nbsp;orient,
int[]&nbsp;pieces,
int&nbsp;renderOrder)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a drop block sprite and starts it dropping.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#canPopup()">canPopup</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Can this sprite pop-up a row on a forgiving rotation?</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#didPopup()">didPopup</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Called if we pop up to decrement the remaining popups we have.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#getBoardBounds()">getBoardBounds</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bounds of the block in board piece coordinates.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#getColumns()">getColumns</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of the column numbers containing the block pieces.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#getExternalColumn()">getExternalColumn</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the column the external piece is located in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#getExternalRow()">getExternalRow</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the row the external piece is located in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#getRows()">getRows</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array of the row numbers containing the block pieces.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#setBoardLocation(int, int)">setBoardLocation</A></B>(int&nbsp;row,
int&nbsp;col)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the row and column the piece is located in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#setColumn(int)">setColumn</A></B>(int&nbsp;col)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the column the piece is located in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#setOrientation(int)">setOrientation</A></B>(int&nbsp;orient)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the sprite image offset to reflect the direction in which the external piece is
hanging.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#setRow(int)">setRow</A></B>(int&nbsp;row)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the row the piece is located in.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/client/DropBlockSprite.html#toString(java.lang.StringBuilder)">toString</A></B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</A>&nbsp;buf)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.threerings.puzzle.drop.client.DropSprite"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.threerings.puzzle.drop.client.<A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html" title="class in com.threerings.puzzle.drop.client">DropSprite</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#drop()">drop</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#fastForward(long)">fastForward</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#getColumn()">getColumn</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#getDistance()">getDistance</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#getPercentDone(long)">getPercentDone</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#getPieces()">getPieces</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#getRow()">getRow</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#getVelocity()">getVelocity</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#inside(java.awt.Shape)">inside</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#isBouncing()">isBouncing</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#isDropping()">isDropping</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#paint(java.awt.Graphics2D)">paint</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setBouncing(boolean)">setBouncing</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setColumnOffset(int)">setColumnOffset</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setPieces(int[])">setPieces</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setRowOffset(int)">setRowOffset</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setVelocity(float)">setVelocity</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#stop()">stop</A>, <A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#tick(long)">tick</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.threerings.media.sprite.Sprite"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.threerings.media.sprite.Sprite</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>addSpriteObserver, cancelMove, contains, getHeight, getOrientation, getPath, getWidth, getX, getXOffset, getY, getYOffset, hitTest, intersects, isMoving, move, paintPath, pathBeginning, pathCompleted, removeSpriteObserver, setLocation, viewLocationDidChange</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.threerings.media.AbstractMedia"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class com.threerings.media.AbstractMedia</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, intersects, intersects, invalidate, queueNotification, renderCompareTo, setRenderOrder, toString</CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.threerings.media.util.Pathable"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.threerings.media.util.Pathable</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>getBounds</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="DropBlockSprite(com.threerings.puzzle.drop.client.DropBoardView, int, int, int, int[])"><!-- --></A><H3>
DropBlockSprite</H3>
<PRE>
public <B>DropBlockSprite</B>(<A HREF="../../../../../com/threerings/puzzle/drop/client/DropBoardView.html" title="class in com.threerings.puzzle.drop.client">DropBoardView</A>&nbsp;view,
int&nbsp;col,
int&nbsp;row,
int&nbsp;orient,
int[]&nbsp;pieces)</PRE>
<DL>
<DD>Constructs a drop block sprite and starts it dropping.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>view</CODE> - the board view upon which this sprite will be displayed.<DD><CODE>col</CODE> - the column of the central piece.<DD><CODE>row</CODE> - the row of the central piece.<DD><CODE>orient</CODE> - the orientation of the sprite.<DD><CODE>pieces</CODE> - the pieces displayed by the sprite.</DL>
</DL>
<HR>
<A NAME="DropBlockSprite(com.threerings.puzzle.drop.client.DropBoardView, int, int, int, int[], int)"><!-- --></A><H3>
DropBlockSprite</H3>
<PRE>
public <B>DropBlockSprite</B>(<A HREF="../../../../../com/threerings/puzzle/drop/client/DropBoardView.html" title="class in com.threerings.puzzle.drop.client">DropBoardView</A>&nbsp;view,
int&nbsp;col,
int&nbsp;row,
int&nbsp;orient,
int[]&nbsp;pieces,
int&nbsp;renderOrder)</PRE>
<DL>
<DD>Constructs a drop block sprite and starts it dropping.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>view</CODE> - the board view upon which this sprite will be displayed.<DD><CODE>col</CODE> - the column of the central piece.<DD><CODE>row</CODE> - the row of the central piece.<DD><CODE>orient</CODE> - the orientation of the sprite.<DD><CODE>pieces</CODE> - the pieces displayed by the sprite.<DD><CODE>renderOrder</CODE> - the rendering order of the sprite.</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getRows()"><!-- --></A><H3>
getRows</H3>
<PRE>
public int[] <B>getRows</B>()</PRE>
<DL>
<DD>Returns an array of the row numbers containing the block pieces. The first index is the row
of the central piece. The array is cached and re-used internally and so the caller should
make their own copy if they care to modify it.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getColumns()"><!-- --></A><H3>
getColumns</H3>
<PRE>
public int[] <B>getColumns</B>()</PRE>
<DL>
<DD>Returns an array of the column numbers containing the block pieces. The first index is the
column of the central piece. The array is cached and re-used internally and so the caller
should make their own copy if they care to modify it.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getBoardBounds()"><!-- --></A><H3>
getBoardBounds</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Rectangle.html?is-external=true" title="class or interface in java.awt">Rectangle</A> <B>getBoardBounds</B>()</PRE>
<DL>
<DD>Returns the bounds of the block in board piece coordinates. The bounds rectangle is cached
and re-used internally and so the caller should make their own copy if they care to modify
it.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getExternalRow()"><!-- --></A><H3>
getExternalRow</H3>
<PRE>
public int <B>getExternalRow</B>()</PRE>
<DL>
<DD>Returns the row the external piece is located in.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getExternalColumn()"><!-- --></A><H3>
getExternalColumn</H3>
<PRE>
public int <B>getExternalColumn</B>()</PRE>
<DL>
<DD>Returns the column the external piece is located in.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setColumn(int)"><!-- --></A><H3>
setColumn</H3>
<PRE>
public void <B>setColumn</B>(int&nbsp;col)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setColumn(int)">DropSprite</A></CODE></B></DD>
<DD>Sets the column the piece is located in.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setColumn(int)">setColumn</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html" title="class in com.threerings.puzzle.drop.client">DropSprite</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setRow(int)"><!-- --></A><H3>
setRow</H3>
<PRE>
public void <B>setRow</B>(int&nbsp;row)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setRow(int)">DropSprite</A></CODE></B></DD>
<DD>Set the row the piece is located in.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setRow(int)">setRow</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html" title="class in com.threerings.puzzle.drop.client">DropSprite</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setBoardLocation(int, int)"><!-- --></A><H3>
setBoardLocation</H3>
<PRE>
public void <B>setBoardLocation</B>(int&nbsp;row,
int&nbsp;col)</PRE>
<DL>
<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setBoardLocation(int, int)">DropSprite</A></CODE></B></DD>
<DD>Sets the row and column the piece is located in.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setBoardLocation(int, int)">setBoardLocation</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html" title="class in com.threerings.puzzle.drop.client">DropSprite</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setOrientation(int)"><!-- --></A><H3>
setOrientation</H3>
<PRE>
public void <B>setOrientation</B>(int&nbsp;orient)</PRE>
<DL>
<DD>Updates the sprite image offset to reflect the direction in which the external piece is
hanging.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>setOrientation</CODE> in interface <CODE>com.threerings.media.util.Pathable</CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#setOrientation(int)">setOrientation</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html" title="class in com.threerings.puzzle.drop.client">DropSprite</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toString(java.lang.StringBuilder)"><!-- --></A><H3>
toString</H3>
<PRE>
public void <B>toString</B>(<A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</A>&nbsp;buf)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html#toString(java.lang.StringBuilder)">toString</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/puzzle/drop/client/DropSprite.html" title="class in com.threerings.puzzle.drop.client">DropSprite</A></CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="canPopup()"><!-- --></A><H3>
canPopup</H3>
<PRE>
public boolean <B>canPopup</B>()</PRE>
<DL>
<DD>Can this sprite pop-up a row on a forgiving rotation?
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="didPopup()"><!-- --></A><H3>
didPopup</H3>
<PRE>
public void <B>didPopup</B>()</PRE>
<DL>
<DD>Called if we pop up to decrement the remaining popups we have.
<P>
<DD><DL>
</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>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DropBlockSprite.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../../com/threerings/puzzle/drop/client/DropBoardView.html" title="class in com.threerings.puzzle.drop.client"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?com/threerings/puzzle/drop/client/DropBlockSprite.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="DropBlockSprite.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.threerings.media.AbstractMedia">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright &#169; 2011. All Rights Reserved.
</BODY>
</HTML>