|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectslime.poker.util.SevenCardPokerHighRule
public class SevenCardPokerHighRule
7枚のカードを使うポーカーのハイゲームのルールを表すクラスです。
slime.poker.StrengthJudgeable#getCards()
で返されるカード配列は
降順でソートされているものと仮定しています。
入れ子のクラスの概要 |
---|
インタフェース slime.poker.HighRule から継承された入れ子のクラス/インタフェース |
---|
HighRule.Hand |
フィールドの概要 | |
---|---|
static int |
CARD_COUNT
カード枚数 |
インタフェース slime.poker.Rule から継承されたフィールド |
---|
JUDGE_COUNT |
コンストラクタの概要 | |
---|---|
SevenCardPokerHighRule()
コンストラクタ。 |
メソッドの概要 | |
---|---|
boolean |
isFiveOfAKind(HighJudgeable player)
ファイブカードかどうかを返します。 |
boolean |
isFlush(HighJudgeable player)
フラッシュかどうかを返します。 |
boolean |
isFourOfAKind(HighJudgeable player)
フォーカードかどうかを返します。 |
boolean |
isFullHause(HighJudgeable player)
フルハウスかどうかを返します。 |
boolean |
isOnePair(HighJudgeable player)
ワンペアかどうかを返します。 |
boolean |
isStraight(HighJudgeable player)
ストレートかどうかを返します。 |
boolean |
isStraightFlush(HighJudgeable player)
ストレートフラッシュかどうかを返します。 |
boolean |
isThreeOfAKind(HighJudgeable player)
スリーカードかどうかを返します。 |
boolean |
isTwoPair(HighJudgeable player)
ツーペアかどうかを返します。 |
void |
judgeHand(HighJudgeable player)
プレイヤーの役を判定します。 |
boolean |
useJoker()
ジョーカーを使うかどうかを返します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int CARD_COUNT
コンストラクタの詳細 |
---|
public SevenCardPokerHighRule()
メソッドの詳細 |
---|
public boolean isFiveOfAKind(HighJudgeable player)
HighRule
の記述:
HighRule
内の isFiveOfAKind
player
- 対象のプレイヤー
public boolean isStraightFlush(HighJudgeable player)
HighRule
の記述:
HighRule
内の isStraightFlush
player
- 対象のプレイヤー
public boolean isFourOfAKind(HighJudgeable player)
HighRule
の記述:
HighRule
内の isFourOfAKind
player
- 対象のプレイヤー
public boolean isFullHause(HighJudgeable player)
HighRule
の記述:
HighRule
内の isFullHause
player
- 対象のプレイヤー
public boolean isFlush(HighJudgeable player)
HighRule
の記述:
HighRule
内の isFlush
player
- 対象のプレイヤー
public boolean isStraight(HighJudgeable player)
HighRule
の記述:
HighRule
内の isStraight
player
- 対象のプレイヤー
public boolean isThreeOfAKind(HighJudgeable player)
HighRule
の記述:
HighRule
内の isThreeOfAKind
player
- 対象のプレイヤー
public boolean isTwoPair(HighJudgeable player)
HighRule
の記述:
HighRule
内の isTwoPair
player
- 対象のプレイヤー
public boolean isOnePair(HighJudgeable player)
HighRule
の記述:
HighRule
内の isOnePair
player
- 対象のプレイヤー
public void judgeHand(HighJudgeable player)
HighRule
の記述:
HighRule
内の judgeHand
player
- 対象のプレイヤーpublic boolean useJoker()
Rule
の記述:
Rule
内の useJoker
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |