Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / objects / TwistyDino4.java @ cf93ea4e

1 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2020 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Magic Cube.                                                              //
5
//                                                                                               //
6 6133be67 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 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
9
10
package org.distorted.objectlib.objects;
11
12 ecf3d6e3 Leszek Koltunski
import org.distorted.library.type.Static3D;
13 29b82486 Leszek Koltunski
import org.distorted.library.type.Static4D;
14
15 1d581993 Leszek Koltunski
import org.distorted.objectlib.helpers.ObjectSignature;
16 cf93ea4e Leszek Koltunski
import org.distorted.objectlib.main.InitAssets;
17 a8295031 Leszek Koltunski
import org.distorted.objectlib.main.InitData;
18 2dffaf22 Leszek Koltunski
import org.distorted.objectlib.main.ObjectSignatures;
19 8005e762 Leszek Koltunski
import org.distorted.objectlib.main.ObjectType;
20 29b82486 Leszek Koltunski
21
///////////////////////////////////////////////////////////////////////////////////////////////////
22
23
public class TwistyDino4 extends TwistyDino
24
{
25
  private int[] mFaceMap;
26
27
///////////////////////////////////////////////////////////////////////////////////////////////////
28
29 cf93ea4e Leszek Koltunski
  public TwistyDino4(int meshState, int iconMode, Static4D quat, Static3D move, float scale, InitData data, InitAssets asset)
30 29b82486 Leszek Koltunski
    {
31 cf93ea4e Leszek Koltunski
    super(meshState, iconMode, quat, move, scale, data, asset);
32 29b82486 Leszek Koltunski
    }
33
34 1b7ece90 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
35
36 ed0988c0 Leszek Koltunski
  @Override
37 19595510 Leszek Koltunski
  public int[][] getSolvedQuats()
38 1b7ece90 Leszek Koltunski
    {
39 3c48fab9 Leszek Koltunski
    return null;
40 1b7ece90 Leszek Koltunski
    }
41
42
///////////////////////////////////////////////////////////////////////////////////////////////////
43
44 ed0988c0 Leszek Koltunski
  @Override
45 1b7ece90 Leszek Koltunski
  public int getSolvedFunctionIndex()
46
    {
47
    return 1;
48
    }
49
50 ed0988c0 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
51
52
  @Override
53
  public int getCubitFaceMap(int cubit, int face)
54
    {
55
    if( mFaceMap==null ) mFaceMap = new int[] { 4, 2, 2, 4, 0, 2, 1, 4, 0, 0, 1, 1 };
56
    return face<2 ? mFaceMap[cubit] : -1;
57
    }
58
59
///////////////////////////////////////////////////////////////////////////////////////////////////
60
61
  @Override
62
  public boolean shouldResetTextureMaps()
63
    {
64
    return true;
65
    }
66
67 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
68
69 9ba7f3f6 Leszek Koltunski
  public int[][] getScrambleEdges()
70 29b82486 Leszek Koltunski
    {
71 9ba7f3f6 Leszek Koltunski
    if( mEdges==null )
72 29b82486 Leszek Koltunski
      {
73 9ba7f3f6 Leszek Koltunski
      mEdges = new int[][]
74 29b82486 Leszek Koltunski
        {
75 e8bf9b51 Leszek Koltunski
          {          4,1,5,1, 6,7,7,7,            12,6,13,6,                       22,4,23,4 },  // 0
76
          {                            10,2,11,2,            16,3,17,3, 18,5,19,5            },  // 1
77
          {          4,1,5,1,                     12,6,13,6,                       22,4,23,4 },  // 2
78
          {          4,1,5,1, 6,7,7,7,                                             22,4,23,4 },  // 3
79
          { 0,8,1,8,                   10,2,11,2,            16,3,17,3                       },  // 4
80
          {          4,1,5,1, 6,7,7,7,            12,6,13,6                                  },  // 5
81
          { 0,8,1,8,                   10,2,11,2,                       18,5,19,5            },  // 6
82
          { 0,8,1,8,                                         16,3,17,3, 18,5,19,5            },  // 7
83
          {                   6,7,7,7,            12,6,13,6,                       22,4,23,4 },  // 8
84 29b82486 Leszek Koltunski
        };
85
      }
86
87 9ba7f3f6 Leszek Koltunski
    return mEdges;
88 29b82486 Leszek Koltunski
    }
89
90 61aa85e4 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
91
92 5f54927b Leszek Koltunski
  public String getShortName()
93 61aa85e4 Leszek Koltunski
    {
94 5f54927b Leszek Koltunski
    return ObjectType.DIN4_3.name();
95
    }
96
97
///////////////////////////////////////////////////////////////////////////////////////////////////
98
99 1d581993 Leszek Koltunski
  public ObjectSignature getSignature()
100 5f54927b Leszek Koltunski
    {
101 2dffaf22 Leszek Koltunski
    return new ObjectSignature(ObjectSignatures.DIN4_3);
102 61aa85e4 Leszek Koltunski
    }
103
104 29b82486 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
105
106 e26eb4e7 Leszek Koltunski
  public String getObjectName()
107 29b82486 Leszek Koltunski
    {
108 e26eb4e7 Leszek Koltunski
    return "Dino Cube (4 color)";
109 29b82486 Leszek Koltunski
    }
110
111
///////////////////////////////////////////////////////////////////////////////////////////////////
112
113 e26eb4e7 Leszek Koltunski
  public String getInventor()
114 29b82486 Leszek Koltunski
    {
115 e26eb4e7 Leszek Koltunski
    return "Robert Webb";
116 29b82486 Leszek Koltunski
    }
117 59c20632 Leszek Koltunski
118
///////////////////////////////////////////////////////////////////////////////////////////////////
119
120 e26eb4e7 Leszek Koltunski
  public int getYearOfInvention()
121 59c20632 Leszek Koltunski
    {
122
    return 1985;
123
    }
124 052e0362 Leszek Koltunski
125
///////////////////////////////////////////////////////////////////////////////////////////////////
126
127
  public String[][] getTutorials()
128
    {
129
    return null;
130
    }
131 29b82486 Leszek Koltunski
}