equal
deleted
inserted
replaced
|
1 /** |
|
2 * $Id: Piece.java 138 2008-04-25 04:37:08Z mbroeker $ |
|
3 * $URL: http://localhost/svn/eclipse/Schachspiel/trunk/org/homelinux/largo/games/board/Piece.java $ |
|
4 */ |
|
5 |
|
6 package org.homelinux.largo.games.board; |
|
7 |
|
8 import java.awt.Image; |
|
9 |
|
10 public class Piece extends Object { |
|
11 Image image; |
|
12 String color; |
|
13 int type; |
|
14 int value; |
|
15 |
|
16 public Piece(Piece s) { |
|
17 image = s.image; |
|
18 color = s.color; |
|
19 type = s.type; |
|
20 value = s.value; |
|
21 } |
|
22 |
|
23 public Piece(Image img, String c, int t, int v) { |
|
24 image = img; |
|
25 color = c; |
|
26 type = t; |
|
27 value = v; |
|
28 } |
|
29 } |