|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectslime.poker.Player
slime.poker.util.HighPlayer
public class HighPlayer
ハイゲームのプレイヤーを表すクラスです。
sortCards()
メソッドではすべてのカードを降順でソートします。
コンストラクタの概要 | |
---|---|
HighPlayer(int id,
java.lang.String name)
コンストラクタ。 |
メソッドの概要 | |
---|---|
HighRule.Hand |
getHand()
役を返します。 |
Card.Rank[] |
getHighCards()
ハイカードを返します。 |
void |
setHand(HighRule.Hand hand)
役を設定します。 |
void |
setHighCards(Card.Rank[] highCards)
ハイカードを設定します。 |
protected void |
sortCards()
カードをソートします。 |
クラス slime.poker.Player から継承されたメソッド |
---|
equals, getCards, getId, getName, getOriginalOrderCards, hashCode, setCards, toString |
クラス java.lang.Object から継承されたメソッド |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
インタフェース slime.poker.StrengthJudgeable から継承されたメソッド |
---|
getCards |
コンストラクタの詳細 |
---|
public HighPlayer(int id, java.lang.String name)
id
- プレイヤーIDname
- プレイヤー名メソッドの詳細 |
---|
public HighRule.Hand getHand()
HighJudgeable
の記述:
HighJudgeable
内の getHand
public void setHand(HighRule.Hand hand)
HighJudgeable
の記述:
HighJudgeable
内の setHand
hand
- 役public Card.Rank[] getHighCards()
public void setHighCards(Card.Rank[] highCards)
HighJudgeable
の記述:
HighJudgeable
内の setHighCards
highCards
- ハイカードprotected void sortCards()
Player
の記述:
Player
内の sortCards
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |