我对这个完全不知所措。这里的说明,到目前为止,代码:设置Java游戏块
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(...)部分下完成的代码帮助。
这是什么问题? –
请将文本墙重新格式化为更容易理解的内容,并清楚地表明您的问题。 –
如果对于不清楚的指示有某些具体的内容,我相信你会发现周围的人很乐意帮忙。如果问题是“我该做什么”,可能很难在不违背任务要点的情况下帮助你。 –