manobriscola.java

来自「纸牌游戏(大学作业)」· Java 代码 · 共 23 行

JAVA
23
字号
class ManoBriscola extends Mano {    private Seme briscola;        public ManoBriscola(Seme s) {        super();        briscola = s;    }        public ManoBriscola(Mazzo m, Seme s) throws NoMoreCardsException {        super(m);        briscola = s;    }        public int valore() {        int val=0;        this.ordina();        for(int i=0;i<c.length;i++)            if(c[i].getSeme().get()==briscola.get())                if(c[i].getValore().get()>val)                    val = c[i].getValore().get();        return val;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?