Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.ar.game.item;
- import com.wc.world.model.entity.player.container.impl.Equipment.EquipmentType;
- public class ItemDefinition {
- /** The array that contains all of the item definitions. */
- public static final ItemDefinition[] DEFINITIONS = new ItemDefinition[22322];
- /** The item's id. */
- private final int id;
- /** The item's name. */
- private String name;
- /** The item's description. */
- private String description;
- /** Is the item untradeable(impossible to trade). */
- private boolean untradeable;
- /** Is the item stackable(such as arrows). */
- private boolean stackable;
- /** Is the item a weapon. */
- private boolean weapon;
- /** Is the item two handed when wield. */
- private boolean isTwoHanded;
- /** Is the item noted. */
- private boolean noted;
- /** Is the item lended. */
- private boolean lended;
- /** The note transformation id. */
- private int noteId;
- /** The lend transformation id. */
- private int lendId;
- /** The Weight of the item. */
- private double weight;
- /** The value of the item(shop). */
- private int value;
- /** The item's low alchemy value. */
- private int lowAlchemy;
- /** The item's high alchemy value. */
- private int highAlchemy;
- /** The item's equipment type(slot). */
- private EquipmentType equipmentType;
- /** Item's inventory actions. */
- private String[] inventoryActions;
- /** Item's ground actions. */
- private String[] groundActions;
- /** Item's wield bonuses. */
- private double[] bonus = new double[18];
- /**
- * Creates the definition.
- * @param id id of the item
- * @param name name of the item
- * @param description description of the item
- * @param untradeable untradeable flag
- * @param stackable stackable flag
- * @param weapon weapon flag
- * @param isTwoHanded two handed flag
- * @param noted noted flag
- * @param lended lended flag
- * @param noteId note id
- * @param lendId lend id
- * @param weight weight of the item
- * @param value value of the item
- * @param lowAlchemy low alchemy value
- * @param highAlchemy high alchemy value
- * @param equipmentType equipment type of the item
- * @param inventoryActions inventory item actions
- * @param groundActions ground item actions
- * @param bonus item bonuses
- */
- public ItemDefinition(int id, String name, String description, boolean untradeable, boolean stackable, boolean weapon, boolean isTwoHanded, boolean noted, boolean lended, int noteId, int lendId, double weight, int value, int lowAlchemy, int highAlchemy, EquipmentType equipmentType, String[] inventoryActions, String[] groundActions, double[] bonus) {
- this.id = id;
- this.name = name;
- this.description = description;
- this.untradeable = untradeable;
- this.stackable = stackable;
- this.weapon = weapon;
- this.isTwoHanded = isTwoHanded;
- this.noted = noted;
- this.lended = lended;
- this.noteId = noteId;
- this.lendId = lendId;
- this.weight = weight;
- this.value = value;
- this.lowAlchemy = lowAlchemy;
- this.highAlchemy = highAlchemy;
- this.equipmentType = equipmentType;
- this.inventoryActions = inventoryActions;
- this.groundActions = groundActions;
- this.bonus = bonus;
- }
- public int getId() {
- return id;
- }
- public String getName() {
- return name;
- }
- public String getDescription() {
- return description;
- }
- public boolean isUntradeable() {
- return untradeable;
- }
- public boolean isStackable() {
- return stackable;
- }
- public boolean isWeapon() {
- return weapon;
- }
- public boolean isTwoHanded() {
- return isTwoHanded;
- }
- public boolean isNoted() {
- return noted;
- }
- public boolean isLended() {
- return lended;
- }
- public int getNoteId() {
- return noteId;
- }
- public int getLendId() {
- return lendId;
- }
- public double getWeigth() {
- return weight;
- }
- public int getValue() {
- return value;
- }
- public int getLowAlchemy() {
- return lowAlchemy;
- }
- public int getHighAlchemy() {
- return highAlchemy;
- }
- public EquipmentType getEquipType() {
- return equipmentType;
- }
- public String[] getInventoryActions() {
- return inventoryActions;
- }
- public String[] getGroundActions() {
- return groundActions;
- }
- public double[] getBonus() {
- return bonus;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement