Project

General

Profile

Download (1.6 KB) Statistics
| Branch: | Revision:

distorted-objectlib / src / main / java / org / distorted / objectlib / helpers / ObjectLibInterface.java @ 8f5116ec

1 7e152586 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2021 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6 a7a40b3c Leszek Koltunski
// Magic Cube is proprietary software licensed under an EULA which you should have received      //
7
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html        //
8 7e152586 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
9
10
package org.distorted.objectlib.helpers;
11
12 02d80fe6 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
13
14 b3fff6fb Leszek Koltunski
public interface ObjectLibInterface
15 7e152586 Leszek Koltunski
  {
16 02d80fe6 Leszek Koltunski
  // objectlib calls those in reaction to object state changing, app might want to know about those
17 adb3a093 Leszek Koltunski
  void onWinEffectFinished(long startTime, long endTime, String debug, int scrambleNum);
18 b3fff6fb Leszek Koltunski
  void onScrambleEffectFinished();
19
  void onBeginRotation();
20 bb58b357 leszek
  void onRemoveRotation(int axis, int row, int angle);
21 b3fff6fb Leszek Koltunski
  void failedToDrag();
22
  void onSolved();
23 594bbce0 Leszek Koltunski
  void onObjectCreated(long time);
24 11fa413d Leszek Koltunski
  void onReplaceModeDown(int cubit, int face);
25
  void onReplaceModeUp();
26
27 d887aa16 Leszek Koltunski
  void reportBlockProblem(int type, int place, long pause, long resume, long time);
28 32c1697e Leszek Koltunski
  void reportProblem(String problem, boolean reportException);
29 3ce95490 Leszek Koltunski
  void reportJSONError(String error, int ordinal);
30 7e152586 Leszek Koltunski
  }