1package com.runehive.content.lms.lobby;
3import com.runehive.content.lms.LMSGame;
4import com.runehive.content.lms.loadouts.LMSLoadout;
5import com.runehive.game.world.entity.combat.weapon.WeaponInterface;
6import com.runehive.game.world.entity.mob.UpdateFlag;
7import com.runehive.game.world.entity.mob.player.Player;
8import com.runehive.game.world.entity.skill.Skill;
9import com.runehive.game.world.items.Item;
10import com.runehive.game.world.position.Position;
11import com.runehive.util.Utility;
13import java.util.ArrayList;
62 if (player.
pet !=
null) {
73 player.
message(
"A game is currently on-going and should end shortly.");
static boolean isActivePlayer(Player player)
Checks if a player is a active player within the LMS game.
static boolean gameInProgress
Checks if there is currently a game in progress.
static int maxPlayers
The max amount of players allowed in a single game.
static List< Player > lobbyMembers
A list with all the players in the lobby.
static void joinLobby(Player player)
Handles joining the lobby.
static LMSLoadout currentGameType
The current game type.
static Position finish
The position the player gets put on when finishing a game.
static int requiredPlayers
The amount of players in the lobby required.
static boolean DEVELOPMENT_MODE
static void leaveLobby(Player player, boolean logout)
Handles leaving the lobby.
static String getGameTypeName()
List< Item > runes
The runes stores in the rune pouch;.
final SkillManager skills
final EnumSet< UpdateFlag > updateFlags
final SkillManager skills_copy
void move(Position position)
Moves the mob to a set position.
This class represents a character controlled by a player.
final Inventory inventory
void message(String message)
final Equipment equipment
final Equipment equipment_copy
final RunePouch runePouch_copy
final Inventory inventory_copy
final RunePouch runePouch
Represents a trainable and usable skill.
int getLevel()
Gets the current skill level.
int getMaxLevel()
Gets the maximum skill level.
double experienceCounter
The experience counter.
Skill[] getSkills()
Gets the skills of the mob.
Skill get(int id)
Gets the skill for an id.
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
final int getAmount()
Gets the quantity of this item.
void clear()
Removes all of the items from this container.
final void set(Item[] toSet)
void clear()
Removes all of the items from this container.
void updateAnimation()
Updates the weapon animation.
void refresh()
Forces a refresh of Equipment items to the EQUIPMENT_DISPLAY_ID widget.
void refresh()
Refreshes the players inventory.
Represents a single tile on the game world.
int getY()
Gets the absolute y coordinate.
int getX()
Gets the absolute x coordinate.
Position transform(int diffX, int diffY, int diffZ)
Creates a new location based on this location.
Position copy()
Creates a deep copy of this location.
Handles miscellaneous methods.
static int random(int bound)
The enumerated type whose elements represent the weapon interfaces.
static void execute(Player player, Item item)
The method executed when weapon item is equipped or unequipped that assigns a weapon interface to pla...