?? player.java
字號:
package Darts;
/* Darts Player. */
/* 僾儗僀儎乕偺掕媊僋儔僗 */
public class Player {
private int hitNum[][];
private int hitArea[][];
public Player (int _roundCnt) {
hitNum = new int[_roundCnt][GameBase.THROWMAX];
hitArea = new int[_roundCnt][GameBase.THROWMAX];
for ( int i = 0; i < _roundCnt; i++ ) {
for ( int j = 0; j < GameBase.THROWMAX; j++ ) {
hitNum [i][j] = 0;
hitArea[i][j] = 0;
}
}
}
public void hitting(int _round, int _throwCnt, int _hitNum, int _hitArea) {
this.hitNum [_round - 1][_throwCnt - 1] = _hitNum;
this.hitArea[_round - 1][_throwCnt - 1] = _hitArea;
}
public int[][] getHitNum() {
return this.hitNum;
}
public int[][] getHitArea() {
return this.hitArea;
}
public int getHitNum(int _round, int _throwCnt) {
return this.hitNum[_round - 1][_throwCnt - 1];
}
public int getHitArea(int _round, int _throwCnt) {
return this.hitArea[_round - 1][_throwCnt - 1];
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -