Project

General

Profile

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

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

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2021 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6
// 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
///////////////////////////////////////////////////////////////////////////////////////////////////
9

    
10
package org.distorted.objectlib.helpers;
11

    
12
///////////////////////////////////////////////////////////////////////////////////////////////////
13

    
14
public interface ObjectLibInterface
15
  {
16
  // objectlib calls those in reaction to object state changing, app might want to know about those
17
  void onWinEffectFinished(long startTime, long endTime, String debug, int scrambleNum);
18
  void onScrambleEffectFinished();
19
  void onBeginRotation();
20
  void onRemoveRotation(int axis, int row, int angle);
21
  void failedToDrag();
22
  void onSolved();
23
  void onObjectCreated(long time);
24
  void onReplaceModeDown(int cubit, int face);
25
  void onReplaceModeUp();
26

    
27
  void reportBlockProblem(int type, int place, long pause, long resume, long time);
28
  void reportProblem(String problem, boolean reportException);
29
  void reportJSONError(String error, int ordinal);
30
  }
(7-7/13)