Project

General

Profile

« Previous | Next » 

Revision 6bb59aad

Added by Leszek Koltunski almost 7 years ago

Progress with support for Effect classes.

View differences:

src/main/java/org/distorted/library/effect/MatrixEffectMove.java
27 27

  
28 28
public class MatrixEffectMove extends MatrixEffect
29 29
  {
30
  private static final String NAME = "MOVE";
30 31
  private static final float[] UNITIES = new float[]{0.0f, 0.0f, 0.0f};
31 32
  private static final int DIMENSION = 3;
32 33
  private static final boolean SUPPORTS_CENTER = false;
33 34
  private static final boolean SUPPORTS_REGION = false;
34 35

  
35 36
///////////////////////////////////////////////////////////////////////////////////////////////////
36

  
37
/**
38
 * Moves the Object by a (possibly changing in time) vector.
39
 *
40
 * @param vector 3-dimensional Data which at any given time will return a Static3D
41
 *               representing the current coordinates of the vector we want to move the Object with.
42
 */
37 43
  public MatrixEffectMove(Data3D vector)
38 44
    {
39
    super(MOVE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION);
45
    super(MOVE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
40 46

  
41 47
    if( vector instanceof Static3D)
42 48
      {

Also available in: Unified diff