Project

General

Profile

« Previous | Next » 

Revision dd1a65c1

Added by Leszek Koltunski over 2 years ago

Move ObjectControl, the next big chunk of code, to objectlib.

View differences:

src/main/java/org/distorted/tutorials/TutorialObjectStateActioner.java
21 21

  
22 22
import org.distorted.objectlib.helpers.ObjectStateActioner;
23 23
import org.distorted.objectlib.helpers.TwistyActivity;
24
import org.distorted.objectlib.main.ObjectType;
24 25

  
25 26
///////////////////////////////////////////////////////////////////////////////////////////////////
26 27

  
......
28 29
{
29 30
   public void onWinEffectFinished(TwistyActivity act, String debug, int scrambleNum) { }
30 31
   public void onScrambleEffectFinished(TwistyActivity act) { }
32
   public void onBeginRotation(TwistyActivity act) { }
31 33
   public void onSolved() { }
34
   public int getCurrentColor() { return 0; }
35
   public int cubitIsLocked(ObjectType type, int cubit) { return 0; }
36

  
37
///////////////////////////////////////////////////////////////////////////////////////////////////
38

  
39
   public void onFinishRotation(TwistyActivity act, int axis, int row, int angle)
40
     {
41
     TutorialActivity tact = (TutorialActivity)act;
42
     TutorialScreen state = tact.getState();
43
     state.addMove(act,axis, row, angle);
44
     }
45

  
46
///////////////////////////////////////////////////////////////////////////////////////////////////
47

  
48
   public void failedToDrag(TwistyActivity act)
49
     {
50
     final TutorialActivity tact = (TutorialActivity)act;
51
     TutorialScreen state = tact.getState();
52
     state.reddenLock(act);
53
     }
32 54
}

Also available in: Unified diff