⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 player.java

📁 DoCoMo 手机Java源码 4人游戏用 Cricket
💻 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 + -