From fcd8a9d9013a899dc10bc51c232ff9dbb371d17f Mon Sep 17 00:00:00 2001 From: Dave Hoover Date: Tue, 9 Feb 2010 04:11:34 +0000 Subject: [PATCH] Whitespace git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@895 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../puzzle/client/PuzzleBoardView.java | 5 ++--- .../puzzle/drop/client/DropBoardView.java | 17 +++++++---------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java index 7c8f793a..15eba4f3 100644 --- a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java +++ b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java @@ -310,7 +310,7 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel protected void renderBackground (Graphics2D gfx, Rectangle dirty) { gfx.setColor(getBackground()); - gfx.fill(dirty); + gfx.fill(dirty); } @Override @@ -342,8 +342,7 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel protected void maybeFireCleared () { if (DEBUG_ACTION) { - log.info("Maybe firing cleared " + - getActionCount() + ":" + isShowing()); + log.info("Maybe firing cleared " + getActionCount() + ":" + isShowing()); } if (getActionCount() == 0) { // we're probably in the middle of a tick() in an animationDidFinish() call and we want diff --git a/src/java/com/threerings/puzzle/drop/client/DropBoardView.java b/src/java/com/threerings/puzzle/drop/client/DropBoardView.java index eae2372d..5797dd3c 100644 --- a/src/java/com/threerings/puzzle/drop/client/DropBoardView.java +++ b/src/java/com/threerings/puzzle/drop/client/DropBoardView.java @@ -110,7 +110,7 @@ public abstract class DropBoardView extends PuzzleBoardView /** * Called by the {@link DropSprite} to populate pos with the screen coordinates * in pixels at which a piece at (col, row) in the board should be drawn. Derived - * classes may wish to override this method to allow specialised positioning of sprites. + * classes may wish to override this method to allow specialized positioning of sprites. */ public void getPiecePosition (int col, int row, Point pos) { @@ -165,14 +165,13 @@ public abstract class DropBoardView extends PuzzleBoardView public void updatePiece (int piece, int sx, int sy) { if (sx < 0 || sy < 0 || sx >= _bwid || sy >= _bhei) { - log.warning("Requested to update piece in invalid location", "sx", sx, "sy", sy, - new Exception()); + log.warning("Requested to update piece in invalid location", + "sx", sx, "sy", sy, new Exception()); return; } int spos = sy * _bwid + sx; if (_pieces[spos] != null) { - ((ImageSprite)_pieces[spos]).setMirage( - getPieceImage(piece, sx, sy, NORTH)); + ((ImageSprite)_pieces[spos]).setMirage(getPieceImage(piece, sx, sy, NORTH)); } else { createPiece(piece, sx, sy); } @@ -181,12 +180,11 @@ public abstract class DropBoardView extends PuzzleBoardView /** * Creates a new piece sprite and moves it into position on the board. */ - public void createPiece (int piece, int sx, int sy, int tx, int ty, - long duration) + public void createPiece (int piece, int sx, int sy, int tx, int ty, long duration) { if (tx < 0 || ty < 0 || tx >= _bwid || ty >= _bhei) { log.warning("Requested to create and move piece to invalid location", - "tx", tx, "ty", ty, new Exception()); + "tx", tx, "ty", ty, new Exception()); return; } Sprite sprite = createPieceSprite(piece, sx, sy); @@ -414,8 +412,7 @@ public abstract class DropBoardView extends PuzzleBoardView * @param color the color of the text. * @param font the font. */ - public ScoreAnimation createScoreAnimation ( - String score, Color color, Font font) + public ScoreAnimation createScoreAnimation (String score, Color color, Font font) { return createScoreAnimation(score, color, font, 0, _bhei - 1, _bwid, _bhei); }