|
boolean | canGamble (Player player, GambleStage requiredStage) |
void | sendRequest (Player player, Player other) |
void | acceptRequest (Player player, Player other) |
void | open (Player player, Player other) |
void | accept (Player player) |
boolean | canPlayFlowerPokerAtPositon (Player player, Position position) |
void | decline (Player player) |
void | deposit (Player player, int itemId, int slot, int amount) |
void | withdraw (Player player, int itemId, int slot, int amount) |
void | finish (Player host, Player opponent, int hostScore, int opponentScore) |
void | give (GambleType gambleType, char winnerIdentifier, Player winner, Player loser, boolean draw) |
void | handleModeSelection (Player player, GambleType type) |
void | reset (Player player) |
Definition at line 59 of file GambleManager.java.
◆ accept()
void com.osroyale.content.gambling.GambleManager.accept |
( |
Player | player | ) |
|
|
inline |
◆ acceptRequest()
void com.osroyale.content.gambling.GambleManager.acceptRequest |
( |
Player | player, |
|
|
Player | other ) |
|
inline |
◆ canGamble()
boolean com.osroyale.content.gambling.GambleManager.canGamble |
( |
Player | player, |
|
|
GambleStage | requiredStage ) |
|
inline |
Checks if the player is allowed to gamble or not
- Parameters
-
- Returns
Definition at line 169 of file GambleManager.java.
◆ canPlayFlowerPokerAtPositon()
boolean com.osroyale.content.gambling.GambleManager.canPlayFlowerPokerAtPositon |
( |
Player | player, |
|
|
Position | position ) |
|
inline |
Checks if the position that was selected is suitable for a game of flower poker
- Parameters
-
- Returns
Definition at line 308 of file GambleManager.java.
◆ decline()
void com.osroyale.content.gambling.GambleManager.decline |
( |
Player | player | ) |
|
|
inline |
◆ deposit()
void com.osroyale.content.gambling.GambleManager.deposit |
( |
Player | player, |
|
|
int | itemId, |
|
|
int | slot, |
|
|
int | amount ) |
|
inline |
◆ finish()
void com.osroyale.content.gambling.GambleManager.finish |
( |
Player | host, |
|
|
Player | opponent, |
|
|
int | hostScore, |
|
|
int | opponentScore ) |
|
inline |
Handles finishing up a automated gamble
- Parameters
-
host | |
opponent | |
hostScore | |
opponentScore | |
Definition at line 502 of file GambleManager.java.
◆ give()
void com.osroyale.content.gambling.GambleManager.give |
( |
GambleType | gambleType, |
|
|
char | winnerIdentifier, |
|
|
Player | winner, |
|
|
Player | loser, |
|
|
boolean | draw ) |
|
inline |
Handles giving the players the winnings or returning the items when its a draw
- Parameters
-
gambleType | |
winnerIdentifier | |
winner | |
loser | |
draw | |
Definition at line 537 of file GambleManager.java.
◆ handleModeSelection()
void com.osroyale.content.gambling.GambleManager.handleModeSelection |
( |
Player | player, |
|
|
GambleType | type ) |
|
inline |
◆ open()
void com.osroyale.content.gambling.GambleManager.open |
( |
Player | player, |
|
|
Player | other ) |
|
inline |
◆ reset()
void com.osroyale.content.gambling.GambleManager.reset |
( |
Player | player | ) |
|
|
inline |
Handles resetting all the gambling variables for a player
- Parameters
-
Definition at line 636 of file GambleManager.java.
◆ sendRequest()
void com.osroyale.content.gambling.GambleManager.sendRequest |
( |
Player | player, |
|
|
Player | other ) |
|
inline |
Handles sending a request to another player
- Parameters
-
Definition at line 183 of file GambleManager.java.
◆ withdraw()
void com.osroyale.content.gambling.GambleManager.withdraw |
( |
Player | player, |
|
|
int | itemId, |
|
|
int | slot, |
|
|
int | amount ) |
|
inline |
◆ confirmed
boolean com.osroyale.content.gambling.GambleManager.confirmed |
|
protected |
◆ container
◆ game
Gamble com.osroyale.content.gambling.GambleManager.game |
|
protected |
◆ other
Player com.osroyale.content.gambling.GambleManager.other |
|
protected |
◆ stage
GambleStage com.osroyale.content.gambling.GambleManager.stage = GambleStage.NONE |
|
protected |
◆ type
GambleType com.osroyale.content.gambling.GambleManager.type = GambleType.NONE |
|
protected |
The documentation for this class was generated from the following file: