RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.content.gambling.GambleManager Class Reference
Collaboration diagram for com.osroyale.content.gambling.GambleManager:

Public Member Functions

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)

Protected Attributes

GambleStage stage = GambleStage.NONE
Player other
boolean confirmed
GambleType type = GambleType.NONE
Gamble game
ItemContainer container = new ItemContainer(18, ItemContainer.StackPolicy.STANDARD)

Detailed Description

Definition at line 59 of file GambleManager.java.

Member Function Documentation

◆ accept()

void com.osroyale.content.gambling.GambleManager.accept ( Player player)
inline

Handles accepting the gamble

Parameters
player

Definition at line 259 of file GambleManager.java.

◆ acceptRequest()

void com.osroyale.content.gambling.GambleManager.acceptRequest ( Player player,
Player other )
inline

Handles accepting a request

Parameters
player
other

Definition at line 220 of file GambleManager.java.

◆ canGamble()

boolean com.osroyale.content.gambling.GambleManager.canGamble ( Player player,
GambleStage requiredStage )
inline

Checks if the player is allowed to gamble or not

Parameters
player
requiredStage
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
player
position
Returns

Definition at line 308 of file GambleManager.java.

◆ decline()

void com.osroyale.content.gambling.GambleManager.decline ( Player player)
inline

Handles declining the gamble

Parameters
player

Definition at line 327 of file GambleManager.java.

◆ deposit()

void com.osroyale.content.gambling.GambleManager.deposit ( Player player,
int itemId,
int slot,
int amount )
inline

Deposit a item into the gamble session

Parameters
player
slot

Definition at line 373 of file GambleManager.java.

◆ 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

Handles setting the different game types

Parameters
player
type

Definition at line 616 of file GambleManager.java.

◆ open()

void com.osroyale.content.gambling.GambleManager.open ( Player player,
Player other )
inline

Handles opening the interface

Parameters
player
other

Definition at line 240 of file GambleManager.java.

◆ reset()

void com.osroyale.content.gambling.GambleManager.reset ( Player player)
inline

Handles resetting all the gambling variables for a player

Parameters
player

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
player
other

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

Withdraw an item from the gamble session

Parameters
player
slot

Definition at line 416 of file GambleManager.java.

Member Data Documentation

◆ confirmed

boolean com.osroyale.content.gambling.GambleManager.confirmed
protected

Checks if the player has confirmed the gamble

Definition at line 105 of file GambleManager.java.

◆ container

ItemContainer com.osroyale.content.gambling.GambleManager.container = new ItemContainer(18, ItemContainer.StackPolicy.STANDARD)
protected

The container with gambled items of the player

Definition at line 144 of file GambleManager.java.

◆ game

Gamble com.osroyale.content.gambling.GambleManager.game
protected

The current gamble going on between the two players

Definition at line 131 of file GambleManager.java.

◆ other

Player com.osroyale.content.gambling.GambleManager.other
protected

The other player within this gamble

Definition at line 92 of file GambleManager.java.

◆ stage

GambleStage com.osroyale.content.gambling.GambleManager.stage = GambleStage.NONE
protected

The current stage of the gamble

Definition at line 79 of file GambleManager.java.

◆ type

GambleType com.osroyale.content.gambling.GambleManager.type = GambleType.NONE
protected

The gamble type going on

Definition at line 118 of file GambleManager.java.


The documentation for this class was generated from the following file: