Whitespace
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@1090 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -198,8 +198,7 @@ public abstract class GameController extends PlaceController
|
||||
if (event.getName().equals(GameObject.STATE)) {
|
||||
int newState = event.getIntValue();
|
||||
if (!stateDidChange(newState)) {
|
||||
log.warning("Game transitioned to unknown state [gobj=" + _gobj +
|
||||
", state=" + newState + "].");
|
||||
log.warning("Game transitioned to unknown state", "gobj", _gobj, "state", newState);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,8 +28,7 @@ import com.threerings.io.SimpleStreamableObject;
|
||||
*/
|
||||
public class GameAI extends SimpleStreamableObject
|
||||
{
|
||||
/** The "personality" of the AI, which can be interpreted by
|
||||
* each puzzle. */
|
||||
/** The "personality" of the AI, which can be interpreted by each puzzle. */
|
||||
public int personality;
|
||||
|
||||
/** The skill level of the AI. */
|
||||
@@ -41,8 +40,7 @@ public class GameAI extends SimpleStreamableObject
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs an AI with the specified (game-interpreted) skill and
|
||||
* personality.
|
||||
* Constructs an AI with the specified (game-interpreted) skill and personality.
|
||||
*/
|
||||
public GameAI (int personality, int skill)
|
||||
{
|
||||
|
||||
@@ -91,8 +91,8 @@ public class TurnGameManagerDelegate extends GameManagerDelegate
|
||||
{
|
||||
// sanity check
|
||||
if (_turnIdx < 0 || _turnIdx >= _turnGame.getPlayers().length) {
|
||||
log.warning("startTurn() called with invalid turn index [game=" + where() +
|
||||
", turnIdx=" + _turnIdx + "].");
|
||||
log.warning("startTurn() called with invalid turn index", "game", where(),
|
||||
"turnIdx", _turnIdx);
|
||||
// abort, abort
|
||||
return;
|
||||
}
|
||||
@@ -223,8 +223,8 @@ public class TurnGameManagerDelegate extends GameManagerDelegate
|
||||
if (_turnIdx == oturnIdx) {
|
||||
// if we've wrapped all the way around, stop where we are even if the current
|
||||
// player is not active.
|
||||
log.warning("1 or less active players. Unable to properly change turn. " +
|
||||
"[game=" + where() + "].");
|
||||
log.warning("1 or less active players. Unable to properly change turn.",
|
||||
"game", where());
|
||||
break;
|
||||
}
|
||||
} while (!_tgmgr.isActivePlayer(_turnIdx));
|
||||
@@ -241,8 +241,8 @@ public class TurnGameManagerDelegate extends GameManagerDelegate
|
||||
while (!_tgmgr.isActivePlayer(_turnIdx)) {
|
||||
_turnIdx = (_turnIdx + 1) % size;
|
||||
if (_turnIdx == firstPick) {
|
||||
log.warning("No players eligible for randomly-assigned turn. Choking. " +
|
||||
"[game=" + where() + "].");
|
||||
log.warning("No players eligible for randomly-assigned turn. Choking.",
|
||||
"game", where());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -332,7 +332,7 @@ public abstract class DropControllerDelegate extends PuzzleControllerDelegate
|
||||
|
||||
// if the sprite has made it to the bottom of the board then we don't want to allow it to
|
||||
// "virtually" fall any further because of the bounce interval
|
||||
float pctdone = (row >= (_bhei - 1)) ? 0 :
|
||||
float pctdone = (row >= (_bhei - 1)) ? 0 :
|
||||
_blocksprite.getPercentDone(_dview.getTimeStamp());
|
||||
|
||||
// get the drop block position resulting from the move
|
||||
@@ -1140,8 +1140,7 @@ public abstract class DropControllerDelegate extends PuzzleControllerDelegate
|
||||
};
|
||||
|
||||
/** A piece operation that will update piece sprites as board positions are updated. */
|
||||
protected DropBoard.PieceOperation _updateBoardOp =
|
||||
new DropBoard.PieceOperation() {
|
||||
protected DropBoard.PieceOperation _updateBoardOp = new DropBoard.PieceOperation() {
|
||||
public boolean execute (DropBoard board, int col, int row) {
|
||||
_dview.updatePiece(col, row);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user