org/homelinux/largo/games/board/Piece.java
changeset 16 55b0d5006e7b
parent 13 f83884cc7d2f
equal deleted inserted replaced
15:d4b2b9a87d80 16:55b0d5006e7b
     6 package org.homelinux.largo.games.board;
     6 package org.homelinux.largo.games.board;
     7 
     7 
     8 import java.awt.Image;
     8 import java.awt.Image;
     9 
     9 
    10 public class Piece extends Object {
    10 public class Piece extends Object {
    11     Image image;
    11 	Image image;
    12     String color;
    12 	String color;
    13     int type;
    13 	int type;
    14     int value;
    14 	int value;
    15 
    15 
    16     public Piece(Piece s) {
    16 	public Piece(Piece s) {
    17         image = s.image;
    17 		image = s.image;
    18         color = s.color;
    18 		color = s.color;
    19         type = s.type;
    19 		type = s.type;
    20         value = s.value;
    20 		value = s.value;
    21     }
    21 	}
    22 
    22 
    23     public Piece(Image img, String c, int t, int v) {
    23 	public Piece(Image img, String c, int t, int v) {
    24         image = img;
    24 		image = img;
    25         color = c;
    25 		color = c;
    26         type = t;
    26 		type = t;
    27         value = v;
    27 		value = v;
    28     }
    28 	}
    29 }
    29 }