|
RuneHive-Game
|
Static Public Member Functions | |
| static void | addPoints (Player player, int amount) |
| Handles adding wintertodt points to a player. | |
| static void | chopRoot (Player player) |
| Handles chopping the root. | |
| static void | feedBrazier (Player player, GameObject gameObject) |
| Handles feeding the brazier. | |
| static void | fixBrazier (Player player, GameObject gameObject) |
| Handles fixing the brazier. | |
| static void | fletch (Player player) |
| Handles fetching the kindling. | |
| static int | getAreaAttackDamage (Player player) |
| Handles the formula on how much the area attack can do. | |
| static int | getBrazierAttackDamage (Player player) |
| How much damage the brazier does to a player when it breaks. | |
| static int | getBraziersLit () |
| How many braziers are currently lit. | |
| static int | getColdDamage (Player player) |
| The amount of damagae the player gets from cold. | |
| static int | getWarmItemsWorn (Player player) |
| How much warm clothing the player is wearing. | |
| static void | healPyromancer (Player player, Npc npc, int slot) |
| Handles healing the pyromancer. | |
| static void | init () |
| static boolean | isActive () |
| static void | lightBrazier (Player player, GameObject gameObject) |
| Handles lighting a brazier. | |
| static void | mixHerb (Player player) |
| Handles mixing the potion. | |
| static void | removeGameItems (Player player) |
| Handles removes the items within the wintertodt game. | |
| static void | send (Player player) |
| static void | shootFlame (Brazier brazier) |
| Handles spawning the flame that goes to the middle. | |
| static void | takeHerb (Player player) |
| Handles taking a bruma herb. | |
Static Public Attributes | |
| static final Brazier[] | BRAZIERS |
| Brazier data. | |
| static final int | BROKEN_BRAZIER_ID = 29313 |
| static final int | BRUMA_HERB = 20698 |
| static final int | BRUMA_KINDLING = 20696 |
| static final int | BRUMA_ROOT = 20695 |
| Item ids. | |
| static final int | BURNING_BRAZIER_ID = 29314 |
| static final int | EMPTY_BRAZIER_ID = 29312 |
| static int | health = 0 |
| static final int | INCAPACITATED_PYROMANCER = 7372 |
| static final int | MAX_HP = 3500 |
| static final int | PYROMANCER = 7371 |
| static Region | region |
| static final int | REGION_ID = 6462 |
| Region of the wintertodt game. | |
| static final int | REJUV_POT_1 = 20702 |
| static final int | REJUV_POT_2 = 20701 |
| static final int | REJUV_POT_3 = 20700 |
| static final int | REJUV_POT_4 = 20699 |
| static final int | REJUV_POT_UNF = 20697 |
Static Private Member Functions | |
| static void | applyColdDamage () |
| static void | attackPyromancers () |
| Handles attacking the pyromancers. | |
| static void | award (Player player) |
| Handles awarding players with crates. | |
| static void | breakBrazier (Brazier brazier) |
| Handles breaking the brazier. | |
| static void | dealDamage () |
| Handles dealing damage to the boss. | |
| static void | death () |
| Handles the death of the boss. | |
| static void | doMagicAttack () |
| Handles doing the magic attack by the bnoss. | |
| static void | extinguishBraziers () |
| Handles extinguishing the braziers. | |
| static void | pyromancerText () |
| Handles the pyromancer speech. | |
| static void | start () |
| static void | update () |
Static Private Attributes | |
| static final int | ACTIVE_STORM_ID = 29308 |
| static final int | DEFAULT_DELAY = 10 |
| static final int | FLAME = 7373 |
| static final List< Integer > | GAME_ITEMS = Arrays.asList(BRUMA_ROOT, BRUMA_KINDLING, BRUMA_HERB, REJUV_POT_UNF, REJUV_POT_4, REJUV_POT_3, REJUV_POT_2, REJUV_POT_1) |
| List of all minigame items. | |
| static final int | INACTIVE_STORM_ID = 29309 |
| static final String[] | PYROMANCER_DEAD_TEXT = {"My flame burns low.", "Mummy!", "I think I'm dying.", "We are doomed.", "Ugh, help me!"} |
| Npc ids. | |
| static int | pyroSpeechDelay |
| static final int | SNOW_EFFECT_ID = 26690 |
| Game object ids. | |
| static int | startDelay = DEFAULT_DELAY |
| static boolean | started = false |
| Game data. | |
| static final List< Integer > | WARM_CLOTHING |
| List of all warm clothing. | |
| static CustomGameObject | WINTERTODT |
Definition at line 31 of file Wintertodt.java.
|
static |
Handles adding wintertodt points to a player.
Definition at line 814 of file Wintertodt.java.
References com.runehive.game.world.entity.mob.player.Player.message(), send(), and com.runehive.game.world.entity.mob.player.Player.wintertodtPoints.
Referenced by com.runehive.content.wintertodt.actions.FeedBrazier.execute(), com.runehive.content.wintertodt.actions.FixBrazier.execute(), com.runehive.content.wintertodt.actions.LightBrazier.execute(), and healPyromancer().
|
staticprivate |
Definition at line 251 of file Wintertodt.java.
References getColdDamage(), com.runehive.util.Utility.random(), and region.
Referenced by init().
|
staticprivate |
Handles attacking the pyromancers.
Definition at line 411 of file Wintertodt.java.
References BRAZIERS, com.runehive.game.world.object.GameObject.getId(), com.runehive.game.world.entity.Entity.getPosition(), com.runehive.game.world.object.GameObject.getPosition(), com.runehive.content.wintertodt.Brazier.getPyromancer(), INCAPACITATED_PYROMANCER, com.runehive.content.wintertodt.Brazier.isPyromancerAlive(), com.runehive.game.world.entity.mob.npc.Npc.pyroHealth, com.runehive.game.world.entity.mob.npc.Npc.pyroSnowAttack, com.runehive.util.Utility.random(), region, com.runehive.game.world.object.GameObject.register(), com.runehive.game.world.World.schedule(), SNOW_EFFECT_ID, com.runehive.game.world.entity.mob.Mob.transform(), com.runehive.game.world.object.GameObject.unregister(), and com.runehive.game.world.entity.mob.Mob.writeFakeDamage().
Referenced by init().
|
staticprivate |
Handles awarding players with crates.
Definition at line 530 of file Wintertodt.java.
References com.runehive.game.world.items.containers.ItemContainer.add(), com.runehive.game.world.entity.skill.SkillManager.addExperience(), com.runehive.game.world.entity.skill.Skill.FIREMAKING, com.runehive.Config.FIREMAKING_MODIFICATION, com.runehive.game.world.entity.skill.SkillManager.get(), com.runehive.game.world.entity.skill.Skill.getExperience(), com.runehive.game.world.entity.skill.Skill.getLevelForExperience(), com.runehive.content.collectionlog.CollectionLog.increaseCounter(), com.runehive.game.world.entity.mob.player.Player.inventory, com.runehive.game.world.entity.mob.player.Player.message(), com.runehive.game.world.items.containers.inventory.Inventory.refresh(), removeGameItems(), com.runehive.game.world.entity.mob.Mob.skills, com.runehive.content.collectionlog.CollectionLogData.WINTERTODT, and com.runehive.game.world.entity.mob.player.Player.wintertodtPoints.
Referenced by death().
|
staticprivate |
Handles breaking the brazier.
Definition at line 288 of file Wintertodt.java.
References BROKEN_BRAZIER_ID, getBrazierAttackDamage(), com.runehive.game.world.object.GameObject.getId(), com.runehive.content.wintertodt.Brazier.getObject(), com.runehive.game.world.object.GameObject.getPosition(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), com.runehive.util.Utility.goodDistance(), isActive(), com.runehive.util.Utility.random(), region, com.runehive.game.world.object.GameObject.register(), com.runehive.game.world.World.schedule(), com.runehive.content.wintertodt.Brazier.setObject(), com.runehive.content.wintertodt.Brazier.setSnowStorm(), SNOW_EFFECT_ID, and com.runehive.game.world.object.GameObject.unregister().
Referenced by extinguishBraziers().
|
static |
Handles chopping the root.
Definition at line 595 of file Wintertodt.java.
References com.runehive.game.world.entity.mob.Mob.action, com.runehive.game.action.ActionManager.execute(), com.runehive.content.skill.impl.woodcutting.AxeData.getDefinition(), com.runehive.game.world.items.containers.ItemContainer.getFreeSlots(), com.runehive.game.world.entity.mob.player.Player.inventory, isActive(), and com.runehive.game.world.entity.mob.player.Player.message().
|
staticprivate |
Handles dealing damage to the boss.
Definition at line 474 of file Wintertodt.java.
References BRAZIERS, BURNING_BRAZIER_ID, death(), health, MAX_HP, and shootFlame().
Referenced by init().
|
staticprivate |
Handles the death of the boss.
Definition at line 506 of file Wintertodt.java.
References award(), BRAZIERS, DEFAULT_DELAY, EMPTY_BRAZIER_ID, INACTIVE_STORM_ID, PYROMANCER, region, startDelay, started, and WINTERTODT.
Referenced by dealDamage().
|
staticprivate |
Handles doing the magic attack by the bnoss.
Definition at line 345 of file Wintertodt.java.
References getAreaAttackDamage(), com.runehive.game.world.entity.Entity.getPosition(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.entity.Entity.getY(), com.runehive.game.world.position.Position.getY(), com.runehive.util.Utility.goodDistance(), com.runehive.util.Utility.random(), region, com.runehive.game.world.World.schedule(), and SNOW_EFFECT_ID.
Referenced by init().
|
staticprivate |
Handles extinguishing the braziers.
Definition at line 266 of file Wintertodt.java.
References BRAZIERS, breakBrazier(), BURNING_BRAZIER_ID, EMPTY_BRAZIER_ID, health, MAX_HP, and com.runehive.util.Utility.random().
Referenced by init().
|
static |
Handles feeding the brazier.
Definition at line 619 of file Wintertodt.java.
References com.runehive.game.world.entity.mob.Mob.action, com.runehive.game.world.entity.mob.Mob.animate(), BRAZIERS, com.runehive.game.action.ActionManager.execute(), com.runehive.game.world.object.GameObject.getId(), com.runehive.game.world.object.GameObject.getPosition(), isActive(), and com.runehive.game.world.entity.mob.player.Player.message().
|
static |
Handles fixing the brazier.
Definition at line 646 of file Wintertodt.java.
References com.runehive.game.world.entity.mob.Mob.action, com.runehive.game.world.entity.mob.Mob.animate(), BRAZIERS, com.runehive.game.world.items.containers.ItemContainer.contains(), com.runehive.game.action.ActionManager.execute(), com.runehive.game.world.object.GameObject.getId(), com.runehive.game.world.object.GameObject.getPosition(), com.runehive.game.world.entity.mob.player.Player.inventory, isActive(), com.runehive.content.wintertodt.Brazier.isPyromancerAlive(), and com.runehive.game.world.entity.mob.player.Player.message().
|
static |
Handles fetching the kindling.
Definition at line 683 of file Wintertodt.java.
References com.runehive.game.world.entity.mob.Mob.action, com.runehive.game.world.entity.mob.Mob.animate(), BRUMA_ROOT, com.runehive.game.world.items.containers.ItemContainer.computeAmountForId(), com.runehive.game.world.items.containers.ItemContainer.contains(), com.runehive.game.action.ActionManager.execute(), com.runehive.game.world.entity.mob.player.Player.inventory, isActive(), and com.runehive.game.world.entity.mob.player.Player.message().
|
static |
Handles the formula on how much the area attack can do.
Definition at line 404 of file Wintertodt.java.
References com.runehive.game.world.entity.skill.Skill.FIREMAKING, com.runehive.game.world.entity.skill.SkillManager.get(), com.runehive.game.world.entity.skill.Skill.getExperience(), com.runehive.game.world.entity.skill.Skill.getLevelForExperience(), getWarmItemsWorn(), com.runehive.game.world.entity.skill.Skill.HITPOINTS, and com.runehive.game.world.entity.mob.Mob.skills.
Referenced by doMagicAttack().
|
static |
How much damage the brazier does to a player when it breaks.
Definition at line 338 of file Wintertodt.java.
References com.runehive.game.world.entity.skill.Skill.FIREMAKING, com.runehive.game.world.entity.skill.SkillManager.get(), com.runehive.game.world.entity.skill.Skill.getExperience(), com.runehive.game.world.entity.skill.Skill.getLevelForExperience(), getWarmItemsWorn(), com.runehive.game.world.entity.skill.Skill.HITPOINTS, and com.runehive.game.world.entity.mob.Mob.skills.
Referenced by breakBrazier().
|
static |
How many braziers are currently lit.
Definition at line 584 of file Wintertodt.java.
References BRAZIERS, and BURNING_BRAZIER_ID.
Referenced by getColdDamage().
|
static |
The amount of damagae the player gets from cold.
Definition at line 565 of file Wintertodt.java.
References com.runehive.game.world.entity.skill.Skill.FIREMAKING, com.runehive.game.world.entity.skill.SkillManager.get(), getBraziersLit(), com.runehive.game.world.entity.skill.Skill.getExperience(), com.runehive.game.world.entity.skill.Skill.getLevelForExperience(), getWarmItemsWorn(), com.runehive.game.world.entity.skill.Skill.HITPOINTS, and com.runehive.game.world.entity.mob.Mob.skills.
Referenced by applyColdDamage().
|
static |
How much warm clothing the player is wearing.
Definition at line 572 of file Wintertodt.java.
References com.runehive.game.world.items.containers.equipment.Equipment.contains(), com.runehive.game.world.entity.mob.player.Player.equipment, and WARM_CLOTHING.
Referenced by getAreaAttackDamage(), getBrazierAttackDamage(), and getColdDamage().
|
static |
Handles healing the pyromancer.
Definition at line 772 of file Wintertodt.java.
References addPoints(), BRAZIERS, com.runehive.game.world.items.containers.ItemContainer.get(), com.runehive.game.world.items.containers.ItemContainer.getId(), com.runehive.game.world.items.Item.getId(), com.runehive.game.world.entity.Entity.getPosition(), com.runehive.content.wintertodt.Brazier.getPyromancer(), com.runehive.game.world.entity.mob.Mob.id, com.runehive.game.world.entity.mob.player.Player.inventory, isActive(), com.runehive.game.world.entity.mob.player.Player.message(), com.runehive.game.world.entity.mob.npc.Npc.pyroHealth, PYROMANCER, com.runehive.game.world.entity.mob.npc.Npc.pyroSnowAttack, REJUV_POT_1, REJUV_POT_2, REJUV_POT_3, REJUV_POT_4, com.runehive.game.world.items.containers.ItemContainer.set(), and com.runehive.game.world.entity.mob.Mob.transform().
|
static |
Definition at line 171 of file Wintertodt.java.
References applyColdDamage(), attackPyromancers(), BRAZIERS, dealDamage(), DEFAULT_DELAY, doMagicAttack(), extinguishBraziers(), com.runehive.game.world.region.RegionManager.getRegion(), com.runehive.game.world.World.getRegions(), INACTIVE_STORM_ID, isActive(), pyromancerText(), pyroSpeechDelay, region, com.runehive.game.world.World.schedule(), start(), startDelay, started, update(), and WINTERTODT.
Referenced by com.runehive.RuneHive.processSequentialStartupTasks().
|
static |
Definition at line 167 of file Wintertodt.java.
References startDelay.
Referenced by breakBrazier(), chopRoot(), feedBrazier(), fixBrazier(), fletch(), healPyromancer(), init(), lightBrazier(), mixHerb(), send(), and takeHerb().
|
static |
Handles lighting a brazier.
Definition at line 698 of file Wintertodt.java.
References com.runehive.game.world.entity.mob.Mob.action, com.runehive.game.world.entity.mob.Mob.animate(), BRAZIERS, com.runehive.game.world.items.containers.equipment.Equipment.contains(), com.runehive.game.world.items.containers.ItemContainer.contains(), com.runehive.game.world.entity.mob.player.Player.equipment, com.runehive.game.action.ActionManager.execute(), com.runehive.game.world.object.GameObject.getId(), com.runehive.game.world.object.GameObject.getPosition(), com.runehive.game.world.entity.mob.player.Player.inventory, isActive(), com.runehive.content.wintertodt.Brazier.isPyromancerAlive(), and com.runehive.game.world.entity.mob.player.Player.message().
|
static |
Handles mixing the potion.
Definition at line 735 of file Wintertodt.java.
References com.runehive.game.world.entity.mob.Mob.action, com.runehive.game.world.entity.mob.Mob.animate(), BRUMA_HERB, com.runehive.game.world.items.containers.ItemContainer.computeAmountForId(), com.runehive.game.action.ActionManager.execute(), com.runehive.game.world.entity.mob.player.Player.inventory, isActive(), com.runehive.game.world.entity.mob.player.Player.message(), com.runehive.util.Utility.min(), and REJUV_POT_UNF.
|
staticprivate |
Handles the pyromancer speech.
Definition at line 452 of file Wintertodt.java.
References BRAZIERS, BROKEN_BRAZIER_ID, BURNING_BRAZIER_ID, EMPTY_BRAZIER_ID, PYROMANCER_DEAD_TEXT, pyroSpeechDelay, and com.runehive.util.Utility.random().
Referenced by init().
|
static |
Handles removes the items within the wintertodt game.
Definition at line 551 of file Wintertodt.java.
References GAME_ITEMS, com.runehive.game.world.items.containers.ItemContainer.getItems(), com.runehive.game.world.entity.mob.player.Player.inventory, com.runehive.game.world.items.containers.inventory.Inventory.refresh(), and com.runehive.game.world.items.containers.ItemContainer.set().
Referenced by award().
|
static |
Definition at line 231 of file Wintertodt.java.
References BRAZIERS, com.runehive.game.world.entity.mob.player.InterfaceManager.getWalkable(), health, com.runehive.game.world.entity.mob.player.Player.interfaceManager, isActive(), MAX_HP, com.runehive.game.world.entity.mob.player.InterfaceManager.openWalkable(), com.runehive.game.world.entity.mob.player.Player.send(), startDelay, and com.runehive.game.world.entity.mob.player.Player.wintertodtPoints.
Referenced by addPoints(), and update().
|
static |
Handles spawning the flame that goes to the middle.
Definition at line 496 of file Wintertodt.java.
References com.runehive.game.world.entity.mob.Mob.action, com.runehive.content.wintertodt.Brazier.direction, com.runehive.game.action.ActionManager.execute(), FLAME, com.runehive.content.wintertodt.Brazier.getFlameOffsetX(), com.runehive.content.wintertodt.Brazier.getFlameOffsetY(), com.runehive.game.world.position.Position.getHeight(), com.runehive.content.wintertodt.Brazier.getObject(), com.runehive.game.world.object.GameObject.getPosition(), com.runehive.game.world.position.Position.getX(), com.runehive.game.world.position.Position.getY(), com.runehive.game.world.entity.mob.Mob.movement, com.runehive.game.world.entity.mob.npc.Npc.register(), and com.runehive.game.world.entity.mob.movement.Movement.simplePath().
Referenced by dealDamage().
|
staticprivate |
Definition at line 210 of file Wintertodt.java.
References ACTIVE_STORM_ID, BRAZIERS, EMPTY_BRAZIER_ID, health, MAX_HP, PYROMANCER, started, update(), and WINTERTODT.
Referenced by init().
|
static |
Handles taking a bruma herb.
Definition at line 754 of file Wintertodt.java.
References com.runehive.game.world.entity.mob.Mob.action, com.runehive.game.world.entity.mob.Mob.animate(), com.runehive.game.action.ActionManager.execute(), com.runehive.game.world.items.containers.ItemContainer.getFreeSlots(), com.runehive.game.world.entity.mob.player.Player.inventory, isActive(), and com.runehive.game.world.entity.mob.player.Player.message().
|
staticprivate |
|
staticprivate |
Definition at line 75 of file Wintertodt.java.
Referenced by start().
|
static |
Brazier data.
Definition at line 160 of file Wintertodt.java.
Referenced by attackPyromancers(), dealDamage(), death(), extinguishBraziers(), feedBrazier(), fixBrazier(), getBraziersLit(), healPyromancer(), init(), lightBrazier(), pyromancerText(), send(), and start().
|
static |
Definition at line 78 of file Wintertodt.java.
Referenced by breakBrazier(), and pyromancerText().
|
static |
Definition at line 60 of file Wintertodt.java.
Referenced by com.runehive.content.wintertodt.actions.MixHerb.execute(), com.runehive.content.wintertodt.actions.PickHerb.execute(), and mixHerb().
|
static |
Definition at line 54 of file Wintertodt.java.
Referenced by com.runehive.content.wintertodt.actions.FeedBrazier.execute(), and com.runehive.content.wintertodt.actions.FletchKindling.execute().
|
static |
Item ids.
Definition at line 53 of file Wintertodt.java.
Referenced by com.runehive.content.wintertodt.actions.ChopRoots.execute(), com.runehive.content.wintertodt.actions.FeedBrazier.execute(), com.runehive.content.wintertodt.actions.FletchKindling.execute(), and fletch().
|
static |
Definition at line 79 of file Wintertodt.java.
Referenced by dealDamage(), com.runehive.content.wintertodt.actions.FeedBrazier.execute(), com.runehive.content.wintertodt.actions.LightBrazier.execute(), extinguishBraziers(), getBraziersLit(), com.runehive.content.wintertodt.Brazier.getBrazierState(), and pyromancerText().
|
staticprivate |
Definition at line 33 of file Wintertodt.java.
|
static |
Definition at line 77 of file Wintertodt.java.
Referenced by death(), com.runehive.content.wintertodt.actions.FixBrazier.execute(), extinguishBraziers(), com.runehive.content.wintertodt.Brazier.getBrazierState(), pyromancerText(), and start().
|
staticprivate |
Definition at line 69 of file Wintertodt.java.
Referenced by shootFlame().
|
staticprivate |
List of all minigame items.
Definition at line 85 of file Wintertodt.java.
Referenced by removeGameItems().
|
static |
Definition at line 45 of file Wintertodt.java.
Referenced by dealDamage(), extinguishBraziers(), send(), and start().
|
staticprivate |
Definition at line 76 of file Wintertodt.java.
|
static |
Definition at line 68 of file Wintertodt.java.
Referenced by attackPyromancers(), com.runehive.game.world.entity.mob.Mob.getCurrentHealth(), and com.runehive.game.world.entity.mob.Mob.getMaximumHealth().
|
static |
Definition at line 44 of file Wintertodt.java.
Referenced by dealDamage(), extinguishBraziers(), send(), and start().
|
static |
Definition at line 67 of file Wintertodt.java.
Referenced by death(), com.runehive.game.world.entity.mob.Mob.getCurrentHealth(), com.runehive.game.world.entity.mob.Mob.getMaximumHealth(), healPyromancer(), com.runehive.content.wintertodt.Brazier.isPyromancerAlive(), and start().
|
staticprivate |
Npc ids.
Definition at line 65 of file Wintertodt.java.
Referenced by pyromancerText().
|
staticprivate |
Definition at line 47 of file Wintertodt.java.
Referenced by init(), and pyromancerText().
|
static |
Definition at line 48 of file Wintertodt.java.
Referenced by applyColdDamage(), attackPyromancers(), breakBrazier(), death(), doMagicAttack(), init(), and update().
|
static |
Region of the wintertodt game.
Definition at line 38 of file Wintertodt.java.
|
static |
Definition at line 59 of file Wintertodt.java.
Referenced by healPyromancer().
|
static |
Definition at line 58 of file Wintertodt.java.
Referenced by healPyromancer().
|
static |
Definition at line 57 of file Wintertodt.java.
Referenced by healPyromancer().
|
static |
Definition at line 56 of file Wintertodt.java.
Referenced by com.runehive.content.wintertodt.actions.MixHerb.execute(), and healPyromancer().
|
static |
Definition at line 55 of file Wintertodt.java.
Referenced by com.runehive.content.wintertodt.actions.MixHerb.execute(), and mixHerb().
|
staticprivate |
Game object ids.
Definition at line 74 of file Wintertodt.java.
Referenced by attackPyromancers(), breakBrazier(), and doMagicAttack().
|
staticprivate |
Definition at line 46 of file Wintertodt.java.
Referenced by death(), init(), isActive(), and send().
|
staticprivate |
Game data.
Definition at line 43 of file Wintertodt.java.
|
staticprivate |
List of all warm clothing.
Definition at line 91 of file Wintertodt.java.
Referenced by getWarmItemsWorn().
|
staticprivate |
Definition at line 80 of file Wintertodt.java.