summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/database/Transitions.java
blob: 74c067465d61ffd66676354552ce452803596a76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.fourisland.fourpuzzle.database;

import com.fourisland.fourpuzzle.transition.FadeTransition;
import com.fourisland.fourpuzzle.transition.SquareTransition;
import com.fourisland.fourpuzzle.transition.TransitionDirection;
import com.fourisland.fourpuzzle.transition.TransitionPair;

/**
 *
 * @author hatkirby
 */
public enum Transitions {
    
    Generic(new TransitionPair(new FadeTransition(TransitionDirection.Out), new FadeTransition(TransitionDirection.In))),
    Map(new TransitionPair(new SquareTransition(TransitionDirection.Out), new SquareTransition(TransitionDirection.In)));
    
    private TransitionPair trans;
    private Transitions(TransitionPair trans)
    {
        this.trans = trans;
    }
    
    TransitionPair getValue()
    {
        return trans;
    }
    
    void setValue(TransitionPair trans)
    {
        this.trans = trans;
    }
    
}