Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / effects / solve / SolveEffectNone.java @ b26ea579

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.effects.solve;
11

    
12
import org.distorted.library.effect.Effect;
13
import org.distorted.library.effect.MatrixEffectMove;
14
import org.distorted.library.type.Dynamic3D;
15
import org.distorted.library.type.Static3D;
16

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

    
19
public class SolveEffectNone extends SolveEffect
20
  {
21
  public void createEffectsPhase0(int duration)
22
    {
23
    Dynamic3D d0 = new Dynamic3D(1,0.5f);
24
    d0.add(new Static3D(0,0,0));
25

    
26
    mCubeEffectPosition[0] = new int[] {-1};
27
    mCubeEffects[0]        = new Effect[mCubeEffectPosition[0].length];
28
    mCubeEffects[0][0]     = new MatrixEffectMove(d0);
29
    }
30

    
31
///////////////////////////////////////////////////////////////////////////////////////////////////
32

    
33
  public void createEffectsPhase1(int duration)
34
    {
35
    Dynamic3D d0 = new Dynamic3D(1,0.5f);
36
    d0.add(new Static3D(0,0,0));
37

    
38
    mCubeEffectPosition[1]  = new int[] {-1};
39
    mCubeEffects[1]         = new Effect[mCubeEffectPosition[1].length];
40
    mCubeEffects[1][0]      = new MatrixEffectMove(d0);
41
    }
42

    
43
///////////////////////////////////////////////////////////////////////////////////////////////////
44
// Enable all effects used in this Effect. Called by reflection from the parent class.
45

    
46
  @SuppressWarnings("unused")
47
  static void enable()
48
    {
49

    
50
    }
51
  }
(2-2/3)