1package com.runehive.game.world.entity.mob.player;
3import com.runehive.Config;
4import com.runehive.content.store.Store;
5import com.runehive.content.tradingpost.TradingPost;
6import com.runehive.game.world.entity.mob.player.exchange.ExchangeSessionType;
7import com.runehive.net.packet.out.*;
39 public void open(
int identification) {
40 open(identification,
true);
44 public void open(
int identification,
boolean secure) {
50 if (
player.getCombat().inCombat()) {
55 if (
player.dialogueFactory.isActive() ||
player.dialogueFactory.isOption()) {
56 player.dialogueFactory.clear();
60 main = identification;
82 main = identification;
91 public void close(
int interfaceId) {
104 com.runehive.game.world.entity.mob.player.camera.DialogueCameraDirector.requestReset(
player);
109 if (
player.attributes.has(
"SHOP")) {
113 if (
player.attributes.is(
"BANK_KEY")) {
117 if (
player.attributes.is(
"PRICE_CHECKER_KEY")) {
118 player.priceChecker.close();
121 if (
player.attributes.is(
"TRADE_KEY")) {
125 if (
player.attributes.is(
"DUEL_KEY")) {
129 if (
player.attributes.is(
"DONATOR_DEPOSIT_KEY")) {
130 player.donatorDeposit.close();
134 player.tradingPost.cleanUp();
143 player.dialogueFactory.clear();
150 if (
sidebars[tab] ==
id &&
id != -1) {
188 this.main = currentInterface;
203 this.dialogue = dialogueInterface;
213 this.walkable = walkableInterface;
224 return tab <= sidebars.length &&
sidebars[tab] == id;
The class that contains setting-related constants for the server.
static final int LOGOUT_TAB
The class which holds support for further abstraction for shops.
static void closeShop(Player player)
static final int BUYING_PAGE_INTERFACE_ID
int getMain()
gets the current main interface.
int walkable
The current walkable-interface.
InterfaceManager(Player player)
Creates a new InterfaceManager.
int getWalkable()
Gets the walkable interface.
boolean isClear()
Checks if the player's screen is clear.
int overlay
The current overlay interface.
boolean hasSidebar(int id)
void setMain(int currentInterface)
Sets the current interface.
Player player
The player instance.
boolean hasAnyOpen(int... ids)
boolean isSidebar(int tab, int id)
int getDialogue()
Gets the dialogue interface.
int dialogue
The current dialogue.
void close()
Clears the player's screen.
boolean isDialogueClear()
Checks if the dialogue interface is clear.
void setWalkable(int walkableInterface)
Sets the walkable interface.
void open(int identification, boolean secure)
Opens an itemcontainer for the player.
void close(int interfaceId)
boolean isInterfaceOpen(int id)
Checks if a certain interface is enter.
void openInventory(int identification, int overlay)
Opens an inventory interface for the player.
void openWalkable(int identification)
Opens a walkable-itemcontainer for the player.
void setDialogue(int dialogueInterface)
Sets the dialogue interface.
void open(int identification)
Opens an interface for the player.
boolean isMainClear()
Checks if the main interface is clear.
void setSidebar(int tab, int id)
int main
The current main interface.
void close(boolean walkable)
Handles clearing the screen.
This class represents a character controlled by a player.
The OutgoingPacket that opens an itemcontainer for Player.
The OutgoingPacket that opens the inventory with itemcontainer.
The OutgoingPacket that sends a message to a Players chatbox in the client.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.