summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/transition/TransitionPair.java
blob: a73e671cd7a2f127deca186e8d0db5860cac3022 (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.transition;

/**
 *
 * @author hatkirby
 */
public class TransitionPair {
    
    private OutTransition out;
    private InTransition in;
    
    public TransitionPair(OutTransition out, InTransition in)
    {
        this.out = out;
        this.in = in;
    }
    
    public OutTransition getOutTransition()
    {
        return out;
    }
    
    public InTransition getInTransition()
    {
        return in;
    }
    
    public TransitionPair copy()
    {
        return new TransitionPair((OutTransition) out.copy(), (InTransition) in.copy());
    }

}