|
RuneHive-Game
|
Static Public Member Functions | |
| static boolean | canAttack (Player player, Player target) |
| Checks if the player is allowed to attack the target. | |
| static int | getKeyId () |
| The key id the player gets after a kill. | |
| static void | giveItems (Player player, boolean clear) |
| Handles giving the player correct inventory and equipment. | |
| static void | handleFog () |
| Handles the fog closing in on the save zone. | |
| static boolean | inGameArea (Player player) |
| Handles checking if the player is in the LMS game area. | |
| static boolean | isActivePlayer (Player player) |
| Checks if a player is a active player within the LMS game. | |
| static void | moveToGame (List< Player > players) |
| Handles moving all the players to the game. | |
| static void | onDeath (Player player, boolean forceRemove) |
| Handles when a player within the LMS game dies. | |
| static void | onKill (Player killer) |
| Handles the killers stuff. | |
| static void | processPlayer (Player player) |
| Handles processing the player if hes a active player within the LMS game. | |
| static void | reset (Player player) |
| Handles resetting the player that was in the game and either left by dying or other means. | |
| static void | resupplyKiller (Player player) |
| Handles resupplying the killer. | |
| static void | rollChest (Player player, int keyId, boolean lootCrate) |
| Handles rolling the loot chest. | |
| static void | setLevels (Player player) |
| Handles setting the correct stats of the player It also makes a copy of the player his stats. | |
| static void | setupSafezone () |
| Handles setting up the safezone. | |
| static void | updateInterface () |
| Handles updating the player's there interface. | |
Static Public Attributes | |
| static boolean | canAttack = false |
| Checks if the players are allowed to attack within the game. | |
| static int | crateTicks |
| The current amount of crate ticks within the lms game. | |
| static boolean | gameInProgress |
| Checks if there is currently a game in progress. | |
| static List< Player > | gamePlayers = new ArrayList<>() |
| All the players within the LMS game. | |
| static int | gameTicks |
| The current amount of game ticks within the lms game. | |
| static LMSCrate | lmsCrate |
| The lms crate within the game. | |
| static int | startingTicks |
| The amount of ticks before the real game starts. | |
Static Private Member Functions | |
| static void | gearUpPlayers () |
| Handles gearing up all the players. | |
| static String | getGameTypeName () |
| static int | getItemAmountForItem (int loot) |
| Gets the amount of the item its supposed to drop when a player dies/logouts with there upgrades. | |
| static int | getPointsForPlacement (int remaining) |
| The amount of points the player receives when the player leaves/dies. | |
| static void | giveChestItems (int loot, int amount, Player player) |
| Handles giving the chest loot to the player by inventory or ground. | |
| static void | handleFogDamage (Player player) |
| Handles the fog damage for a player. | |
| static void | resetLevels (Player player) |
| Handles resetting the copied stats to the player. | |
| static void | start () |
| Handles starting the lms game. | |
Static Private Attributes | |
| static Fog | currentFog = new Fog(-1, -1, -1, -1) |
| The current fod within the LMS game. | |
| static LMSLoadout | currentGameType |
| The current loadout of the game. | |
| static int | lastFogCycle |
| static List< Position > | possible_spawns |
| All the possible spawns of the lms game. | |
| static LMSSafezone | safeZone |
| The current safe zone within the game. | |
| static List< CustomGameObject > | storedObjects = new ArrayList<>() |
| The safezone objects within the lms game. | |
Definition at line 38 of file LMSGame.java.
Checks if the player is allowed to attack the target.
| player | |
| target |
Definition at line 161 of file LMSGame.java.
References canAttack, com.runehive.game.world.entity.mob.player.Player.getCombat(), com.runehive.game.world.entity.mob.player.Player.getName(), com.runehive.game.world.entity.mob.player.Player.getUsername(), inGameArea(), com.runehive.game.world.position.Area.inMulti(), com.runehive.game.world.entity.mob.player.Player.lmsImmunity, com.runehive.game.world.entity.mob.player.Player.message(), and com.runehive.game.world.entity.mob.player.Player.send().
|
staticprivate |
Handles gearing up all the players.
Definition at line 310 of file LMSGame.java.
References gamePlayers, giveItems(), possible_spawns, com.runehive.util.Utility.random(), and setLevels().
Referenced by start().
|
staticprivate |
Definition at line 97 of file LMSGame.java.
References currentGameType.
|
staticprivate |
Gets the amount of the item its supposed to drop when a player dies/logouts with there upgrades.
| loot |
Definition at line 682 of file LMSGame.java.
Referenced by onDeath(), and rollChest().
|
static |
The key id the player gets after a kill.
Definition at line 716 of file LMSGame.java.
References gamePlayers.
Referenced by onKill().
|
staticprivate |
The amount of points the player receives when the player leaves/dies.
| remaining |
Definition at line 699 of file LMSGame.java.
Referenced by onDeath().
|
staticprivate |
Handles giving the chest loot to the player by inventory or ground.
| loot | |
| amount | |
| player |
Definition at line 265 of file LMSGame.java.
References com.runehive.game.world.items.containers.ItemContainer.add(), com.runehive.game.world.items.ground.GroundItem.create(), com.runehive.game.world.items.ItemDefinition.get(), com.runehive.game.world.items.containers.ItemContainer.getFreeSlots(), com.runehive.game.world.items.ItemDefinition.getName(), com.runehive.game.world.entity.mob.player.Player.inventory, and com.runehive.game.world.entity.mob.player.Player.message().
Referenced by rollChest().
|
static |
Handles giving the player correct inventory and equipment.
| player | |
| clear |
Definition at line 358 of file LMSGame.java.
References com.runehive.game.world.entity.mob.UpdateFlag.APPEARANCE, com.runehive.content.skill.impl.magic.RunePouch.clear(), com.runehive.game.world.items.containers.equipment.Equipment.clear(), com.runehive.game.world.items.containers.ItemContainer.clear(), com.runehive.game.world.items.Item.clone(), currentGameType, com.runehive.game.world.entity.mob.player.Player.equipment, com.runehive.game.world.entity.combat.weapon.WeaponInterface.execute(), com.runehive.content.lms.loadouts.LMSLoadout.getEquipmentSetup(), com.runehive.content.skill.impl.magic.Spellbook.getInterfaceId(), com.runehive.content.lms.loadouts.LMSLoadout.getInventorySetup(), com.runehive.game.world.items.containers.ItemContainer.getItems(), com.runehive.content.lms.loadouts.LMSLoadout.getRunePouchRunes(), com.runehive.content.lms.loadouts.LMSLoadout.getSpellbook(), com.runehive.game.world.items.containers.equipment.Equipment.getWeapon(), com.runehive.game.world.entity.mob.player.Player.interfaceManager, com.runehive.game.world.entity.mob.player.Player.inventory, com.runehive.Config.MAGIC_TAB, com.runehive.content.skill.impl.magic.RunePouch.refresh(), com.runehive.game.world.items.containers.equipment.Equipment.refresh(), com.runehive.game.world.items.containers.inventory.Inventory.refresh(), com.runehive.game.world.entity.mob.player.Player.runePouch, com.runehive.content.skill.impl.magic.RunePouch.runes, com.runehive.game.world.items.containers.ItemContainer.set(), com.runehive.game.world.entity.mob.player.InterfaceManager.setSidebar(), com.runehive.game.world.entity.mob.player.Player.spellbook, com.runehive.game.world.items.containers.equipment.Equipment.updateAnimation(), com.runehive.game.world.entity.mob.Mob.updateFlags, and com.runehive.game.world.items.containers.equipment.Equipment.updateRangedEquipment().
Referenced by gearUpPlayers().
|
static |
Handles the fog closing in on the save zone.
Definition at line 539 of file LMSGame.java.
References currentFog, lastFogCycle, and safeZone.
Referenced by com.runehive.content.lms.LMSGameEvent.execute().
|
staticprivate |
Handles the fog damage for a player.
| player |
Definition at line 510 of file LMSGame.java.
References currentFog, com.runehive.game.world.entity.mob.Mob.damage(), gameTicks, com.runehive.game.world.position.Position.getDistances(), com.runehive.game.world.entity.Entity.getPosition(), com.runehive.game.world.position.Boundary.isIn(), com.runehive.game.world.entity.mob.player.Player.lastFogSent, com.runehive.game.world.entity.combat.hit.HitIcon.NONE, com.runehive.game.world.entity.combat.hit.Hitsplat.NORMAL, safeZone, and com.runehive.game.world.entity.mob.player.Player.send().
Referenced by processPlayer().
|
static |
Handles checking if the player is in the LMS game area.
| player |
Definition at line 142 of file LMSGame.java.
References com.runehive.game.world.position.Boundary.isIn().
Referenced by com.runehive.game.world.entity.skill.SkillManager.addExperience(), canAttack(), com.runehive.game.world.entity.combat.CombatUtil.canAttack(), com.runehive.game.world.entity.mob.player.PlayerDeath.death(), isActivePlayer(), com.runehive.game.world.entity.mob.player.Player.onStep(), and com.runehive.content.combat.Skulling.skull().
|
static |
Checks if a player is a active player within the LMS game.
| player |
Definition at line 151 of file LMSGame.java.
References gamePlayers, and inGameArea().
Referenced by com.runehive.content.lms.lobby.LMSLobby.joinLobby(), com.runehive.game.world.entity.mob.player.PlayerDeath.postDeath(), processPlayer(), com.runehive.content.skill.impl.magic.teleport.Teleportation.teleport(), and com.runehive.game.world.entity.mob.player.Player.unregister().
|
static |
Handles moving all the players to the game.
| players |
Definition at line 280 of file LMSGame.java.
References canAttack, currentGameType, com.runehive.content.lms.lobby.LMSLobby.currentGameType, gameInProgress, gamePlayers, com.runehive.content.lms.loadouts.LMSLoadoutManager.getLmsLoadouts(), com.runehive.util.Utility.random(), and start().
Referenced by com.runehive.content.lms.lobby.LMSLobbyEvent.execute().
|
static |
Handles when a player within the LMS game dies.
| player | |
| forceRemove |
Definition at line 634 of file LMSGame.java.
References com.runehive.game.world.items.ground.GroundItem.create(), com.runehive.game.world.items.ground.GroundItem.createGlobal(), com.runehive.content.lms.lobby.LMSLobbyEvent.defaultLobbyTime, gameInProgress, gamePlayers, com.runehive.game.world.entity.mob.player.Player.getCombat(), getItemAmountForItem(), getPointsForPlacement(), lmsCrate, com.runehive.game.world.entity.mob.player.Player.lmsPoints, com.runehive.game.world.entity.mob.player.Player.lmsTotalDeaths, com.runehive.game.world.entity.mob.player.Player.lmsWins, com.runehive.content.lms.lobby.LMSLobbyEvent.lobbyTicks, com.runehive.game.world.entity.mob.player.Player.message(), reset(), storedObjects, and com.runehive.game.world.entity.mob.player.Player.unlockedLMSItems.
Referenced by com.runehive.game.world.entity.mob.player.PlayerDeath.postDeath(), and com.runehive.game.world.entity.mob.player.Player.unregister().
|
static |
Handles the killers stuff.
| killer |
Definition at line 572 of file LMSGame.java.
References com.runehive.game.world.items.containers.ItemContainer.add(), com.runehive.game.world.items.ground.GroundItem.create(), com.runehive.game.world.entity.skill.SkillManager.get(), com.runehive.game.world.items.containers.ItemContainer.get(), com.runehive.game.world.items.ItemDefinition.get(), com.runehive.game.world.items.containers.ItemContainer.getFreeSlots(), com.runehive.game.world.items.Item.getId(), com.runehive.game.world.items.containers.ItemContainer.getItems(), getKeyId(), com.runehive.game.world.entity.skill.Skill.HITPOINTS, com.runehive.game.world.entity.mob.player.Player.inventory, com.runehive.game.world.entity.mob.player.Player.lmsKills, com.runehive.game.world.entity.mob.player.Player.lmsTotalKills, com.runehive.game.world.entity.skill.Skill.modifyLevel(), com.runehive.game.world.items.containers.ItemContainer.remove(), com.runehive.game.world.entity.combat.strategy.player.special.CombatSpecial.restore(), resupplyKiller(), com.runehive.game.world.entity.mob.Mob.skills, and updateInterface().
Referenced by com.runehive.game.world.entity.mob.player.PlayerDeath.death().
|
static |
Handles processing the player if hes a active player within the LMS game.
| player |
Definition at line 498 of file LMSGame.java.
References handleFogDamage(), and isActivePlayer().
Referenced by com.runehive.content.lms.LMSGameEvent.execute().
|
static |
Handles resetting the player that was in the game and either left by dying or other means.
| player |
Definition at line 398 of file LMSGame.java.
References com.runehive.game.world.entity.mob.Mob.animate(), com.runehive.game.world.entity.mob.player.PlayerOption.ATTACK, com.runehive.content.skill.impl.magic.RunePouch.clear(), com.runehive.game.world.items.containers.equipment.Equipment.clear(), com.runehive.game.world.items.containers.ItemContainer.clear(), com.runehive.game.world.items.Item.clone(), com.runehive.game.world.entity.mob.player.Player.equipment, com.runehive.game.world.entity.mob.player.Player.equipment_copy, com.runehive.game.world.entity.combat.weapon.WeaponInterface.execute(), com.runehive.game.world.entity.mob.Mob.face(), com.runehive.content.lms.lobby.LMSLobby.finish, gamePlayers, com.runehive.content.skill.impl.magic.Spellbook.getInterfaceId(), com.runehive.game.world.items.containers.ItemContainer.getItems(), com.runehive.game.world.items.containers.equipment.Equipment.getWeapon(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), com.runehive.game.world.entity.mob.Mob.graphic, com.runehive.game.world.entity.mob.player.Player.interfaceManager, com.runehive.game.world.entity.mob.player.Player.inventory, com.runehive.game.world.entity.mob.player.Player.inventory_copy, com.runehive.Config.MAGIC_TAB, com.runehive.game.world.entity.mob.Mob.move(), com.runehive.game.world.entity.mob.Mob.prayer, com.runehive.util.Utility.random(), com.runehive.content.skill.impl.magic.RunePouch.refresh(), com.runehive.game.world.items.containers.equipment.Equipment.refresh(), com.runehive.game.world.items.containers.inventory.Inventory.refresh(), com.runehive.game.Animation.RESET, com.runehive.game.Graphic.RESET, com.runehive.game.world.entity.mob.prayer.PrayerBook.reset(), resetLevels(), com.runehive.game.world.entity.mob.player.Player.runePouch, com.runehive.game.world.entity.mob.player.Player.runePouch_copy, com.runehive.content.skill.impl.magic.RunePouch.runes, com.runehive.game.world.entity.mob.player.persist.PlayerSerializer.save(), com.runehive.game.world.entity.mob.player.Player.send(), com.runehive.game.world.items.containers.ItemContainer.set(), com.runehive.game.world.entity.mob.player.InterfaceManager.setSidebar(), com.runehive.game.world.entity.mob.Direction.SOUTH, com.runehive.game.world.entity.mob.player.Player.spellbook, com.runehive.game.world.entity.mob.player.Player.spellbook_copy, com.runehive.game.world.items.containers.equipment.Equipment.updateAnimation(), and updateInterface().
Referenced by onDeath().
|
staticprivate |
Handles resetting the copied stats to the player.
| player |
Definition at line 448 of file LMSGame.java.
References com.runehive.game.world.entity.skill.SkillManager.get(), com.runehive.game.world.entity.skill.Skill.getLevel(), com.runehive.game.world.entity.skill.Skill.getMaxLevel(), com.runehive.game.world.entity.skill.SkillManager.getSkills(), com.runehive.game.world.entity.skill.SkillManager.refresh(), com.runehive.game.world.entity.mob.Mob.skills, and com.runehive.game.world.entity.mob.Mob.skills_copy.
Referenced by reset().
|
static |
Handles resupplying the killer.
| player |
Definition at line 613 of file LMSGame.java.
References com.runehive.game.world.items.containers.ItemContainer.add(), currentGameType, com.runehive.game.world.items.ItemDefinition.get(), com.runehive.game.world.items.containers.ItemContainer.getFreeSlots(), com.runehive.content.lms.loadouts.LMSLoadout.getInventory(), com.runehive.game.world.entity.mob.player.Player.inventory, and com.runehive.game.world.items.containers.inventory.Inventory.refresh().
Referenced by onKill().
|
static |
Handles rolling the loot chest.
| player | |
| keyId | |
| lootCrate |
Definition at line 192 of file LMSGame.java.
References com.runehive.game.world.entity.mob.Mob.animate(), com.runehive.game.world.items.containers.ItemContainer.contains(), currentGameType, com.runehive.content.lms.loadouts.LMSLoadout.getDefensiveItem(), getItemAmountForItem(), com.runehive.content.lms.loadouts.LMSLoadout.getOffensiveItem(), com.runehive.content.lms.loadouts.LMSLoadout.getOffensiveItemUpgrades(), giveChestItems(), com.runehive.game.world.entity.mob.player.Player.inventory, lmsCrate, com.runehive.util.Utility.random(), com.runehive.game.world.items.containers.ItemContainer.remove(), rollChest(), com.runehive.game.world.World.sendObjectAnimation(), and com.runehive.game.world.entity.mob.player.Player.unlockedLMSItems.
Referenced by rollChest().
|
static |
Handles setting the correct stats of the player It also makes a copy of the player his stats.
| player |
Definition at line 340 of file LMSGame.java.
References currentGameType, com.runehive.game.world.entity.skill.SkillManager.get(), com.runehive.game.world.entity.skill.SkillManager.refresh(), and com.runehive.game.world.entity.mob.Mob.skills.
Referenced by gearUpPlayers().
|
static |
Handles setting up the safezone.
Definition at line 464 of file LMSGame.java.
References com.runehive.util.StringUtils.capitalize(), currentFog, gamePlayers, com.runehive.util.Utility.random(), com.runehive.game.world.object.CustomGameObject.register(), safeZone, storedObjects, and updateInterface().
Referenced by com.runehive.content.lms.LMSGameEvent.execute().
|
staticprivate |
Handles starting the lms game.
Definition at line 298 of file LMSGame.java.
References crateTicks, currentFog, gameTicks, gearUpPlayers(), safeZone, and startingTicks.
Referenced by moveToGame().
|
static |
Handles updating the player's there interface.
Definition at line 560 of file LMSGame.java.
References currentFog, gamePlayers, and com.runehive.content.lms.lobby.LMSLobby.maxPlayers.
Referenced by com.runehive.content.lms.LMSGameEvent.execute(), onKill(), reset(), and setupSafezone().
|
static |
Checks if the players are allowed to attack within the game.
Definition at line 53 of file LMSGame.java.
Referenced by canAttack(), com.runehive.game.world.entity.combat.CombatUtil.canAttack(), com.runehive.content.lms.LMSGameEvent.execute(), and moveToGame().
|
static |
The current amount of crate ticks within the lms game.
Definition at line 75 of file LMSGame.java.
Referenced by com.runehive.content.lms.LMSGameEvent.execute(), and start().
The current fod within the LMS game.
Definition at line 58 of file LMSGame.java.
Referenced by handleFog(), handleFogDamage(), setupSafezone(), start(), and updateInterface().
|
staticprivate |
The current loadout of the game.
Definition at line 95 of file LMSGame.java.
Referenced by getGameTypeName(), giveItems(), moveToGame(), resupplyKiller(), rollChest(), and setLevels().
|
static |
Checks if there is currently a game in progress.
Definition at line 48 of file LMSGame.java.
Referenced by com.runehive.content.lms.LMSGameEvent.execute(), com.runehive.content.lms.lobby.LMSLobbyEvent.execute(), com.runehive.content.lms.lobby.LMSLobby.joinLobby(), moveToGame(), and onDeath().
|
static |
All the players within the LMS game.
Definition at line 43 of file LMSGame.java.
Referenced by com.runehive.content.lms.LMSGameEvent.execute(), gearUpPlayers(), getKeyId(), isActivePlayer(), moveToGame(), onDeath(), reset(), setupSafezone(), com.runehive.content.lms.crate.LMSCrate.spawn(), and updateInterface().
|
static |
The current amount of game ticks within the lms game.
Definition at line 65 of file LMSGame.java.
Referenced by com.runehive.content.lms.LMSGameEvent.execute(), handleFogDamage(), and start().
|
staticprivate |
Definition at line 60 of file LMSGame.java.
Referenced by handleFog().
|
static |
The lms crate within the game.
Definition at line 80 of file LMSGame.java.
Referenced by com.runehive.content.lms.LMSGameEvent.execute(), onDeath(), and rollChest().
|
staticprivate |
All the possible spawns of the lms game.
Definition at line 104 of file LMSGame.java.
Referenced by gearUpPlayers().
|
staticprivate |
The current safe zone within the game.
Definition at line 85 of file LMSGame.java.
Referenced by handleFog(), handleFogDamage(), setupSafezone(), and start().
|
static |
The amount of ticks before the real game starts.
Definition at line 70 of file LMSGame.java.
Referenced by com.runehive.content.lms.LMSGameEvent.execute(), and start().
|
staticprivate |
The safezone objects within the lms game.
Definition at line 90 of file LMSGame.java.
Referenced by onDeath(), and setupSafezone().