Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / main / InitData.java @ e3169794

1
///////////////////////////////////////////////////////////////////////////////////////////////////
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
package org.distorted.objectlib.main;
11

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

    
14
public class InitData
15
  {
16
  private final int[] mNumLayers;
17
  private final int mParam;
18
  private final float[][] mPos;
19

    
20
///////////////////////////////////////////////////////////////////////////////////////////////////
21

    
22
  public InitData(int[] numLayers)
23
    {
24
    mNumLayers = numLayers;
25
    mParam = 0;
26
    mPos = null;
27
    }
28

    
29
///////////////////////////////////////////////////////////////////////////////////////////////////
30

    
31
  public InitData(int[] numLayers, int param)
32
    {
33
    mNumLayers = numLayers;
34
    mParam = param;
35
    mPos = null;
36
    }
37

    
38
///////////////////////////////////////////////////////////////////////////////////////////////////
39

    
40
  public InitData(int[] numLayers, float[][] pos)
41
    {
42
    mNumLayers = numLayers;
43
    mParam = 0;
44
    mPos = pos;
45
    }
46

    
47
///////////////////////////////////////////////////////////////////////////////////////////////////
48

    
49
  public InitData(int[] numLayers, float[][] pos, int param)
50
    {
51
    mNumLayers = numLayers;
52
    mParam = param;
53
    mPos = pos;
54
    }
55

    
56
///////////////////////////////////////////////////////////////////////////////////////////////////
57

    
58
  public int[] getNumLayers()
59
    {
60
    return mNumLayers;
61
    }
62

    
63
///////////////////////////////////////////////////////////////////////////////////////////////////
64

    
65
  public int getParam()
66
    {
67
    return mParam;
68
    }
69

    
70
///////////////////////////////////////////////////////////////////////////////////////////////////
71

    
72
  public float[][] getPos()
73
    {
74
    return mPos;
75
    }
76
}
(2-2/11)