<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<!-- Generated by javadoc (build 1.6.0-rc) on Sat Jan 24 19:46:57 CET 2009 -->
SokobanTestAdapter
<
META NAME="date" CONTENT="2009-01-24">
<
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="SokobanTestAdapter";
}
}
<
BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<
A NAME="navbar_top"><!-- --><
/A>
<
A HREF="#skip-navbar_top" title="Skip navigation links"><
/A>
<
TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<
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="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>
<
TD ALIGN="right" VALIGN="top" ROWSPAN=3><
EM>
<
TD BGCOLOR="white" CLASS="NavBarCell2"><
FONT SIZE="-2">
<
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test"><
B>PREV CLASS<
/B><
/A>
<
A HREF="../../../gdi/ws0809/test/SokobanTestExtended1.html" title="class in gdi.ws0809.test"><
B>NEXT CLASS<
/B><
/A><
/FONT><
/TD>
<
TD BGCOLOR="white" CLASS="NavBarCell2"><
FONT SIZE="-2">
<
A HREF="../../../index.html?gdi/ws0809/test/SokobanTestAdapter.html" target="_top"><
B>FRAMES<
/B><
/A>
<
A HREF="SokobanTestAdapter.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>');
}
//-->
<
A HREF="../../../allclasses-noframe.html"><
B>All Classes<
/B><
/A>
<
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>
<
A NAME="skip-navbar_top"><
/A>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
Class SokobanTestAdapter<
/H2>
java.lang.Object
<
IMG SRC="../../../resources/inherit.gif" ALT="extended by "><
B>gdi.ws0809.test.SokobanTestAdapter<
/B>
<
DT><
B>All Implemented Interfaces:<
/B> <
DD><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/DD>
<
DT><
PRE>public
class <
B>SokobanTestAdapter<
/B><
DT>extends java.
lang.Object<
DT>implements <
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/DL>
Provide an implementation for SokobanTest in this class. Your game must
compile and run without this class. This class is just meant to adapt the
test cases to your implementation.
<!-- ======== 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">
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#SokobanTestAdapter()">SokobanTestAdapter<
/A><
/B>
()<
/CODE>
<
/TD>
<!-- ========== 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">
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#canMoveCrate(int, int, char)">canMoveCrate<
/A><
/B>
(int i,
int j,
Checks whether the crate at position
(x, y
) can be moved in direction c<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#clearHighscoreList()">clearHighscoreList<
/A><
/B>
()<
/CODE>
Clears the highscore list.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#createHighscoreEntry(java.lang.String, int, int, int)">createHighscoreEntry<
/A><
/B>
(java.
lang.String playername,
int i,
int j,
Creates a new entry in the highscore list if the given data describes a
new highscore entry.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#currentLevelToString()">currentLevelToString<
/A><
/B>
()<
/CODE>
Returns the String representation of the <
i>current<
/i> level.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#getBestPlayerName()">getBestPlayerName<
/A><
/B>
()<
/CODE>
Gets the name of the best player (the one with with the least moves)
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#getCrateCount()">getCrateCount<
/A><
/B>
()<
/CODE>
Gets the total number of crates in the current levels<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#getGoalCount()">getGoalCount<
/A><
/B>
()<
/CODE>
Gets the total number of goals in the current levels<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#getHighscoreCount()">getHighscoreCount<
/A><
/B>
()<
/CODE>
Gets the count of entries in the highscore list<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#getLevelHeight()">getLevelHeight<
/A><
/B>
()<
/CODE>
Gets the current level's height</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="../../../gdi/ws0809/test/SokobanTestAdapter.html#getLevelWidth()">getLevelWidth</A></B>()</CODE>
<BR>
Gets the current level's width<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#getStepsInCurrentLevel()">getStepsInCurrentLevel<
/A><
/B>
()<
/CODE>
Return the steps performed in the <
i>current<
/i> level, since
the last restart of the level.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#getWallCount()">getWallCount<
/A><
/B>
()<
/CODE>
Gets the total number of walls in the current levels<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#getWorkerPositionX()">getWorkerPositionX<
/A><
/B>
()<
/CODE>
Gets the Y coordinate of the worker's current position</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="../../../gdi/ws0809/test/SokobanTestAdapter.html#getWorkerPositionY()">getWorkerPositionY</A></B>()</CODE>
<BR>
Gets the X coordinate of the worker's current position<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#init()">init<
/A><
/B>
()<
/CODE>
<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#isCrateAt(int, int)">isCrateAt<
/A><
/B>
(int i,
Gets whether there is a crate at the position identified by the specified
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#isDeadlock()">isDeadlock<
/A><
/B>
()<
/CODE>
Returns whether the current level is in a deadlock position.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#isGoalAt(int, int)">isGoalAt<
/A><
/B>
(int i,
Gets whether there is a goal at the position identified by the specified
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#isSolved()">isSolved<
/A><
/B>
()<
/CODE>
Returns whether the <
i>current<
/i> level is solved.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#isWallAt(int, int)">isWallAt<
/A><
/B>
(int i,
Gets whether there is a wall at the position identified by the specified
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#loadGame(java.io.File)">loadGame<
/A><
/B>
(java.io.File saveFile
)<
/CODE>
Save the current game state to the File.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#loadLevel(java.io.File)">loadLevel<
/A><
/B>
(java.io.File lvl
)<
/CODE>
Load a level and parse it into the internal representation.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#moveWorker(char)">moveWorker<
/A><
/B>
(char direction
)<
/CODE>
Move the worker according to the
rules.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#moveWorkerSequence(java.lang.String)">moveWorkerSequence<
/A><
/B>
(java.
lang.String moves
)<
/CODE>
Moves the worker with the steps specified in the move sequence string
which needs to be in the RLUD format.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#redoLastUndoneMove()">redoLastUndoneMove<
/A><
/B>
()<
/CODE>
Redo the last undone move.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#saveGame(java.io.File)">saveGame<
/A><
/B>
(java.io.File f
)<
/CODE>
Save the current game state to the File.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#setLevelDir(java.io.File)">setLevelDir<
/A><
/B>
(java.io.File levelDir
)<
/CODE>
Load a set of levels from a directory.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#setPlayerName(java.lang.String)">setPlayerName<
/A><
/B>
(java.
lang.String
name)<
/CODE>
Set the player
name used
for highscores.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#startNextLevel()">startNextLevel<
/A><
/B>
()<
/CODE>
The next level in a set of levels loaded with loadLevelDir
becomes the <
i>current<
/i> level.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#undoLastMove()">undoLastMove<
/A><
/B>
()<
/CODE>
Undo the last move.<
/TD>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD ALIGN="right" VALIGN="top" WIDTH="1%"><
FONT SIZE="-1">
<
TD><
CODE><
B><
A HREF="../../../gdi/ws0809/test/SokobanTestAdapter.html#writeHighScoreFile()">writeHighScoreFile<
/A><
/B>
()<
/CODE>
Tells the Sokoban implementation to write the current
highscores to disk, as detailed in the documentation.<
/TD>
<
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.Object<
/B><
/TH>
<
TR BGCOLOR="white" CLASS="TableRowColor">
<
TD><
CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait<
/CODE><
/TD>
<!-- ========= 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">
<
A NAME="SokobanTestAdapter()"><!-- --><
/A><
H3>
public <
B>SokobanTestAdapter<
/B>
()<
/PRE>
<!-- ============ 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">
<
A NAME="init()"><!-- --><
/A><
H3>
public static void <
B>init<
/B>
()<
/PRE>
<
A NAME="currentLevelToString()"><!-- --><
/A><
H3>
currentLevelToString<
/H3>
public java.
lang.String <
B>currentLevelToString<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#currentLevelToString()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Returns the String representation of the <
i>current<
/i> level.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#currentLevelToString()">currentLevelToString<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>the String representation<
/DL>
<
A NAME="loadLevel(java.io.File)"><!-- --><
/A><
H3>
public void <
B>loadLevel<
/B>
(java.io.File lvl
)
throws java.
lang.Exception<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#loadLevel(java.io.File)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Load a level and parse it into the internal representation.
The loaded level is now the and should
e.g. be shown in the GUI.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#loadLevel(java.io.File)">loadLevel<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>lvl<
/CODE> - The file from which to load the level
<
DD><
CODE>java.
lang.Exception<
/CODE> - in case the level is not syntactically correct<
/DL>
<
A NAME="isSolved()"><!-- --><
/A><
H3>
public boolean <
B>isSolved<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isSolved()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Returns whether the <
i>current<
/i> level is solved.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isSolved()">isSolved<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>True if the current level has been solved, otherwise false<
/DL>
<
A NAME="moveWorker(char)"><!-- --><
/A><
H3>
public void <
B>moveWorker<
/B>
(char direction
)<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#moveWorker(char)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Move the worker according to the
rules. The direction to move is either
right, left, up or down, encoded as 'R','L','U' or 'D'.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#moveWorker(char)">moveWorker<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>direction<
/CODE> - The encoded direction to move the worker<
/DL>
<
A NAME="setLevelDir(java.io.File)"><!-- --><
/A><
H3>
public void <
B>setLevelDir<
/B>
(java.io.File levelDir
)<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#setLevelDir(java.io.File)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Load a set of levels from a directory. The levels should be
sorted alphabetically. It should not load the first level yet.
Loading the first level should only happen after a call to
startNextLevel().
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#setLevelDir(java.io.File)">setLevelDir<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>levelDir<
/CODE> - the directory from which to load the levels<
/DL>
<
A NAME="startNextLevel()"><!-- --><
/A><
H3>
public void <
B>startNextLevel<
/B>
()
throws java.
lang.Exception<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#startNextLevel()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>The next level in a set of levels loaded with loadLevelDir
becomes the <
i>current<
/i> level. If there is no more level
left, an exception may be thrown.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#startNextLevel()">startNextLevel<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
A NAME="getStepsInCurrentLevel()"><!-- --><
/A><
H3>
getStepsInCurrentLevel<
/H3>
public int <
B>getStepsInCurrentLevel<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getStepsInCurrentLevel()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Return the steps performed in the <
i>current<
/i> level, since
the last restart of the level. Remember that only the legal moves
count.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getStepsInCurrentLevel()">getStepsInCurrentLevel<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>performed steps.<
/DL>
<
A NAME="writeHighScoreFile()"><!-- --><
/A><
H3>
public void <
B>writeHighScoreFile<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#writeHighScoreFile()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Tells the Sokoban implementation to write the current
highscores to disk, as detailed in the documentation.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#writeHighScoreFile()">writeHighScoreFile<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
A NAME="setPlayerName(java.lang.String)"><!-- --><
/A><
H3>
public void <
B>setPlayerName<
/B>
(java.
lang.String
name)<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#setPlayerName(java.lang.String)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Set the player
name used
for highscores.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#setPlayerName(java.lang.String)">setPlayerName<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
A NAME="redoLastUndoneMove()"><!-- --><
/A><
H3>
public void <
B>redoLastUndoneMove<
/B>
()
throws java.
lang.Exception<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#redoLastUndoneMove()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Redo the last undone move. If no move can be redone
(e.g. no move has been undone
) an Exception is thrown.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#redoLastUndoneMove()">redoLastUndoneMove<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DD><
CODE>java.
lang.Exception<
/CODE> - notifying the client that no move could be redone<
/DL>
<
A NAME="undoLastMove()"><!-- --><
/A><
H3>
public void <
B>undoLastMove<
/B>
()
throws java.
lang.Exception<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#undoLastMove()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Undo the last move. If no move can be undone
(e.g. no move has been performed
) an Exception is thrown.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#undoLastMove()">undoLastMove<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DD><
CODE>java.
lang.Exception<
/CODE> - notifying the client that no move could be undone<
/DL>
<
A NAME="loadGame(java.io.File)"><!-- --><
/A><
H3>
public void <
B>loadGame<
/B>
(java.io.File saveFile
)<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#loadGame(java.io.File)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Save the current game state to the File.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#loadGame(java.io.File)">loadGame<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>saveFile<
/CODE> - the file to save the game state in.<
/DL>
<
A NAME="saveGame(java.io.File)"><!-- --><
/A><
H3>
public void <
B>saveGame<
/B>
(java.io.File f
)<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#saveGame(java.io.File)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Save the current game state to the File.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#saveGame(java.io.File)">saveGame<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>f<
/CODE> - the file to save the game state in.<
/DL>
<
A NAME="isDeadlock()"><!-- --><
/A><
H3>
public boolean <
B>isDeadlock<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isDeadlock()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Returns whether the current level is in a deadlock position.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isDeadlock()">isDeadlock<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>returns whether the current level is in a deadlock position.<
/DL>
<
A NAME="canMoveCrate(int, int, char)"><!-- --><
/A><
H3>
public boolean <
B>canMoveCrate<
/B>
(int i,
int j,
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#canMoveCrate(int, int, char)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Checks whether the crate at position
(x, y
) can be moved in direction c
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#canMoveCrate(int, int, char)">canMoveCrate<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>i<
/CODE> - The x coordinate of the crate to check<
DD><
CODE>j<
/CODE> - The y coordinate of the crate to check<
DD><
CODE>c<
/CODE> - The direction in which the crate move shall be tested
<
DT><
B>Returns:<
/B><
DD>True if the crate at the specified position can be moved in the
given direction, otherwise false<
/DL>
<
A NAME="createHighscoreEntry(java.lang.String, int, int, int)"><!-- --><
/A><
H3>
createHighscoreEntry<
/H3>
public boolean <
B>createHighscoreEntry<
/B>
(java.
lang.String playername,
int i,
int j,
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#createHighscoreEntry(java.lang.String, int, int, int)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Creates a new entry in the highscore list if the given
data describes a
new highscore entry. If the specified entry already exists or has too
many steps to be a highscore, nothing happens and false is returned.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#createHighscoreEntry(java.lang.String, int, int, int)">createHighscoreEntry<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>playername<
/CODE> - The
name of the player that has achieved the score<
DD><
CODE>i<
/CODE> - A unique number identifying the level in which the score has
been reached<
DD><
CODE>j<
/CODE> - The count of moves the player has needed to complete the
specified level<
DD><
CODE>k<
/CODE> - The time the player has needed to solve the level in seconds
<
DT><
B>Returns:<
/B><
DD>True if a new entry in the highscore list has been created,
<
A NAME="getBestPlayerName()"><!-- --><
/A><
H3>
public java.
lang.String <
B>getBestPlayerName<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getBestPlayerName()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets the
name of the best player
(the one with with the least moves
)
over all levels. If Player A has completed level L1 with 10 moves and
level L2 with 15 moves and player B has completed level L2 with 11 moves,
the correct return value would be "A" as he has achieved to complete a
level with only 10 moves.
If the highscore list is empty, an empty string shall be returned.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getBestPlayerName()">getBestPlayerName<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>The
name of the player with the least moves<
/DL>
<
A NAME="getCrateCount()"><!-- --><
/A><
H3>
public int <
B>getCrateCount<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getCrateCount()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets the total number of crates in the current levels
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getCrateCount()">getCrateCount<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>The number of crates in the current level<
/DL>
<
A NAME="getGoalCount()"><!-- --><
/A><
H3>
public int <
B>getGoalCount<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getGoalCount()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets the total number of goals in the current levels
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getGoalCount()">getGoalCount<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>The number of goals in the current level<
/DL>
<
A NAME="getHighscoreCount()"><!-- --><
/A><
H3>
public int <
B>getHighscoreCount<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getHighscoreCount()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets the count of entries in the highscore list
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getHighscoreCount()">getHighscoreCount<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>The count of entries in the highscore list<
/DL>
<
A NAME="getLevelHeight()"><!-- --><
/A><
H3>
public int <
B>getLevelHeight<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getLevelHeight()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets the current level
's height
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../gdi/ws0809/test/SokobanTest.html#getLevelHeight()">getLevelHeight</A></CODE> in interface <CODE><A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The height of the current level</DL>
</DD>
</DL>
<HR>
<A NAME="getLevelWidth()"><!-- --></A><H3>
getLevelWidth</H3>
<PRE>
public int <B>getLevelWidth</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../gdi/ws0809/test/SokobanTest.html#getLevelWidth()">SokobanTest</A></CODE></B></DD>
<DD>Gets the current level's width
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getLevelWidth()">getLevelWidth<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>The
width of the current level<
/DL>
<
A NAME="getWallCount()"><!-- --><
/A><
H3>
public int <
B>getWallCount<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getWallCount()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets the total number of walls in the current levels
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getWallCount()">getWallCount<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>The number of walls in the current level<
/DL>
<
A NAME="getWorkerPositionX()"><!-- --><
/A><
H3>
public int <
B>getWorkerPositionX<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getWorkerPositionX()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets the Y coordinate of the worker
's current position
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../gdi/ws0809/test/SokobanTest.html#getWorkerPositionX()">getWorkerPositionX</A></CODE> in interface <CODE><A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The worker's position's current Y coordinate</DL>
</DD>
</DL>
<HR>
<A NAME="getWorkerPositionY()"><!-- --></A><H3>
getWorkerPositionY</H3>
<PRE>
public int <B>getWorkerPositionY</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../../gdi/ws0809/test/SokobanTest.html#getWorkerPositionY()">SokobanTest</A></CODE></B></DD>
<DD>Gets the X coordinate of the worker's current position
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#getWorkerPositionY()">getWorkerPositionY<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Returns:<
/B><
DD>The worker
's position's current X coordinate<
/DL>
<
A NAME="isCrateAt(int, int)"><!-- --><
/A><
H3>
public boolean <
B>isCrateAt<
/B>
(int i,
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isCrateAt(int, int)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets whether there is a crate at the position identified by the specified
X and Y coordinate
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isCrateAt(int, int)">isCrateAt<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>i<
/CODE> - The X coordinate of the grid position to check<
DD><
CODE>j<
/CODE> - The Y coordinate of the grid position to check
<
DT><
B>Returns:<
/B><
DD>True if there is a crate at the specified position, otherwise
<
A NAME="isGoalAt(int, int)"><!-- --><
/A><
H3>
public boolean <
B>isGoalAt<
/B>
(int i,
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isGoalAt(int, int)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets whether there is a goal at the position identified by the specified
X and Y coordinate
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isGoalAt(int, int)">isGoalAt<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>i<
/CODE> - The X coordinate of the grid position to check<
DD><
CODE>j<
/CODE> - The Y coordinate of the grid position to check
<
DT><
B>Returns:<
/B><
DD>True if there is a goal at the specified position, otherwise
<
A NAME="isWallAt(int, int)"><!-- --><
/A><
H3>
public boolean <
B>isWallAt<
/B>
(int i,
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isWallAt(int, int)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Gets whether there is a wall at the position identified by the specified
X and Y coordinate
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#isWallAt(int, int)">isWallAt<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>i<
/CODE> - The X coordinate of the grid position to check<
DD><
CODE>j<
/CODE> - The Y coordinate of the grid position to check
<
DT><
B>Returns:<
/B><
DD>True if there is a wall at the specified position, otherwise
<
A NAME="clearHighscoreList()"><!-- --><
/A><
H3>
public void <
B>clearHighscoreList<
/B>
()<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#clearHighscoreList()">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Clears the highscore list. You can either remove all entries from the
"highscore.txt" file or remove the whole file. If there is no highscore
file at the moment, nothing should happen.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#clearHighscoreList()">clearHighscoreList<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
A NAME="moveWorkerSequence(java.lang.String)"><!-- --><
/A><
H3>
public void <
B>moveWorkerSequence<
/B>
(java.
lang.String moves
)<
/PRE>
<
DD><
B>Description copied from interface: <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#moveWorkerSequence(java.lang.String)">SokobanTest<
/A><
/CODE><
/B><
/DD>
<
DD>Moves the worker with the steps specified in the move sequence string
which needs to be in the RLUD format.
<
DT><
B>Specified by:<
/B><
DD><
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html#moveWorkerSequence(java.lang.String)">moveWorkerSequence<
/A><
/CODE> in interface <
CODE><
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test">SokobanTest<
/A><
/CODE><
/DL>
<
DT><
B>Parameters:<
/B><
DD><
CODE>moves<
/CODE> - The move sequence in the RLUD format<
/DL>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= 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="">
<
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="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>
<
TD ALIGN="right" VALIGN="top" ROWSPAN=3><
EM>
<
TD BGCOLOR="white" CLASS="NavBarCell2"><
FONT SIZE="-2">
<
A HREF="../../../gdi/ws0809/test/SokobanTest.html" title="interface in gdi.ws0809.test"><
B>PREV CLASS<
/B><
/A>
<
A HREF="../../../gdi/ws0809/test/SokobanTestExtended1.html" title="class in gdi.ws0809.test"><
B>NEXT CLASS<
/B><
/A><
/FONT><
/TD>
<
TD BGCOLOR="white" CLASS="NavBarCell2"><
FONT SIZE="-2">
<
A HREF="../../../index.html?gdi/ws0809/test/SokobanTestAdapter.html" target="_top"><
B>FRAMES<
/B><
/A>
<
A HREF="SokobanTestAdapter.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>');
}
//-->
<
A HREF="../../../allclasses-noframe.html"><
B>All Classes<
/B><
/A>
<
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>
<
A NAME="skip-navbar_bottom"><
/A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->