Project

General

Profile

« Previous | Next » 

Revision b1629e16

Added by Leszek Koltunski over 1 year ago

Make it possible to decide about FastScramble duration fromo outside the ObjectControl.

View differences:

src/main/java/org/distorted/bandaged/BandagedPlayScreen.java
18 18
import org.distorted.helpers.MovesController;
19 19
import org.distorted.helpers.TransparentImageButton;
20 20
import org.distorted.main.R;
21
import org.distorted.objectlib.effects.BaseEffect;
21 22
import org.distorted.objectlib.main.ObjectControl;
22 23

  
23 24
///////////////////////////////////////////////////////////////////////////////////////////////////
......
93 94
      public void onClick(View v)
94 95
        {
95 96
        ObjectControl control = act.getControl();
96
        control.fastScrambleObject(NUM_SCRAMBLES);
97
        int duration = BaseEffect.Type.FAST_SCRAMBLE.getDuration();
98
        control.fastScrambleObject(duration,NUM_SCRAMBLES);
97 99
        mMovesController.clearMoves(act);
98 100
        }
99 101
      });

Also available in: Unified diff