| Constructor and Description |
|---|
Board() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public abstract void dump()
public abstract void dumpAndCompare(Board other)
public abstract boolean equals(Board other)
public 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.Copyright © 2015. All rights reserved.