Project

General

Profile

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

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

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2022 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
public class ObjectStickerOverride
13
{
14
  private final int[] mCubitFace;
15
  private final int mColor;
16

    
17
///////////////////////////////////////////////////////////////////////////////////////////////////
18

    
19
  public ObjectStickerOverride(int[] cubitface, int color)
20
    {
21
    mColor = color; // ARGB
22
    mCubitFace = cubitface;
23
    }
24

    
25
///////////////////////////////////////////////////////////////////////////////////////////////////
26

    
27
  public int[] getCubitFaces()
28
    {
29
    return mCubitFace;
30
    }
31

    
32
///////////////////////////////////////////////////////////////////////////////////////////////////
33

    
34
  public int getColor()
35
    {
36
    return mColor;
37
    }
38
}
(10-10/13)