我對這個完全不知所措。這裏的說明,到目前爲止,代碼:設置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(...)部分下完成的代碼幫助。
這是什麼問題? –
請將文本牆重新格式化爲更容易理解的內容,並清楚地表明您的問題。 –
如果對於不清楚的指示有某些具體的內容,我相信你會發現周圍的人很樂意幫忙。如果問題是「我該做什麼」,可能很難在不違背任務要點的情況下幫助你。 –