我收到两条错误消息:一条说class GameState is already defined in package unnamed package
,另一条说:在这一行找不到符号
this.gameStatus = gameStatus.continues;
这是我的代码:
public class GameState
{
private enum GameState {win, lose, continues};
private GameState gameStatus;
public GameState() {
initializeGameState();
}
public void initializeGameState() {
this.gameStatus = gameStatus.continues;
}
}
提前致谢