/* Project: Email Chess Author: Matti Kantola maza@ee.oulu.fi http://www.angelfire.com/nd/maza Description: Chess piece. History: 26.7.2000 wrote it */ import java.awt.*; public class Piece { static final int WHITE=0,BLACK=1; Image image; int x,y; String name; boolean alive; int type; public Piece(int x,int y,int type,Image image,String name) { this.x=x; this.y=y; this.type=type; this.image=image; this.name=name; this.alive=true; } public boolean isAt(int x,int y) { return ((this.x==x) && (this.y==y) && alive); } }