equal
deleted
inserted
replaced
4 */ |
4 */ |
5 |
5 |
6 package org.homelinux.largo.games.board; |
6 package org.homelinux.largo.games.board; |
7 |
7 |
8 public class History { |
8 public class History { |
9 Piece piece; |
9 Piece piece; |
10 int pos; |
10 int pos; |
11 boolean turn; |
11 boolean turn; |
12 |
12 |
13 public History(Piece p, int n, boolean t) { |
13 public History(Piece p, int n, boolean t) { |
14 piece = new Piece(p); |
14 piece = new Piece(p); |
15 pos = n; |
15 pos = n; |
16 turn = t; |
16 turn = t; |
17 } |
17 } |
18 |
18 |
19 public Piece piece() { |
19 public Piece piece() { |
20 return piece; |
20 return piece; |
21 } |
21 } |
22 |
22 |
23 public int pos() { |
23 public int pos() { |
24 return pos; |
24 return pos; |
25 } |
25 } |
26 |
26 |
27 public boolean turn() { |
27 public boolean turn() { |
28 return turn; |
28 return turn; |
29 } |
29 } |
30 } |
30 } |