Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / shape / ShapeDiamond.java @ 33ba467a

1 54588439 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2019 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 b31249d6 Leszek Koltunski
package org.distorted.objectlib.shape;
11 54588439 Leszek Koltunski
12
import org.distorted.library.type.Static3D;
13
import org.distorted.library.type.Static4D;
14 cf93ea4e Leszek Koltunski
import org.distorted.objectlib.main.InitAssets;
15 b31249d6 Leszek Koltunski
import org.distorted.objectlib.main.TwistyObject;
16 ae9d9227 leszek
import org.distorted.objectlib.metadata.Metadata;
17 54588439 Leszek Koltunski
18 b7ae2292 leszek
import static org.distorted.objectlib.shape.ShapeColors.*;
19
20 54588439 Leszek Koltunski
///////////////////////////////////////////////////////////////////////////////////////////////////
21
22
public abstract class ShapeDiamond extends TwistyObject
23
{
24 a76330cc Leszek Koltunski
  public static final Static4D DEFAULT_ROT = new Static4D(-0.09848663f, 0.6306283f, 0.67572856f, 0.36878252f);
25 54588439 Leszek Koltunski
26 f9337e48 Leszek Koltunski
  public static final int[] FACE_COLORS = new int[]
27 54588439 Leszek Koltunski
         {
28 33ba467a leszek
                 COLOR_RED, COLOR_RED,
29
                 COLOR_DPINK, COLOR_DPINK,
30
                 COLOR_BLUEISH, COLOR_BLUEISH,
31
                 COLOR_LBLUE, COLOR_LBLUE,
32
                 COLOR_SELEDY, COLOR_SELEDY,
33
                 COLOR_LGREEN, COLOR_LGREEN,
34
                 COLOR_DYELLO, COLOR_DYELLO,
35
                 COLOR_ORANGE, COLOR_ORANGE,
36 54588439 Leszek Koltunski
         };
37
38 f9337e48 Leszek Koltunski
  public static final int NUM_FACES = 16;
39 b31249d6 Leszek Koltunski
  public static final int FOV = 40;
40
  public static final float RATIO = 0.75f;
41 54588439 Leszek Koltunski
42
///////////////////////////////////////////////////////////////////////////////////////////////////
43
44 ae9d9227 leszek
  public ShapeDiamond(int iconMode, float realSize, Static4D quat, Static3D move, float scale, Metadata meta, InitAssets asset)
45 54588439 Leszek Koltunski
    {
46 ae9d9227 leszek
    super(iconMode, realSize, quat, move, scale, meta, asset);
47 54588439 Leszek Koltunski
    }
48
49
///////////////////////////////////////////////////////////////////////////////////////////////////
50
51 1eafa9c6 leszek
  public final int getNumPuzzleFaces()
52 54588439 Leszek Koltunski
    {
53
    return NUM_FACES;
54
    }
55
56
///////////////////////////////////////////////////////////////////////////////////////////////////
57
58 962b8ff6 leszek
  public int[] getColorTable()
59 54588439 Leszek Koltunski
    {
60 962b8ff6 leszek
    return FACE_COLORS;
61 54588439 Leszek Koltunski
    }
62
63
///////////////////////////////////////////////////////////////////////////////////////////////////
64
65
  public int getFOV()
66
    {
67
    return FOV;
68
    }
69
70
///////////////////////////////////////////////////////////////////////////////////////////////////
71
72
  public float getScreenRatio()
73
    {
74
    return RATIO;
75
    }
76
}