Project

General

Profile

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

distorted-objectlib / src / main / java / org / distorted / objectlib / effects / win / WinEffectNone.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.win;
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 WinEffectNone extends WinEffect
20
  {
21
  public void createEffects(int duration)
22
    {
23
    Dynamic3D d0 = new Dynamic3D(1,0.5f);
24
    d0.add(new Static3D(0,0,0));
25

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

    
31
///////////////////////////////////////////////////////////////////////////////////////////////////
32
// Enable all effects used in this Effect. Called by reflection from the parent class.
33

    
34
  @SuppressWarnings("unused")
35
  static void enable()
36
    {
37

    
38
    }
39
  }
(3-3/3)