org/homelinux/largo/games/board/Piece.java
author Markus Bröker <mbroeker@largo.homelinux.org>
Sun, 08 Feb 2009 07:47:39 +0100
changeset 5 42da09368d71
parent 0 e0dbaef72362
child 13 f83884cc7d2f
permissions -rw-r--r--
Platform Independend Newlines Java uses %n for platform independend newlines \r\n on windows, \n on linux and so on...

/**
 *   $Id: Piece.java 138 2008-04-25 04:37:08Z mbroeker $
 *  $URL: http://localhost/svn/eclipse/Schachspiel/trunk/org/homelinux/largo/games/board/Piece.java $
 */

package org.homelinux.largo.games.board;

import java.awt.Image;

public class Piece extends Object {
	Image image;
	String color;
	int type;
	int value;

	public Piece(Piece s) {
		image = s.image;
		color = s.color;
		type = s.type;
		value = s.value;
	}

	public Piece(Image img, String c, int t, int v) {
		image = img;
		color = c;
		type = t;
		value = v;
	}
}