|
-footer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Move
Represents a player's move, such as hitting or standing.
| Field Summary | |
|---|---|
static Move |
DOUBLE
Single instance of the move that represents doubling down. |
static Move |
HIT
Single instance of the move that represents hitting. |
static Move |
SPLIT
Single instance of the move that represents splitting the hand. |
static Move |
STAND
Single instance of the move that represents standing. |
static Move |
SURRENDER
Single instance of the move that represents surrendering. |
| Method Summary | |
|---|---|
Hand |
execute(Hand hand,
EventHandler handler,
CardList dealerCards)
Executes the move; should only be invoked internally by the framework. |
int |
value()
The numeric value of the move used only internally for equality comparison. |
| Field Detail |
|---|
static final Move HIT
static final Move STAND
static final Move SURRENDER
static final Move DOUBLE
static final Move SPLIT
| Method Detail |
|---|
int value()
Hand execute(Hand hand,
EventHandler handler,
CardList dealerCards)
|
-footer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||