|
RuneHive-Game
|
Represents all of an in-game Item's attributes. More...
Public Member Functions | |
| String | getDestroyMessage () |
| Gets the item destroy message. | |
| int | getId () |
| Gets the item id. | |
| String | getName () |
| Gets the item name. | |
| boolean | isNoted () |
| Gets the item note state. | |
| ItemDefinition (int id, String name) | |
Static Public Member Functions | |
| static ItemDefinition[] | create (String path) |
| static GsonParser | createParser () |
| static void | dump (ItemDefinition[] definitions, String path) |
| static void | dump (String path) |
| static ItemDefinition[] | fromClientDump (String path) |
| static ItemDefinition | get (int id) |
| Gets an item definition. | |
| static void | merge (String clientDumpFilePath, String wikiDumpPath, String dumpPath) |
Static Public Attributes | |
| static final ItemDefinition | DEFAULT = new ItemDefinition(1, "null") |
| static ItemDefinition[] | DEFINITIONS |
| An array of item definitions. | |
Private Attributes | |
| int | attack_anim |
| Map< FightType, Integer > | attack_animations |
| int | base_value |
| int | block_animation |
| int[] | bonuses |
| boolean | destroyable |
| String | destroyMessage |
| EquipmentType | equipmentType |
| int | highAlch |
| final int | id |
| int | lowAlch |
| final String | name |
| int | notedId |
| RangedWeaponDefinition | rangedDefinition |
| int[] | requirements |
| int | run_animation |
| boolean | stackable |
| int | stand_animation |
| int | street_value |
| boolean | tradeable |
| boolean | twoHanded |
| int | unnotedId |
| int | walk_animation |
| WeaponInterface | weaponInterface |
| double | weight |
Static Private Attributes | |
| static final Map< FightType, Integer > | EMPTY = new HashMap<>() |
Represents all of an in-game Item's attributes.
Definition at line 28 of file ItemDefinition.java.
| com.runehive.game.world.items.ItemDefinition.ItemDefinition | ( | int | id, |
| String | name ) |
Definition at line 63 of file ItemDefinition.java.
References EMPTY, id, name, com.runehive.game.world.items.containers.equipment.EquipmentType.NOT_WIELDABLE, com.runehive.game.world.entity.mob.MobAnimation.PLAYER_RUN, com.runehive.game.world.entity.mob.MobAnimation.PLAYER_STAND, and com.runehive.game.world.entity.mob.MobAnimation.PLAYER_WALK.
Referenced by create(), createParser(), dump(), dump(), fromClientDump(), get(), and merge().
|
static |
Definition at line 226 of file ItemDefinition.java.
References attack_animations, block_animation, bonuses, createParser(), DEFINITIONS, equipmentType, id, com.runehive.Config.ITEM_DEFINITION_LIMIT, ItemDefinition(), name, com.runehive.game.world.items.containers.equipment.EquipmentType.NOT_WIELDABLE, rangedDefinition, requirements, com.runehive.util.parser.GenericParser.run(), run_animation, stand_animation, street_value, walk_animation, and weaponInterface.
Referenced by com.runehive.util.parser.old.EquipmentDefinitionParser.main().
|
static |
Definition at line 90 of file ItemDefinition.java.
References attack_animations, bonuses, DEFINITIONS, id, com.runehive.Config.ITEM_DEFINITION_LIMIT, ItemDefinition(), name, and requirements.
Referenced by create(), com.runehive.util.tools.wiki.impl.BonusParser.finish(), com.runehive.util.tools.wiki.impl.NpcDropsParser.generateTables(), com.runehive.util.parser.old.EquipmentDefinitionParser.initialize(), com.runehive.game.world.entity.mob.npc.drop.NpcDropTable.main(), com.runehive.util.tools.ItemDBdefUpdate.main(), and com.runehive.RuneHive.processSequentialStartupTasks().
|
static |
Definition at line 432 of file ItemDefinition.java.
References com.runehive.util.parser.JsonSaver.current(), EMPTY, ItemDefinition(), com.runehive.game.world.items.containers.equipment.EquipmentType.NOT_WIELDABLE, com.runehive.game.world.entity.mob.MobAnimation.PLAYER_RUN, com.runehive.game.world.entity.mob.MobAnimation.PLAYER_STAND, com.runehive.game.world.entity.mob.MobAnimation.PLAYER_WALK, com.runehive.util.parser.JsonSaver.publish(), com.runehive.util.parser.JsonSaver.serializer, com.runehive.util.parser.JsonSaver.split(), and com.runehive.game.world.entity.combat.weapon.WeaponInterface.UNARMED.
Referenced by com.runehive.util.tools.wiki.impl.BonusParser.finish(), com.runehive.util.parser.old.EquipmentDefinitionParser.main(), merge(), and com.runehive.util.parser.old.EquipmentDefinitionParser.onEnd().
|
static |
Definition at line 537 of file ItemDefinition.java.
References com.runehive.util.parser.JsonSaver.current(), DEFINITIONS, EMPTY, ItemDefinition(), com.runehive.game.world.items.containers.equipment.EquipmentType.NOT_WIELDABLE, com.runehive.game.world.entity.mob.MobAnimation.PLAYER_RUN, com.runehive.game.world.entity.mob.MobAnimation.PLAYER_STAND, com.runehive.game.world.entity.mob.MobAnimation.PLAYER_WALK, com.runehive.util.parser.JsonSaver.publish(), com.runehive.util.parser.JsonSaver.serializer, com.runehive.util.parser.JsonSaver.split(), and com.runehive.game.world.entity.combat.weapon.WeaponInterface.UNARMED.
|
static |
Definition at line 327 of file ItemDefinition.java.
References base_value, id, com.runehive.Config.ITEM_DEFINITION_LIMIT, ItemDefinition(), and name.
Referenced by merge().
|
static |
Gets an item definition.
| id | The definition's item id. |
Definition at line 649 of file ItemDefinition.java.
References DEFAULT, DEFINITIONS, id, and ItemDefinition().
Referenced by com.runehive.content.tradingpost.TradingPost.addToItemHistory(), com.runehive.content.RoyaltyProgram.append(), com.runehive.content.skill.impl.crafting.impl.Glass.blow(), com.runehive.content.tradingpost.TradingPost.buyingDialogueOptions(), com.runehive.content.skill.impl.DestructionSkillAction.canRun(), com.runehive.content.skill.impl.hunter.net.Netting.canSchedule(), com.runehive.content.bags.ItemBag.check(), com.runehive.content.skill.impl.woodcutting.WoodcuttingAction.chop(), com.runehive.content.skill.impl.crafting.impl.Jewellery.click(), com.runehive.content.skill.impl.cooking.Cooking.cook(), com.runehive.content.skill.impl.crafting.impl.Glass.craft(), com.runehive.content.gambling.GambleManager.deposit(), com.runehive.content.skill.impl.magic.spell.SpellCasting.enchant(), com.runehive.content.skill.impl.fishing.FishingAction.fish(), com.runehive.game.world.items.Item.getDefinition(), com.runehive.content.tradingpost.TradingPost.getItemArrayFromActiveListings(), com.runehive.content.tradingpost.TradingPost.getItemArrayFromItemHistory(), com.runehive.content.tradingpost.TradingPost.getSearchResults(), com.runehive.content.lms.LMSGame.giveChestItems(), com.runehive.content.tradingpost.TradingPost.handleBuyingButton(), com.runehive.net.packet.in.DropItemPacketListener.handlePacket(), com.runehive.content.skill.impl.fishing.Fishing.hasFishingItems(), com.runehive.content.activity.impl.duelarena.DuelRule.inventorySlotsRequired(), com.runehive.content.bags.impl.CoalBag.isAllowed(), com.runehive.content.bags.impl.GemBag.isAllowed(), com.runehive.content.itemaction.impl.CrawsBow.itemOnItem(), com.runehive.content.itemaction.impl.ThammaronsSceptre.itemOnItem(), com.runehive.content.itemaction.impl.ViggorasChainmace.itemOnItem(), com.runehive.content.collectionlog.CollectionLog.logItem(), com.runehive.util.tools.ItemDBdefUpdate.main(), com.runehive.content.lms.LMSGame.onKill(), com.runehive.util.parser.impl.NpcDropParser.parse(), com.runehive.util.parser.old.EquipmentDefinitionParser.parse(), com.runehive.content.tradingpost.TradingPost.purchase(), com.runehive.content.clanchannel.content.ClanShowcase.remove(), com.runehive.content.lms.LMSGame.resupplyKiller(), com.runehive.content.skill.impl.prayer.BoneSacrifice.sacrifice(), com.runehive.content.DropDisplay.search(), com.runehive.content.dialogue.ChatBoxItemDialogue.sendInterface(), com.runehive.content.tradingpost.TradingPost.sendItemHistoryData(), com.runehive.content.skill.impl.crafting.impl.Stringing.string(), com.runehive.content.skill.impl.crafting.impl.Tanning.tan(), com.runehive.content.store.currency.impl.ItemCurrency.toString(), com.runehive.content.tradingpost.TradingPost.updateBuyingPageWidgets(), and com.runehive.game.world.items.containers.bank.Bank.withdraw().
| String com.runehive.game.world.items.ItemDefinition.getDestroyMessage | ( | ) |
Gets the item destroy message.
Definition at line 685 of file ItemDefinition.java.
References destroyMessage.
Referenced by com.runehive.game.world.items.Item.getDestroyMessage().
| int com.runehive.game.world.items.ItemDefinition.getId | ( | ) |
Gets the item id.
Definition at line 667 of file ItemDefinition.java.
References id.
Referenced by com.runehive.util.tools.wiki.impl.NpcDropsParser.generateTables(), com.runehive.util.tools.ItemDBdefUpdate.main(), com.runehive.game.world.items.containers.pricechecker.PriceChecker.search(), and com.runehive.game.world.items.containers.pricechecker.PriceChecker.searchItem().
| String com.runehive.game.world.items.ItemDefinition.getName | ( | ) |
Gets the item name.
Definition at line 676 of file ItemDefinition.java.
References name.
Referenced by com.runehive.content.tradingpost.TradingPost.addToItemHistory(), com.runehive.content.RoyaltyProgram.append(), com.runehive.content.skill.impl.crafting.impl.Glass.blow(), com.runehive.content.tradingpost.TradingPost.buyingDialogueOptions(), com.runehive.content.skill.impl.DestructionSkillAction.canRun(), com.runehive.content.skill.impl.hunter.net.Netting.canSchedule(), com.runehive.content.bags.ItemBag.check(), com.runehive.content.skill.impl.woodcutting.WoodcuttingAction.chop(), com.runehive.content.skill.impl.crafting.impl.Jewellery.click(), com.runehive.content.skill.impl.cooking.Cooking.cook(), com.runehive.content.skill.impl.crafting.impl.Glass.craft(), com.runehive.content.skill.impl.magic.spell.SpellCasting.enchant(), com.runehive.util.tools.wiki.impl.BonusParser.finish(), com.runehive.content.skill.impl.fishing.FishingAction.fish(), com.runehive.util.tools.wiki.impl.NpcDropsParser.generateTables(), com.runehive.game.world.items.Item.getName(), com.runehive.content.tradingpost.TradingPost.getSearchResults(), com.runehive.content.lms.LMSGame.giveChestItems(), com.runehive.content.tradingpost.TradingPost.handleBuyingButton(), com.runehive.content.skill.impl.fishing.Fishing.hasFishingItems(), com.runehive.content.bags.impl.CoalBag.isAllowed(), com.runehive.content.bags.impl.GemBag.isAllowed(), com.runehive.content.itemaction.impl.CrawsBow.itemOnItem(), com.runehive.content.itemaction.impl.ThammaronsSceptre.itemOnItem(), com.runehive.content.itemaction.impl.ViggorasChainmace.itemOnItem(), com.runehive.content.collectionlog.CollectionLog.logItem(), com.runehive.util.tools.ItemDBdefUpdate.main(), com.runehive.util.parser.old.EquipmentDefinitionParser.parse(), com.runehive.content.tradingpost.TradingPost.purchase(), com.runehive.content.clanchannel.content.ClanShowcase.remove(), com.runehive.content.skill.impl.prayer.BoneSacrifice.sacrifice(), com.runehive.content.DropDisplay.search(), com.runehive.game.world.items.containers.pricechecker.PriceChecker.search(), com.runehive.game.world.items.containers.pricechecker.PriceChecker.searchItem(), com.runehive.content.tradingpost.TradingPost.selectItemToList(), com.runehive.content.dialogue.ChatBoxItemDialogue.sendInterface(), com.runehive.content.tradingpost.TradingPost.sendItemHistoryData(), com.runehive.content.skill.impl.crafting.impl.Stringing.string(), com.runehive.content.skill.impl.crafting.impl.Tanning.tan(), com.runehive.content.store.currency.impl.ItemCurrency.toString(), and com.runehive.content.tradingpost.TradingPost.updateBuyingPageWidgets().
| boolean com.runehive.game.world.items.ItemDefinition.isNoted | ( | ) |
Gets the item note state.
True if the item is noted; Definition at line 694 of file ItemDefinition.java.
Referenced by com.runehive.content.tradingpost.TradingPost.getItemArrayFromActiveListings(), com.runehive.content.tradingpost.TradingPost.getItemArrayFromItemHistory(), com.runehive.game.world.items.Item.isNoted(), and com.runehive.game.world.items.containers.pricechecker.PriceChecker.searchItem().
|
static |
Definition at line 364 of file ItemDefinition.java.
References DEFINITIONS, dump(), fromClientDump(), ItemDefinition(), and name.
|
private |
Definition at line 45 of file ItemDefinition.java.
|
private |
Definition at line 48 of file ItemDefinition.java.
Referenced by create(), and createParser().
|
private |
Definition at line 53 of file ItemDefinition.java.
Referenced by fromClientDump().
|
private |
Definition at line 49 of file ItemDefinition.java.
Referenced by create().
|
private |
Definition at line 61 of file ItemDefinition.java.
Referenced by create(), and createParser().
|
static |
Definition at line 35 of file ItemDefinition.java.
Referenced by get().
|
static |
An array of item definitions.
Definition at line 33 of file ItemDefinition.java.
Referenced by create(), createParser(), dump(), com.runehive.util.tools.wiki.impl.BonusParser.finish(), com.runehive.util.tools.wiki.impl.NpcDropsParser.generateTables(), get(), com.runehive.util.tools.ItemDBdefUpdate.main(), merge(), com.runehive.util.parser.old.ItemDefinitionParser.parse(), com.runehive.game.world.items.containers.pricechecker.PriceChecker.search(), com.runehive.game.world.items.containers.pricechecker.PriceChecker.searchItem(), and com.runehive.content.tradingpost.TradingPost.testData().
|
private |
Definition at line 40 of file ItemDefinition.java.
|
private |
Definition at line 39 of file ItemDefinition.java.
Referenced by getDestroyMessage().
|
staticprivate |
Definition at line 34 of file ItemDefinition.java.
Referenced by dump(), dump(), and ItemDefinition().
|
private |
Definition at line 57 of file ItemDefinition.java.
Referenced by create().
|
private |
Definition at line 54 of file ItemDefinition.java.
|
private |
Definition at line 37 of file ItemDefinition.java.
Referenced by create(), createParser(), fromClientDump(), get(), getId(), isNoted(), and ItemDefinition().
|
private |
Definition at line 55 of file ItemDefinition.java.
|
private |
Definition at line 38 of file ItemDefinition.java.
Referenced by create(), createParser(), fromClientDump(), getName(), ItemDefinition(), and merge().
|
private |
Definition at line 51 of file ItemDefinition.java.
|
private |
Definition at line 59 of file ItemDefinition.java.
Referenced by create().
|
private |
Definition at line 60 of file ItemDefinition.java.
Referenced by create(), and createParser().
|
private |
Definition at line 47 of file ItemDefinition.java.
Referenced by create().
|
private |
Definition at line 41 of file ItemDefinition.java.
|
private |
Definition at line 44 of file ItemDefinition.java.
Referenced by create().
|
private |
Definition at line 52 of file ItemDefinition.java.
Referenced by create().
|
private |
Definition at line 43 of file ItemDefinition.java.
|
private |
Definition at line 42 of file ItemDefinition.java.
|
private |
Definition at line 50 of file ItemDefinition.java.
Referenced by isNoted().
|
private |
Definition at line 46 of file ItemDefinition.java.
Referenced by create().
|
private |
Definition at line 58 of file ItemDefinition.java.
Referenced by create().
|
private |
Definition at line 56 of file ItemDefinition.java.