org/homelinux/largo/games/board/History.java
changeset 13 f83884cc7d2f
parent 0 e0dbaef72362
child 16 55b0d5006e7b
equal deleted inserted replaced
12:d28c1e402d82 13:f83884cc7d2f
     3  * $URL: http://localhost/svn/eclipse/Schachspiel/trunk/org/homelinux/largo/games/board/History.java $
     3  * $URL: http://localhost/svn/eclipse/Schachspiel/trunk/org/homelinux/largo/games/board/History.java $
     4  */
     4  */
     5 
     5 
     6 package org.homelinux.largo.games.board;
     6 package org.homelinux.largo.games.board;
     7 
     7 
     8 import org.homelinux.largo.games.board.Piece;
     8 public class History {
       
     9     Piece piece;
       
    10     int pos;
       
    11     boolean turn;
     9 
    12 
    10 public class History {
    13     public History(Piece p, int n, boolean t) {
    11 	Piece piece;
    14         piece = new Piece(p);
    12 	int pos;
    15         pos = n;
    13 	boolean turn;
    16         turn = t;
       
    17     }
    14 
    18 
    15 	public History(Piece p, int n, boolean t) {
    19     public Piece piece() {
    16 		piece = new Piece(p);
    20         return piece;
    17 		pos = n;
    21     }
    18 		turn = t;
       
    19 	}
       
    20 
    22 
    21 	public Piece piece() {
    23     public int pos() {
    22 		return piece;
    24         return pos;
    23 	}
    25     }
    24 
    26 
    25 	public int pos() {
    27     public boolean turn() {
    26 		return pos;
    28         return turn;
    27 	}
    29     }
    28 
       
    29 	public boolean turn() {
       
    30 		return turn;
       
    31 	}
       
    32 }
    30 }