Project

General

Profile

« Previous | Next » 

Revision e91771e4

Added by Leszek Koltunski 2 months ago

progress with configurable stickers

View differences:

src/main/java/org/distorted/config/ConfigObjectLibInterface.java
15 15
import org.distorted.main.BuildConfig;
16 16
import org.distorted.objectlib.helpers.BlockController;
17 17
import org.distorted.objectlib.helpers.ObjectLibInterface;
18
import org.distorted.objectlib.main.ObjectControl;
19
import org.distorted.solvers.SolverMain;
20
import org.distorted.solverui.ScreenList;
21
import org.distorted.solverui.ScreenSolver;
22
import org.distorted.solverui.SolverActivity;
18

  
19
import java.lang.ref.WeakReference;
23 20

  
24 21
///////////////////////////////////////////////////////////////////////////////////////////////////
25 22

  
26 23
public class ConfigObjectLibInterface implements ObjectLibInterface
27 24
{
25
  private final WeakReference<ConfigActivity> mAct;
26

  
27
///////////////////////////////////////////////////////////////////////////////////////////////////
28

  
29
  ConfigObjectLibInterface(ConfigActivity act)
30
    {
31
    mAct = new WeakReference<>(act);
32
    }
33

  
34
///////////////////////////////////////////////////////////////////////////////////////////////////
35

  
28 36
  public void onWinEffectFinished(long startTime, long endTime, String debug, int scrambleNum) { }
29 37
  public void onScrambleEffectFinished() { }
30 38
  public void onBeginRotation() { }
......
132 140
    }
133 141

  
134 142
///////////////////////////////////////////////////////////////////////////////////////////////////
135
// TODO
136 143

  
137 144
  public void onReplaceModeDown(int cubit, int face)
138 145
    {
139

  
146
    ConfigActivity act = mAct.get();
147
    act.repaintPuzzleFace(cubit,face);
140 148
    }
141 149

  
142 150
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff