1386 lines
57 KiB
HTML
1386 lines
57 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:12 PDT 2011 -->
|
|
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<TITLE>
|
|
DropBoard (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="DropBoard (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> </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/DropBoard.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-all.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
|
|
<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../../index.html?com/threerings/puzzle/drop/data/DropBoard.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="DropBoard.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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.data</FONT>
|
|
<BR>
|
|
Class DropBoard</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 "><A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">com.threerings.puzzle.data.Board</A>
|
|
<IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.threerings.puzzle.drop.data.DropBoard</B>
|
|
</PRE>
|
|
<DL>
|
|
<DT><B>All Implemented Interfaces:</B> <DD>com.threerings.io.Streamable, <A HREF="../../../../../com/threerings/puzzle/drop/data/DropPieceCodes.html" title="interface in com.threerings.puzzle.drop.data">DropPieceCodes</A>, com.threerings.util.DirectionCodes, <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</A></DD>
|
|
</DL>
|
|
<HR>
|
|
<DL>
|
|
<DT><PRE>public class <B>DropBoard</B><DT>extends <A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A><DT>implements <A HREF="../../../../../com/threerings/puzzle/drop/data/DropPieceCodes.html" title="interface in com.threerings.puzzle.drop.data">DropPieceCodes</A></DL>
|
|
</PRE>
|
|
|
|
<P>
|
|
A class that provides for various useful logical operations to be enacted on a two-dimensional
|
|
board and provides an easier mechanism for referencing pieces by position.
|
|
<P>
|
|
|
|
<P>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
|
|
<A NAME="nested_class_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>Nested Class Summary</B></FONT></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static interface</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data">DropBoard.PieceOperation</A></B></CODE>
|
|
|
|
<BR>
|
|
An interface to be implemented by classes that would like to apply some operation to each
|
|
piece in a column or row segment in the board.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="nested_classes_inherited_from_class_com.threerings.io.Streamable"><!-- --></A>
|
|
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
<TH ALIGN="left"><B>Nested classes/interfaces inherited from interface com.threerings.io.Streamable</B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE>com.threerings.io.Streamable.Closure</CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- =========== 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>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data">DropBoard.PieceOperation</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#CLEAR_OP">CLEAR_OP</A></B></CODE>
|
|
|
|
<BR>
|
|
An operation that does naught but clear pieces, which proves to be generally useful.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#INPLACE_ROTATION">INPLACE_ROTATION</A></B></CODE>
|
|
|
|
<BR>
|
|
The rotation constant for rotation wherein the block occupies the same columns when
|
|
rotating.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE>static int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#RADIAL_ROTATION">RADIAL_ROTATION</A></B></CODE>
|
|
|
|
<BR>
|
|
The rotation constant for rotation around a central piece.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="fields_inherited_from_class_com.threerings.puzzle.drop.data.DropPieceCodes"><!-- --></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.puzzle.drop.data.<A HREF="../../../../../com/threerings/puzzle/drop/data/DropPieceCodes.html" title="interface in com.threerings.puzzle.drop.data">DropPieceCodes</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../../../com/threerings/puzzle/drop/data/DropPieceCodes.html#DROP_BLOCK_PIECE_COUNT">DROP_BLOCK_PIECE_COUNT</A>, <A HREF="../../../../../com/threerings/puzzle/drop/data/DropPieceCodes.html#PIECE_NONE">PIECE_NONE</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<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>
|
|
|
|
<!-- ======== 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/data/DropBoard.html#DropBoard()">DropBoard</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Constructs an empty drop board for use when unserializing.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#DropBoard(int[], int, int)">DropBoard</A></B>(int[] board,
|
|
int bwid,
|
|
int bhei)</CODE>
|
|
|
|
<BR>
|
|
Constructs a drop board with the given board and dimensions.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#DropBoard(int, int)">DropBoard</A></B>(int bwid,
|
|
int bhei)</CODE>
|
|
|
|
<BR>
|
|
Constructs a drop board of the given dimensions with its pieces initialized to PIECE_NONE.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#DropBoard(int, int, int)">DropBoard</A></B>(int bwid,
|
|
int bhei,
|
|
int piece)</CODE>
|
|
|
|
<BR>
|
|
Constructs a drop board of the given dimensions with its pieces initialized to the given
|
|
piece.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<!-- ========== 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> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#applyOp(int, int, com.threerings.puzzle.drop.data.DropBoard.PieceOperation)">applyOp</A></B>(int col,
|
|
int row,
|
|
<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data">DropBoard.PieceOperation</A> op)</CODE>
|
|
|
|
<BR>
|
|
Applies a specified <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data"><CODE>DropBoard.PieceOperation</CODE></A> to the specified piece in the board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#applyOp(int, int, int, com.threerings.puzzle.drop.data.DropBoard.PieceOperation)">applyOp</A></B>(int dir,
|
|
int col,
|
|
int row,
|
|
<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data">DropBoard.PieceOperation</A> op)</CODE>
|
|
|
|
<BR>
|
|
Applies a specified <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data"><CODE>DropBoard.PieceOperation</CODE></A> to all pieces in the specified row or column
|
|
starting at the specified coordinates and spanning the remainder of the row or column
|
|
(depending on the application direction) in the board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#applyOp(int, int, int, int, com.threerings.puzzle.drop.data.DropBoard.PieceOperation)">applyOp</A></B>(int dir,
|
|
int col,
|
|
int row,
|
|
int len,
|
|
<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data">DropBoard.PieceOperation</A> op)</CODE>
|
|
|
|
<BR>
|
|
Applies a specified <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data"><CODE>DropBoard.PieceOperation</CODE></A> to all pieces in a row or column segment
|
|
starting at the specified coordinates and of the specified length in the board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#applyRisingPieces(int[])">applyRisingPieces</A></B>(int[] pieces)</CODE>
|
|
|
|
<BR>
|
|
Called by the <A HREF="../../../../../com/threerings/puzzle/drop/client/DropControllerDelegate.html" title="class in com.threerings.puzzle.drop.client"><CODE>DropControllerDelegate</CODE></A> when it's time to apply a rising row of pieces
|
|
to the board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html" title="class in com.threerings.puzzle.drop.data">DropBoard</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#clone()">clone</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#copyInto(com.threerings.puzzle.drop.data.DropBoard)">copyInto</A></B>(<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html" title="class in com.threerings.puzzle.drop.data">DropBoard</A> board)</CODE>
|
|
|
|
<BR>
|
|
Copies the contents of this board directly into the supplied board, overwriting the
|
|
destination board in its entirety.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#dump()">dump</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Outputs a string representation of the board contents.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#dumpAndCompare(com.threerings.puzzle.data.Board)">dumpAndCompare</A></B>(<A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A> other)</CODE>
|
|
|
|
<BR>
|
|
Outputs a string representation of the board contents, interlaced with the supplied
|
|
comparison board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#equals(com.threerings.puzzle.data.Board)">equals</A></B>(<A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A> other)</CODE>
|
|
|
|
<BR>
|
|
Returns whether this board is equal to the given comparison board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#fill(int)">fill</A></B>(int piece)</CODE>
|
|
|
|
<BR>
|
|
Fills the board contents with the given piece.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#getBoard()">getBoard</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the raw board data associated with this board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <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/data/DropBoard.html#getBounds()">getBounds</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the bounds of this board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#getColumnLevels(byte[])">getColumnLevels</A></B>(byte[] columns)</CODE>
|
|
|
|
<BR>
|
|
Populates the given array with the column levels for this board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#getDropDistance(int, int)">getDropDistance</A></B>(int col,
|
|
int row)</CODE>
|
|
|
|
<BR>
|
|
Returns the distance the piece at the given column and row can drop until it hits a
|
|
non-empty piece (defined as <A HREF="../../../../../com/threerings/puzzle/drop/data/DropPieceCodes.html#PIECE_NONE"><CODE>DropPieceCodes.PIECE_NONE</CODE></A>).</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Point.html?is-external=true" title="class or interface in java.awt">Point</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#getForgivingMove(int, int, int, int, int, int, float)">getForgivingMove</A></B>(int col,
|
|
int row,
|
|
int wid,
|
|
int hei,
|
|
int dx,
|
|
int dy,
|
|
float pctdone)</CODE>
|
|
|
|
<BR>
|
|
Returns a <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Point.html?is-external=true" title="class or interface in java.awt"><CODE>Point</CODE></A> object containing the coordinates to place the bottom-left of the
|
|
given block at after moving it the given distance on the x- and y-axes, or
|
|
<code>null</code> if the move is not valid.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int[]</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#getForgivingRotation(int[], int[], int, int, int, float, boolean)">getForgivingRotation</A></B>(int[] rows,
|
|
int[] cols,
|
|
int orient,
|
|
int dir,
|
|
int rtype,
|
|
float pctdone,
|
|
boolean canPopup)</CODE>
|
|
|
|
<BR>
|
|
Rotates the given block in the given direction and returns its final state as <code>(orient,
|
|
col, row, popped)</code>, where <code>orient</code> is the final orientation of the drop
|
|
block; <code>col</code> and <code>row</code> are the final column and row coordinates,
|
|
respectively, of the central drop block piece.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#getHeight()">getHeight</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the height of the board in rows.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#getNextPiece()">getNextPiece</A></B>()</CODE>
|
|
|
|
<BR>
|
|
For boards that are always filled, this method is called to obtain pieces to fill the board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#getPiece(int, int)">getPiece</A></B>(int col,
|
|
int row)</CODE>
|
|
|
|
<BR>
|
|
Returns the piece at the given column and row in the board.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#getWidth()">getWidth</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the width of the board in columns.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#inBounds(int, int)">inBounds</A></B>(int col,
|
|
int row)</CODE>
|
|
|
|
<BR>
|
|
Returns true if the specified coordinate is within the bounds of the board, false if it is
|
|
not.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#isBlockEmpty(int, int, int, int)">isBlockEmpty</A></B>(int col,
|
|
int row,
|
|
int wid,
|
|
int hei)</CODE>
|
|
|
|
<BR>
|
|
Returns whether the specified block in the board is empty.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#isRowEmpty(int)">isRowEmpty</A></B>(int row)</CODE>
|
|
|
|
<BR>
|
|
Returns whether the given row in the board is empty.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#isValidDrop(int[], int[], float)">isValidDrop</A></B>(int[] rows,
|
|
int[] cols,
|
|
float pctdone)</CODE>
|
|
|
|
<BR>
|
|
Returns whether all of the pieces at the given coordinates can be dropped one row.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#isValidPosition(int, int)">isValidPosition</A></B>(int x,
|
|
int y)</CODE>
|
|
|
|
<BR>
|
|
Returns whether the given coordinates are within the board bounds.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#rowContainsPieces(int, int)">rowContainsPieces</A></B>(int row,
|
|
int blankPiece)</CODE>
|
|
|
|
<BR>
|
|
Returns true if the specified row (which count down, with zero at the top of the board)
|
|
contains any pieces.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#setBoard(int[])">setBoard</A></B>(int[] board)</CODE>
|
|
|
|
<BR>
|
|
Sets the board pieces.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#setBoard(int[], int, int)">setBoard</A></B>(int[] board,
|
|
int bwid,
|
|
int bhei)</CODE>
|
|
|
|
<BR>
|
|
Sets the board data and board dimensions.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#setPiece(int, int, int)">setPiece</A></B>(int col,
|
|
int row,
|
|
int piece)</CODE>
|
|
|
|
<BR>
|
|
Sets the piece at the given coordinates.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#setRect(int, int, int, int, int)">setRect</A></B>(int x,
|
|
int y,
|
|
int width,
|
|
int height,
|
|
int piece)</CODE>
|
|
|
|
<BR>
|
|
Sets the pieces within the specified rectangle to the given piece.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#setSegment(int, int, int, int[])">setSegment</A></B>(int dir,
|
|
int col,
|
|
int row,
|
|
int[] pieces)</CODE>
|
|
|
|
<BR>
|
|
Sets the pieces in the given board segment to the specified pieces.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#setSegment(int, int, int, int, int)">setSegment</A></B>(int dir,
|
|
int col,
|
|
int row,
|
|
int len,
|
|
int piece)</CODE>
|
|
|
|
<BR>
|
|
Sets the pieces in the given board segment to the specified piece.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#size()">size</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Returns the size of the board in pieces.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html#toString()">toString</A></B>()</CODE>
|
|
|
|
<BR>
|
|
</TD>
|
|
</TR>
|
|
</TABLE>
|
|
<A NAME="methods_inherited_from_class_com.threerings.puzzle.data.Board"><!-- --></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.data.<A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A></B></TH>
|
|
</TR>
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
<TD><CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html#getRandom()">getRandom</A>, <A HREF="../../../../../com/threerings/puzzle/data/Board.html#initializeSeed(long)">initializeSeed</A>, <A HREF="../../../../../com/threerings/puzzle/data/Board.html#seedFromEvent(int, int)">seedFromEvent</A></CODE></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<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>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
<A NAME="field_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>Field Detail</B></FONT></TH>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="RADIAL_ROTATION"><!-- --></A><H3>
|
|
RADIAL_ROTATION</H3>
|
|
<PRE>
|
|
public static final int <B>RADIAL_ROTATION</B></PRE>
|
|
<DL>
|
|
<DD>The rotation constant for rotation around a central piece.
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.threerings.puzzle.drop.data.DropBoard.RADIAL_ROTATION">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="INPLACE_ROTATION"><!-- --></A><H3>
|
|
INPLACE_ROTATION</H3>
|
|
<PRE>
|
|
public static final int <B>INPLACE_ROTATION</B></PRE>
|
|
<DL>
|
|
<DD>The rotation constant for rotation wherein the block occupies the same columns when
|
|
rotating.
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.threerings.puzzle.drop.data.DropBoard.INPLACE_ROTATION">Constant Field Values</A></DL>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="CLEAR_OP"><!-- --></A><H3>
|
|
CLEAR_OP</H3>
|
|
<PRE>
|
|
public static final <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data">DropBoard.PieceOperation</A> <B>CLEAR_OP</B></PRE>
|
|
<DL>
|
|
<DD>An operation that does naught but clear pieces, which proves to be generally useful.
|
|
<P>
|
|
<DL>
|
|
</DL>
|
|
</DL>
|
|
|
|
<!-- ========= 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="DropBoard()"><!-- --></A><H3>
|
|
DropBoard</H3>
|
|
<PRE>
|
|
public <B>DropBoard</B>()</PRE>
|
|
<DL>
|
|
<DD>Constructs an empty drop board for use when unserializing.
|
|
<P>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="DropBoard(int, int)"><!-- --></A><H3>
|
|
DropBoard</H3>
|
|
<PRE>
|
|
public <B>DropBoard</B>(int bwid,
|
|
int bhei)</PRE>
|
|
<DL>
|
|
<DD>Constructs a drop board of the given dimensions with its pieces initialized to PIECE_NONE.
|
|
<P>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="DropBoard(int, int, int)"><!-- --></A><H3>
|
|
DropBoard</H3>
|
|
<PRE>
|
|
public <B>DropBoard</B>(int bwid,
|
|
int bhei,
|
|
int piece)</PRE>
|
|
<DL>
|
|
<DD>Constructs a drop board of the given dimensions with its pieces initialized to the given
|
|
piece.
|
|
<P>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="DropBoard(int[], int, int)"><!-- --></A><H3>
|
|
DropBoard</H3>
|
|
<PRE>
|
|
public <B>DropBoard</B>(int[] board,
|
|
int bwid,
|
|
int bhei)</PRE>
|
|
<DL>
|
|
<DD>Constructs a drop board with the given board and dimensions.
|
|
<P>
|
|
</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="getWidth()"><!-- --></A><H3>
|
|
getWidth</H3>
|
|
<PRE>
|
|
public int <B>getWidth</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the width of the board in columns.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getHeight()"><!-- --></A><H3>
|
|
getHeight</H3>
|
|
<PRE>
|
|
public int <B>getHeight</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the height of the board in rows.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getPiece(int, int)"><!-- --></A><H3>
|
|
getPiece</H3>
|
|
<PRE>
|
|
public int <B>getPiece</B>(int col,
|
|
int row)</PRE>
|
|
<DL>
|
|
<DD>Returns the piece at the given column and row in the board.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getNextPiece()"><!-- --></A><H3>
|
|
getNextPiece</H3>
|
|
<PRE>
|
|
public int <B>getNextPiece</B>()</PRE>
|
|
<DL>
|
|
<DD>For boards that are always filled, this method is called to obtain pieces to fill the board.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getDropDistance(int, int)"><!-- --></A><H3>
|
|
getDropDistance</H3>
|
|
<PRE>
|
|
public int <B>getDropDistance</B>(int col,
|
|
int row)</PRE>
|
|
<DL>
|
|
<DD>Returns the distance the piece at the given column and row can drop until it hits a
|
|
non-empty piece (defined as <A HREF="../../../../../com/threerings/puzzle/drop/data/DropPieceCodes.html#PIECE_NONE"><CODE>DropPieceCodes.PIECE_NONE</CODE></A>).
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isRowEmpty(int)"><!-- --></A><H3>
|
|
isRowEmpty</H3>
|
|
<PRE>
|
|
public boolean <B>isRowEmpty</B>(int row)</PRE>
|
|
<DL>
|
|
<DD>Returns whether the given row in the board is empty.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isValidDrop(int[], int[], float)"><!-- --></A><H3>
|
|
isValidDrop</H3>
|
|
<PRE>
|
|
public boolean <B>isValidDrop</B>(int[] rows,
|
|
int[] cols,
|
|
float pctdone)</PRE>
|
|
<DL>
|
|
<DD>Returns whether all of the pieces at the given coordinates can be dropped one row.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="inBounds(int, int)"><!-- --></A><H3>
|
|
inBounds</H3>
|
|
<PRE>
|
|
public boolean <B>inBounds</B>(int col,
|
|
int row)</PRE>
|
|
<DL>
|
|
<DD>Returns true if the specified coordinate is within the bounds of the board, false if it is
|
|
not.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isBlockEmpty(int, int, int, int)"><!-- --></A><H3>
|
|
isBlockEmpty</H3>
|
|
<PRE>
|
|
public boolean <B>isBlockEmpty</B>(int col,
|
|
int row,
|
|
int wid,
|
|
int hei)</PRE>
|
|
<DL>
|
|
<DD>Returns whether the specified block in the board is empty. The block is allowed to occupy
|
|
space off the top of the board as long as it is within the horizontal board bounds.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - the left coordinate of the block.<DD><CODE>row</CODE> - the bottom coordinate of the block.<DD><CODE>wid</CODE> - the width of the block.<DD><CODE>hei</CODE> - the height of the block.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getForgivingRotation(int[], int[], int, int, int, float, boolean)"><!-- --></A><H3>
|
|
getForgivingRotation</H3>
|
|
<PRE>
|
|
public int[] <B>getForgivingRotation</B>(int[] rows,
|
|
int[] cols,
|
|
int orient,
|
|
int dir,
|
|
int rtype,
|
|
float pctdone,
|
|
boolean canPopup)</PRE>
|
|
<DL>
|
|
<DD>Rotates the given block in the given direction and returns its final state as <code>(orient,
|
|
col, row, popped)</code>, where <code>orient</code> is the final orientation of the drop
|
|
block; <code>col</code> and <code>row</code> are the final column and row coordinates,
|
|
respectively, of the central drop block piece. <code>popped</code> will be set to 1 if the
|
|
piece was popped up, 0 otherwise.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getForgivingMove(int, int, int, int, int, int, float)"><!-- --></A><H3>
|
|
getForgivingMove</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Point.html?is-external=true" title="class or interface in java.awt">Point</A> <B>getForgivingMove</B>(int col,
|
|
int row,
|
|
int wid,
|
|
int hei,
|
|
int dx,
|
|
int dy,
|
|
float pctdone)</PRE>
|
|
<DL>
|
|
<DD>Returns a <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Point.html?is-external=true" title="class or interface in java.awt"><CODE>Point</CODE></A> object containing the coordinates to place the bottom-left of the
|
|
given block at after moving it the given distance on the x- and y-axes, or
|
|
<code>null</code> if the move is not valid. Note that only the final block position is
|
|
checked.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - the leftmost column of the block.<DD><CODE>row</CODE> - the bottommost row of the block.<DD><CODE>wid</CODE> - the width of the block.<DD><CODE>hei</CODE> - the height of the block.<DD><CODE>dx</CODE> - the distance to move the block in columns.<DD><CODE>dy</CODE> - the distance to move the block in rows.<DD><CODE>pctdone</CODE> - the percentage of the inter-block distance that the piece has fallen thus
|
|
far.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getColumnLevels(byte[])"><!-- --></A><H3>
|
|
getColumnLevels</H3>
|
|
<PRE>
|
|
public void <B>getColumnLevels</B>(byte[] columns)</PRE>
|
|
<DL>
|
|
<DD>Populates the given array with the column levels for this board.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="applyRisingPieces(int[])"><!-- --></A><H3>
|
|
applyRisingPieces</H3>
|
|
<PRE>
|
|
public void <B>applyRisingPieces</B>(int[] pieces)</PRE>
|
|
<DL>
|
|
<DD>Called by the <A HREF="../../../../../com/threerings/puzzle/drop/client/DropControllerDelegate.html" title="class in com.threerings.puzzle.drop.client"><CODE>DropControllerDelegate</CODE></A> when it's time to apply a rising row of pieces
|
|
to the board. Shifts all of the pieces in the given board up one row and places the given
|
|
row of pieces at the bottom of the board.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="rowContainsPieces(int, int)"><!-- --></A><H3>
|
|
rowContainsPieces</H3>
|
|
<PRE>
|
|
public boolean <B>rowContainsPieces</B>(int row,
|
|
int blankPiece)</PRE>
|
|
<DL>
|
|
<DD>Returns true if the specified row (which count down, with zero at the top of the board)
|
|
contains any pieces.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>row</CODE> - the row to check for pieces.<DD><CODE>blankPiece</CODE> - the blank piece value, non-instances of which will be sought.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="fill(int)"><!-- --></A><H3>
|
|
fill</H3>
|
|
<PRE>
|
|
public void <B>fill</B>(int piece)</PRE>
|
|
<DL>
|
|
<DD>Fills the board contents with the given piece.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setPiece(int, int, int)"><!-- --></A><H3>
|
|
setPiece</H3>
|
|
<PRE>
|
|
public boolean <B>setPiece</B>(int col,
|
|
int row,
|
|
int piece)</PRE>
|
|
<DL>
|
|
<DD>Sets the piece at the given coordinates.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
|
|
<DT><B>Returns:</B><DD>true if the piece was set, false if it was invalid.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setRect(int, int, int, int, int)"><!-- --></A><H3>
|
|
setRect</H3>
|
|
<PRE>
|
|
public void <B>setRect</B>(int x,
|
|
int y,
|
|
int width,
|
|
int height,
|
|
int piece)</PRE>
|
|
<DL>
|
|
<DD>Sets the pieces within the specified rectangle to the given piece.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setSegment(int, int, int, int, int)"><!-- --></A><H3>
|
|
setSegment</H3>
|
|
<PRE>
|
|
public boolean <B>setSegment</B>(int dir,
|
|
int col,
|
|
int row,
|
|
int len,
|
|
int piece)</PRE>
|
|
<DL>
|
|
<DD>Sets the pieces in the given board segment to the specified piece.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>dir</CODE> - the direction of the segment; one of <CODE>DirectionCodes.HORIZONTAL</CODE> or <CODE>DirectionCodes.VERTICAL</CODE>.<DD><CODE>col</CODE> - the starting column of the segment.<DD><CODE>row</CODE> - the starting row of the segment.<DD><CODE>len</CODE> - the length of the segment in pieces.<DD><CODE>piece</CODE> - the piece to set in the segment.
|
|
<DT><B>Returns:</B><DD>false if the segment was only partially applied because some pieces were outside
|
|
the bounds of the board, true if it was completely applied.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setSegment(int, int, int, int[])"><!-- --></A><H3>
|
|
setSegment</H3>
|
|
<PRE>
|
|
public void <B>setSegment</B>(int dir,
|
|
int col,
|
|
int row,
|
|
int[] pieces)</PRE>
|
|
<DL>
|
|
<DD>Sets the pieces in the given board segment to the specified pieces.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>dir</CODE> - the direction of the segment; one of <CODE>DirectionCodes.HORIZONTAL</CODE> or <CODE>DirectionCodes.VERTICAL</CODE>.<DD><CODE>col</CODE> - the starting column of the segment.<DD><CODE>row</CODE> - the starting row of the segment.<DD><CODE>pieces</CODE> - the pieces to set in the segment.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="applyOp(int, int, int, com.threerings.puzzle.drop.data.DropBoard.PieceOperation)"><!-- --></A><H3>
|
|
applyOp</H3>
|
|
<PRE>
|
|
public void <B>applyOp</B>(int dir,
|
|
int col,
|
|
int row,
|
|
<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data">DropBoard.PieceOperation</A> op)</PRE>
|
|
<DL>
|
|
<DD>Applies a specified <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data"><CODE>DropBoard.PieceOperation</CODE></A> to all pieces in the specified row or column
|
|
starting at the specified coordinates and spanning the remainder of the row or column
|
|
(depending on the application direction) in the board.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>dir</CODE> - the direction to iterate in; one of <CODE>DirectionCodes.HORIZONTAL</CODE> or <CODE>DirectionCodes.VERTICAL</CODE>.<DD><CODE>col</CODE> - the starting column of the segment.<DD><CODE>row</CODE> - the starting row of the segment.<DD><CODE>op</CODE> - the piece operation to apply to each piece.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="applyOp(int, int, int, int, com.threerings.puzzle.drop.data.DropBoard.PieceOperation)"><!-- --></A><H3>
|
|
applyOp</H3>
|
|
<PRE>
|
|
public void <B>applyOp</B>(int dir,
|
|
int col,
|
|
int row,
|
|
int len,
|
|
<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data">DropBoard.PieceOperation</A> op)</PRE>
|
|
<DL>
|
|
<DD>Applies a specified <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data"><CODE>DropBoard.PieceOperation</CODE></A> to all pieces in a row or column segment
|
|
starting at the specified coordinates and of the specified length in the board.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>dir</CODE> - the direction to iterate in; one of <CODE>DirectionCodes.HORIZONTAL</CODE> or <CODE>DirectionCodes.VERTICAL</CODE>.<DD><CODE>col</CODE> - the starting leftmost column of the segment.<DD><CODE>row</CODE> - the starting bottommost row of the segment.<DD><CODE>len</CODE> - the number of pieces in the segment.<DD><CODE>op</CODE> - the piece operation to apply to each piece.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="applyOp(int, int, com.threerings.puzzle.drop.data.DropBoard.PieceOperation)"><!-- --></A><H3>
|
|
applyOp</H3>
|
|
<PRE>
|
|
public void <B>applyOp</B>(int col,
|
|
int row,
|
|
<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data">DropBoard.PieceOperation</A> op)</PRE>
|
|
<DL>
|
|
<DD>Applies a specified <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data"><CODE>DropBoard.PieceOperation</CODE></A> to the specified piece in the board.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
<DT><B>Parameters:</B><DD><CODE>col</CODE> - the column of the piece.<DD><CODE>row</CODE> - the row of the piece.<DD><CODE>op</CODE> - the piece operation to apply to the piece.</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="dump()"><!-- --></A><H3>
|
|
dump</H3>
|
|
<PRE>
|
|
public void <B>dump</B>()</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html#dump()">Board</A></CODE></B></DD>
|
|
<DD>Outputs a string representation of the board contents.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html#dump()">dump</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="dumpAndCompare(com.threerings.puzzle.data.Board)"><!-- --></A><H3>
|
|
dumpAndCompare</H3>
|
|
<PRE>
|
|
public void <B>dumpAndCompare</B>(<A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A> other)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html#dumpAndCompare(com.threerings.puzzle.data.Board)">Board</A></CODE></B></DD>
|
|
<DD>Outputs a string representation of the board contents, interlaced with the supplied
|
|
comparison board.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html#dumpAndCompare(com.threerings.puzzle.data.Board)">dumpAndCompare</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="toString()"><!-- --></A><H3>
|
|
toString</H3>
|
|
<PRE>
|
|
public <A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><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></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="equals(com.threerings.puzzle.data.Board)"><!-- --></A><H3>
|
|
equals</H3>
|
|
<PRE>
|
|
public boolean <B>equals</B>(<A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A> other)</PRE>
|
|
<DL>
|
|
<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html#equals(com.threerings.puzzle.data.Board)">Board</A></CODE></B></DD>
|
|
<DD>Returns whether this board is equal to the given comparison board.
|
|
<P>
|
|
<DD><DL>
|
|
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html#equals(com.threerings.puzzle.data.Board)">equals</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A></CODE></DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="isValidPosition(int, int)"><!-- --></A><H3>
|
|
isValidPosition</H3>
|
|
<PRE>
|
|
public boolean <B>isValidPosition</B>(int x,
|
|
int y)</PRE>
|
|
<DL>
|
|
<DD>Returns whether the given coordinates are within the board bounds.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getBounds()"><!-- --></A><H3>
|
|
getBounds</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>getBounds</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the bounds of this board. Note that a single rectangle is re-used internally and so
|
|
the caller should not modify the returned rectangle.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="size()"><!-- --></A><H3>
|
|
size</H3>
|
|
<PRE>
|
|
public int <B>size</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the size of the board in pieces.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="copyInto(com.threerings.puzzle.drop.data.DropBoard)"><!-- --></A><H3>
|
|
copyInto</H3>
|
|
<PRE>
|
|
public void <B>copyInto</B>(<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html" title="class in com.threerings.puzzle.drop.data">DropBoard</A> board)</PRE>
|
|
<DL>
|
|
<DD>Copies the contents of this board directly into the supplied board, overwriting the
|
|
destination board in its entirety.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="getBoard()"><!-- --></A><H3>
|
|
getBoard</H3>
|
|
<PRE>
|
|
public int[] <B>getBoard</B>()</PRE>
|
|
<DL>
|
|
<DD>Returns the raw board data associated with this board. One shouldn't fiddle about with this
|
|
unless one knows what one is doing.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setBoard(int[], int, int)"><!-- --></A><H3>
|
|
setBoard</H3>
|
|
<PRE>
|
|
public void <B>setBoard</B>(int[] board,
|
|
int bwid,
|
|
int bhei)</PRE>
|
|
<DL>
|
|
<DD>Sets the board data and board dimensions.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="setBoard(int[])"><!-- --></A><H3>
|
|
setBoard</H3>
|
|
<PRE>
|
|
public void <B>setBoard</B>(int[] board)</PRE>
|
|
<DL>
|
|
<DD>Sets the board pieces.
|
|
<P>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
<DD><DL>
|
|
</DL>
|
|
</DD>
|
|
</DL>
|
|
<HR>
|
|
|
|
<A NAME="clone()"><!-- --></A><H3>
|
|
clone</H3>
|
|
<PRE>
|
|
public <A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.html" title="class in com.threerings.puzzle.drop.data">DropBoard</A> <B>clone</B>()</PRE>
|
|
<DL>
|
|
<DD><DL>
|
|
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../../../com/threerings/puzzle/data/Board.html" title="class in com.threerings.puzzle.data">Board</A></CODE></DL>
|
|
</DD>
|
|
<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> </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/DropBoard.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-all.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
|
|
<A HREF="../../../../../com/threerings/puzzle/drop/data/DropBoard.PieceOperation.html" title="interface in com.threerings.puzzle.drop.data"><B>NEXT CLASS</B></A></FONT></TD>
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../../../../index.html?com/threerings/puzzle/drop/data/DropBoard.html" target="_top"><B>FRAMES</B></A>
|
|
<A HREF="DropBoard.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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: <A HREF="#field_detail">FIELD</A> | <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>
|
|
Copyright © 2011. All Rights Reserved.
|
|
</BODY>
|
|
</HTML>
|