Mercurial > hg > ristipolku
diff game/AnimatedPointElement.java @ 134:4c0dec72e2f0
Whitespace cosmetic cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 24 Nov 2011 21:51:54 +0200 |
parents | a0376e40102e |
children | 5eea4719b429 |
line wrap: on
line diff
--- a/game/AnimatedPointElement.java Thu Nov 24 21:50:41 2011 +0200 +++ b/game/AnimatedPointElement.java Thu Nov 24 21:51:54 2011 +0200 @@ -17,7 +17,7 @@ private Interpolate lerpV, lerpX, lerpY; boolean active, first; String text; - + public AnimatedPointElement(IDMPoint start, String text) { Random rnd = new Random(); @@ -32,7 +32,7 @@ first = true; this.text = text; } - + public void animate(float time) { if (first) @@ -41,7 +41,7 @@ active = true; stime = time; } - + if (active) { float t = (time - stime); @@ -56,12 +56,12 @@ pos.y = lerpY.getValue(t); } } - + public void paint(Graphics2D g) { if (!active) return; - + Paint psave = g.getPaint(); AffineTransform tsave = g.getTransform(); Composite csave = g.getComposite();