Revision e4f656d1
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/helpers/MovesController.java | ||
---|---|---|
97 | 97 |
{ |
98 | 98 |
Move move = mMoves.remove(numMoves-1); |
99 | 99 |
int axis = move.mAxis; |
100 |
int row = (1<<move.mRow); |
|
101 | 100 |
int angle = move.mAngle; |
102 |
int duration= Math.abs(angle)*MILLIS_PER_DEGREE; |
|
103 | 101 |
|
104 | 102 |
if( angle!=0 ) |
105 | 103 |
{ |
106 | 104 |
mCanPrevMove = false; |
107 | 105 |
mControl = act.getControl(); |
108 | 106 |
mControl.blockTouch(BlockController.MOVES_PLACE_0); |
109 |
mControl.addRotation(this, axis, row, -angle, duration);
|
|
107 |
mControl.addRotation(this, axis, (1<<move.mRow), -angle, MILLIS_PER_DEGREE);
|
|
110 | 108 |
} |
111 | 109 |
else |
112 | 110 |
{ |
Also available in: Unified diff
Simplifications