我对这个完全不知所措。这是到目前为止的说明和代码:
import java.util.*;
abstract public class AbstractGamePiece
{
// These two constants define the Outlaws and Posse teams
static public final int PLAYER_OUTLAWS = 0;
static public final int PLAYER_POSSE = 1;
// These variables hold the piece's column and row index
protected int myCol;
protected int myRow;
// This variable indicates which team the piece belongs to
protected int myPlayerType;
// These two strings contain the piece's full name and first letter abbreviation
private String myAbbreviation;
private String myName;
// All derived classes will need to implement this method
abstract public boolean hasEscaped();
// Initialize the member variables with the provided data.
public AbstractGamePiece(String name, String abbreviation, int playerType)
{
}
}
我需要帮助的是完成公共 AbstractGamePiece(...) 部分下的代码。