manager
Class ChessPiece

java.lang.Object
  extended by manager.Piece
      extended by manager.ChessPiece

public class ChessPiece
extends Piece

Esta classe implementa todas as peças de Xadrez ChessGame. Ela estende a classe de peças genéricas Piece para a criação das peças de xadres: king, queen, rook, bishop, knight, pawn (respectivamente: rei, rainha, torre, bisto, cavalo e peão).

Version:
1.0 beta - 03/11/2008
Author:
Luciano Antonio Digiampietri
See Also:
ChessGame, Piece

Field Summary
 
Fields inherited from class manager.Piece
ID, PLAYER
 
Constructor Summary
ChessPiece(java.lang.String id, int player)
           
ChessPiece(java.lang.String id, int player, java.lang.String type)
           
 
Method Summary
 java.lang.String get_type()
           
 java.lang.String getString()
           
 
Methods inherited from class manager.Piece
discoverPiece, getForce, getId, getPlayer, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChessPiece

public ChessPiece(java.lang.String id,
                  int player)

ChessPiece

public ChessPiece(java.lang.String id,
                  int player,
                  java.lang.String type)
Method Detail

get_type

public java.lang.String get_type()

getString

public java.lang.String getString()
Overrides:
getString in class Piece