Revision f08ec48e
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/main/RubikObjectLibInterface.java | ||
---|---|---|
33 | 33 |
|
34 | 34 |
import org.distorted.library.main.DistortedFramebuffer; |
35 | 35 |
import org.distorted.objectlib.helpers.ObjectLibInterface; |
36 |
import org.distorted.objectlib.main.ObjectControl; |
|
37 | 36 |
import org.distorted.objectlib.main.ObjectType; |
38 | 37 |
|
39 | 38 |
import org.distorted.dialogs.RubikDialogNewRecord; |
... | ... | |
322 | 321 |
return SolverMain.cubitIsLocked(type,cubit); |
323 | 322 |
} |
324 | 323 |
|
325 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
326 |
|
|
327 |
public ObjectControl getControl() |
|
328 |
{ |
|
329 |
RubikActivity act = mAct.get(); |
|
330 |
return act.getControl(); |
|
331 |
} |
|
332 |
|
|
333 | 324 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
334 | 325 |
|
335 | 326 |
public DistortedFramebuffer getFramebuffer() |
src/main/java/org/distorted/tutorials/TutorialObjectLibInterface.java | ||
---|---|---|
22 | 22 |
import org.distorted.library.main.DistortedFramebuffer; |
23 | 23 |
|
24 | 24 |
import org.distorted.objectlib.helpers.ObjectLibInterface; |
25 |
import org.distorted.objectlib.main.ObjectControl; |
|
26 | 25 |
import org.distorted.objectlib.main.ObjectType; |
27 | 26 |
|
28 | 27 |
import java.lang.ref.WeakReference; |
... | ... | |
65 | 64 |
state.reddenLock(act); |
66 | 65 |
} |
67 | 66 |
|
68 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
69 |
|
|
70 |
public ObjectControl getControl() |
|
71 |
{ |
|
72 |
TutorialActivity act = mAct.get(); |
|
73 |
return act.getControl(); |
|
74 |
} |
|
75 |
|
|
76 | 67 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
77 | 68 |
|
78 | 69 |
public DistortedFramebuffer getFramebuffer() |
Also available in: Unified diff
Remove unneeded API.