Revision 8723caee
Added by Leszek Koltunski almost 4 years ago
| src/main/java/org/distorted/main/RubikObjectLibInterface.java | ||
|---|---|---|
| 33 | 33 |
import com.google.firebase.crashlytics.FirebaseCrashlytics; |
| 34 | 34 |
|
| 35 | 35 |
import org.distorted.library.message.EffectMessageSender; |
| 36 |
|
|
| 36 | 37 |
import org.distorted.objectlib.BuildConfig; |
| 37 | 38 |
import org.distorted.objectlib.helpers.BlockController; |
| 38 | 39 |
import org.distorted.objectlib.helpers.ObjectLibInterface; |
| ... | ... | |
| 417 | 418 |
|
| 418 | 419 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 419 | 420 |
|
| 420 |
public int cubitIsLocked(ObjectType type, int cubit)
|
|
| 421 |
public int cubitIsLocked(int cubit) |
|
| 421 | 422 |
{
|
| 422 |
return SolverMain.cubitIsLocked(type,cubit); |
|
| 423 |
RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass(); |
|
| 424 |
ObjectType currObject = play.getObject(); |
|
| 425 |
return SolverMain.cubitIsLocked(currObject,cubit); |
|
| 423 | 426 |
} |
| 424 | 427 |
} |
| src/main/java/org/distorted/tutorials/TutorialObjectLibInterface.java | ||
|---|---|---|
| 25 | 25 |
import org.distorted.objectlib.BuildConfig; |
| 26 | 26 |
import org.distorted.objectlib.helpers.BlockController; |
| 27 | 27 |
import org.distorted.objectlib.helpers.ObjectLibInterface; |
| 28 |
import org.distorted.objectlib.main.ObjectType; |
|
| 29 | 28 |
|
| 30 | 29 |
import java.lang.ref.WeakReference; |
| 31 | 30 |
|
| ... | ... | |
| 48 | 47 |
public void onSolved() { }
|
| 49 | 48 |
public void onObjectCreated(long time) { }
|
| 50 | 49 |
public int getCurrentColor() { return 0; }
|
| 51 |
public int cubitIsLocked(ObjectType type, int cubit) { return 0; }
|
|
| 50 |
public int cubitIsLocked(int cubit) { return 0; }
|
|
| 52 | 51 |
|
| 53 | 52 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 54 | 53 |
|
Also available in: Unified diff
Remove ObjectType from a few moree places.