diff options
Diffstat (limited to 'src/com/fourisland/fourpuzzle/transition/TransitionPair.java')
-rw-r--r-- | src/com/fourisland/fourpuzzle/transition/TransitionPair.java | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/com/fourisland/fourpuzzle/transition/TransitionPair.java b/src/com/fourisland/fourpuzzle/transition/TransitionPair.java new file mode 100644 index 0000000..a73e671 --- /dev/null +++ b/src/com/fourisland/fourpuzzle/transition/TransitionPair.java | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * To change this template, choose Tools | Templates | ||
3 | * and open the template in the editor. | ||
4 | */ | ||
5 | |||
6 | package com.fourisland.fourpuzzle.transition; | ||
7 | |||
8 | /** | ||
9 | * | ||
10 | * @author hatkirby | ||
11 | */ | ||
12 | public class TransitionPair { | ||
13 | |||
14 | private OutTransition out; | ||
15 | private InTransition in; | ||
16 | |||
17 | public TransitionPair(OutTransition out, InTransition in) | ||
18 | { | ||
19 | this.out = out; | ||
20 | this.in = in; | ||
21 | } | ||
22 | |||
23 | public OutTransition getOutTransition() | ||
24 | { | ||
25 | return out; | ||
26 | } | ||
27 | |||
28 | public InTransition getInTransition() | ||
29 | { | ||
30 | return in; | ||
31 | } | ||
32 | |||
33 | public TransitionPair copy() | ||
34 | { | ||
35 | return new TransitionPair((OutTransition) out.copy(), (InTransition) in.copy()); | ||
36 | } | ||
37 | |||
38 | } | ||