?? player.java
字號(hào):
// Description: This class is for the actual "pawn" of the game, the player.public class Player{ // Variables Of class Player private String PlayerName; private String currentPlayer; private int PlayerSquare; private Dice dice; //private String player1; //private String player2; // The Constructor of class Player public Player(String name) { PlayerName = name; } // The Methods of class Player // Method of returning the PlayerName public String getPlayerName() { return PlayerName; } // Method of getting the currentsquare the player is on. public int getCurrentSquare() { PlayerSquare = dice.generatePlayerSquare(); return PlayerSquare; } }
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -