comparison game/Piece.java @ 91:cc96bc955db6

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 03 Mar 2011 18:02:23 +0200
parents e9fab3c96043
children d5f51370617b
comparison
equal deleted inserted replaced
90:85a1c21fe80f 91:cc96bc955db6
23 PieceType type, prevType; 23 PieceType type, prevType;
24 24
25 boolean rotationChanged, rotationActive, 25 boolean rotationChanged, rotationActive,
26 typeChanged, typeActive, 26 typeChanged, typeActive,
27 stateChanged, stateActive; 27 stateChanged, stateActive;
28 float currAngle, newAngle, rotationTime, typeTime, rotationSpeed; 28
29 29 float currAngle, newAngle,
30 float throbTime; 30 rotationTime, rotationSpeed,
31 typeTime, throbTime;
32
31 Interpolate lerpRotation; 33 Interpolate lerpRotation;
32 34
33 35
34 public Piece(PieceType ptype) 36 public Piece(PieceType ptype)
35 { 37 {
229 231
230 if (stateChanged) 232 if (stateChanged)
231 { 233 {
232 } 234 }
233 235
234
235
236 throbTime = (time % 100) / 100.0f; 236 throbTime = (time % 100) / 100.0f;
237 } 237 }
238 238
239 public void paint(Graphics2D g, float x, float y, float dim) 239 public void paint(Graphics2D g, float x, float y, float dim)
240 { 240 {