/** * Class containing all the constants for the roulette game. All game * index positions are located in this class. * * @author Chris Juffre, cjuffre@cs.uml.edu * @since 1.0 * @version 1.0 */ public class RouletteConstants { /** Represents the number 00 * @since 1.0 * */ public static final int POS_NUM_00 = 37; /** Represents the number 0 * @since 1.0 * */ public static final int POS_NUM_0 = 0; /** Represents the number 1 * @since 1.0 * */ public static final int POS_NUM_1 = 1; /** Represents the number 2 * @since 1.0 * */ public static final int POS_NUM_2 = 2; /** Represents the number 3 * @since 1.0 * */ public static final int POS_NUM_3 = 3; /** Represents the number 4 * @since 1.0 * */ public static final int POS_NUM_4 = 4; /** Represents the number 5 * @since 1.0 * */ public static final int POS_NUM_5 = 5; /** Represents the number 6 * @since 1.0 * */ public static final int POS_NUM_6 = 6; /** Represents the number 7 * @since 1.0 * */ public static final int POS_NUM_7 = 7; /** Represents the number 8 * @since 1.0 * */ public static final int POS_NUM_8 = 8; /** Represents the number 9 * @since 1.0 * */ public static final int POS_NUM_9 = 9; /** Represents the number 10 * @since 1.0 * */ public static final int POS_NUM_10 = 10; /** Represents the number 11 * @since 1.0 * */ public static final int POS_NUM_11 = 11; /** Represents the number 12 * @since 1.0 * */ public static final int POS_NUM_12 = 12; /** Represents the number 13 * @since 1.0 * */ public static final int POS_NUM_13 = 13; /** Represents the number 14 * @since 1.0 * */ public static final int POS_NUM_14 = 14; /** Represents the number 15 * @since 1.0 * */ public static final int POS_NUM_15 = 15; /** Represents the number 16 * @since 1.0 * */ public static final int POS_NUM_16 = 16; /** Represents the number 17 * @since 1.0 * */ public static final int POS_NUM_17 = 17; /** Represents the number 18 * @since 1.0 * */ public static final int POS_NUM_18 = 18; /** Represents the number 19 * @since 1.0 * */ public static final int POS_NUM_19 = 19; /** Represents the number 20 * @since 1.0 * */ public static final int POS_NUM_20 = 20; /** Represents the number 21 * @since 1.0 * */ public static final int POS_NUM_21 = 21; /** Represents the number 22 * @since 1.0 * */ public static final int POS_NUM_22 = 22; /** Represents the number 23 * @since 1.0 * */ public static final int POS_NUM_23 = 23; /** Represents the number 24 * @since 1.0 * */ public static final int POS_NUM_24 = 24; /** Represents the number 25 * @since 1.0 * */ public static final int POS_NUM_25 = 25; /** Represents the number 26 * @since 1.0 * */ public static final int POS_NUM_26 = 26; /** Represents the number 27 * @since 1.0 * */ public static final int POS_NUM_27 = 27; /** Represents the number 28 * @since 1.0 * */ public static final int POS_NUM_28 = 28; /** Represents the number 29 * @since 1.0 * */ public static final int POS_NUM_29 = 29; /** Represents the number 30 * @since 1.0 * */ public static final int POS_NUM_30 = 30; /** Represents the number 31 * @since 1.0 * */ public static final int POS_NUM_31 = 31; /** Represents the number 32 * @since 1.0 * */ public static final int POS_NUM_32 = 32; /** Represents the number 33 * @since 1.0 * */ public static final int POS_NUM_33 = 33; /** Represents the number 34 * @since 1.0 * */ public static final int POS_NUM_34 = 34; /** Represents the number 35 * @since 1.0 * */ public static final int POS_NUM_35 = 35; /** Represents the number 36 * @since 1.0 * */ public static final int POS_NUM_36 = 36; /** Represents the bottom 2:1 row * @since 1.0 * */ public static final int POS_BOTTOM_ROW = 38; /** Represents the middle 2:1 row * @since 1.0 * */ public static final int POS_MIDDLE_ROW = 39; /** Represents the top 2:1 row * @since 1.0 * */ public static final int POS_TOP_ROW = 40; /** Represents the first third (numbers 1-12) * @since 1.0 * */ public static final int POS_FIRST_12 = 41; /** Represents the second third (numbers 13-24) * @since 1.0 * */ public static final int POS_SECOND_12 = 42; /** Represents the third third (numbers 25-36) * @since 1.0 * */ public static final int POS_THIRD_12 = 43; /** Represents the numbers from 1 to 18 * @since 1.0 * */ public static final int POS_1_TO_18 = 44; /** Represents the EVEN numbers * @since 1.0 * */ public static final int POS_EVEN = 45; /** Represents the RED numbers * @since 1.0 * */ public static final int POS_RED = 46; /** Represents the BLACK numbers * @since 1.0 * */ public static final int POS_BLACK = 47; /** Represents the ODD numbers * @since 1.0 * */ public static final int POS_ODD = 48; /** Represents the numbers 19 to 36 * @since 1.0 * */ public static final int POS_19_TO_36 = 49; /** Represents the constant for a non-winning betting category. * *

* This can not be applied to the number category in the WinningNumber class. * @since 1.0 * */ public static final int NO_WINNER = -1; /** * The help text used for the applet. * @since 1.0 */ public static final String HELP_TEXT = "Roulette\n-------------\n\n" + "Here we have a lite version of a casino roulette game. You can bet the exact same way " + "you would in a regular casino except for corner or side bets. This means that you cannot " + "bet on the corner spot of four different numbers or the side of two different numbers. For " + "example, placing a bet between the 2 and the 5 is not allowed. Also, placing a bet on the " + "corner of the 1, 2, 4, and 5 is also not allowed. However, you could always divide your bet " + "by the number of numbers desired and place individual bets. Therefore, in theory, you can still " + "make side and corner bets; it just must be done in a different manner.\n\n" + "You make bets by selecting a denomination from the combo box and left mouse clicking the position " + "on the board where you would like to place the bet. You can also remove betting increments by selecting " + "a denomination and right mouse clicking the position where you want the bet removed. If the denomination is " + "smaller then the wager, the denomination will be deducted from the wager, placed back in your current funds, and " + "the remainder of the bet will be placed. If the denomination is larger then the wager, the wager will be completely " + "removed and the wager will be added back to the current funds.\n\nThe current bets text area also displays all of the " + "current bets and wagers (along with the chips on the board). After the spin, the text area that usually displays the current " + "bets displays a betting report containing winning and losing bets, winning number, total payout for each bet (included amount wagered), " + "and the outcome of all bets total.\n\nButton Actions\n----------------------\n\n Reset Current Bets on Table\n This button removes all current " + "bets that exist in the table and place their wagers back into your available funds.\n\n Remove Last Bet in List\n Removes the last bet in the current " + "bets text area list in its entirety regardless of current denomination selected.\n\n Spin Wheel\n Generates a random number from the game and generates " + "payoff information.\n\n Restart Entire Game\n Resets everything back to original setting including current funds. Completely starts the game over.\n\n" + " Replay Previous Round's Bets\n Sets the board up to place the same exact bets that were played the last time the wheel was spun.\n\n\nThe number that was selected " + "is displayed in its board color in the bottom right of the applet. It stays until the next time the wheel (in which case it is updated), or if the Restart Game " + "button is pressed.\n\nHotkey Mode\n----------------\n\nYou can selected all betting increments through hotkey also. To use a hot key hold down the ALT key and press one of the " + "following keys to change the betting increments:\n\nALT-1 One dollar betting increments\nALT-2 Five dollar betting increments\nALT-3 25 dollar increments\n" + "ALT-4 One hundred dollar increments\n ALT-5 Five hundred dollar increments\n\nTroubleshooting\n---------------------\n\nSometimes hotkey mode can be disabled if the betting " + "increment combo box has the focus. To fix this click somewhere on the applet or re-choose a betting increment using the combo box."; }