|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.puzzle.data.Board
public abstract class Board
An abstract base class for generating and storing puzzle board data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.threerings.io.Streamable |
|---|
com.threerings.io.Streamable.Closure |
| Constructor Summary | |
|---|---|
Board()
|
|
| Method Summary | |
|---|---|
Board |
clone()
|
abstract void |
dump()
Outputs a string representation of the board contents. |
abstract void |
dumpAndCompare(Board other)
Outputs a string representation of the board contents, interlaced with the supplied comparison board. |
abstract boolean |
equals(Board other)
Returns whether this board is equal to the given comparison board. |
Random |
getRandom()
Returns the random number generator used by the board to generate random numbers for our puzzles. |
void |
initializeSeed(long seed)
Sets the seed in the board's random number generator and calls populate(). |
void |
seedFromEvent(int pidx,
int gevent)
Allows puzzles to add extra noise to their random number generators based on the specific events sent from the client to make it more difficult for a hacked client to predict things such as piece generation. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Board()
| Method Detail |
|---|
public abstract void dump()
public abstract void dumpAndCompare(Board other)
public abstract boolean equals(Board other)
public Board clone()
clone in class Objectpublic void initializeSeed(long seed)
populate().
public Random getRandom()
public void seedFromEvent(int pidx,
int gevent)
pidx - the player index that submitted the progress event.gevent - the progress event itself.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||