|
@@ -1,5 +1,5 @@
|
1
|
1
|
/*
|
2
|
|
- * Copyright (c) Chris 'MD87' Smith, 2007. All rights reserved.
|
|
2
|
+ * Copyright (c) Chris 'MD87' Smith, 2007-2008. All rights reserved.
|
3
|
3
|
*
|
4
|
4
|
* This code may not be redistributed without prior permission from the
|
5
|
5
|
* aforementioned copyright holder(s).
|
|
@@ -8,17 +8,28 @@
|
8
|
8
|
package com.md87.cardgame;
|
9
|
9
|
|
10
|
10
|
/**
|
11
|
|
- *
|
|
11
|
+ * An enumeration of achievements that may be earnt by the player.
|
|
12
|
+ *
|
12
|
13
|
* @author chris
|
13
|
14
|
*/
|
14
|
15
|
public enum Achievement {
|
15
|
|
-
|
|
16
|
+
|
|
17
|
+ /** Win a hand after going all in. */
|
16
|
18
|
ALL_IN_WIN("All in", "Go all in and win the hand"),
|
|
19
|
+ /** Win a tournament. */
|
17
|
20
|
TOURNAMENT_WIN("Winner", "Beat at least three other players to win a tournament"),
|
|
21
|
+ /** Get a flush. */
|
18
|
22
|
FLUSH("Flushed", "Make a five-card flush"),
|
|
23
|
+ /** Win both high and low pots. */
|
19
|
24
|
HIGH_LOW("High/low", "Win both the high and low pots in a game of Omaha High/Low"),
|
20
|
|
- STREAK("Winning streak", "Win five consecutive hands in a tournament")
|
21
|
|
- ;
|
|
25
|
+ /** Win five hands in a row. */
|
|
26
|
+ STREAK("Winning streak", "Win five consecutive hands in a tournament"),
|
|
27
|
+ /** Win a hand with no pair. */
|
|
28
|
+ BEST_OF_WORST("Best of the worst", "Win a hand with the highest 'no pair' hand"),
|
|
29
|
+ /** Go from last place to first. */
|
|
30
|
+ COMEBACK("Comeback", "Win a tournament after being last at some point"),
|
|
31
|
+ /** Poker addict. */
|
|
32
|
+ ADDICT("Addicted to poker", "Play 100 tournaments");
|
22
|
33
|
|
23
|
34
|
protected String name;
|
24
|
35
|
protected String desc;
|