Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.33 KB | None | 0 0
  1. package com.ar.game.item;
  2.  
  3. import com.wc.world.model.entity.player.container.impl.Equipment.EquipmentType;
  4.  
  5. public class ItemDefinition {
  6.  
  7.     /** The array that contains all of the item definitions. */
  8.     public static final ItemDefinition[] DEFINITIONS = new ItemDefinition[22322];
  9.  
  10.     /** The item's id. */
  11.     private final int id;
  12.     /** The item's name. */
  13.     private String name;
  14.     /** The item's description. */
  15.     private String description;
  16.     /** Is the item untradeable(impossible to trade). */
  17.     private boolean untradeable;
  18.     /** Is the item stackable(such as arrows). */
  19.     private boolean stackable;
  20.     /** Is the item a weapon. */
  21.     private boolean weapon;
  22.     /** Is the item two handed when wield. */
  23.     private boolean isTwoHanded;
  24.     /** Is the item noted. */
  25.     private boolean noted;
  26.     /** Is the item lended. */
  27.     private boolean lended;
  28.     /** The note transformation id. */
  29.     private int noteId;
  30.     /** The lend transformation id. */
  31.     private int lendId;
  32.     /** The Weight of the item. */
  33.     private double weight;
  34.     /** The value of the item(shop). */
  35.     private int value;
  36.     /** The item's low alchemy value. */
  37.     private int lowAlchemy;
  38.     /** The item's high alchemy value. */
  39.     private int highAlchemy;
  40.     /** The item's equipment type(slot). */
  41.     private EquipmentType equipmentType;
  42.     /** Item's inventory actions. */
  43.     private String[] inventoryActions;
  44.     /** Item's ground actions. */
  45.     private String[] groundActions;
  46.     /** Item's wield bonuses. */
  47.     private double[] bonus = new double[18];
  48.  
  49.     /**
  50.      * Creates the definition.
  51.      * @param id               id of the item
  52.      * @param name             name of the item
  53.      * @param description      description of the item
  54.      * @param untradeable      untradeable flag
  55.      * @param stackable        stackable flag
  56.      * @param weapon           weapon flag
  57.      * @param isTwoHanded      two handed flag
  58.      * @param noted            noted flag
  59.      * @param lended           lended flag
  60.      * @param noteId           note id
  61.      * @param lendId           lend id
  62.      * @param weight           weight of the item
  63.      * @param value            value of the item
  64.      * @param lowAlchemy       low alchemy value
  65.      * @param highAlchemy      high alchemy value
  66.      * @param equipmentType    equipment type of the item
  67.      * @param inventoryActions inventory item actions
  68.      * @param groundActions    ground item actions
  69.      * @param bonus            item bonuses
  70.      */
  71.     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) {
  72.         this.id = id;
  73.         this.name = name;
  74.         this.description = description;
  75.         this.untradeable = untradeable;
  76.         this.stackable = stackable;
  77.         this.weapon = weapon;
  78.         this.isTwoHanded = isTwoHanded;
  79.         this.noted = noted;
  80.         this.lended = lended;
  81.         this.noteId = noteId;
  82.         this.lendId = lendId;
  83.         this.weight = weight;
  84.         this.value = value;
  85.         this.lowAlchemy = lowAlchemy;
  86.         this.highAlchemy = highAlchemy;
  87.         this.equipmentType = equipmentType;
  88.         this.inventoryActions = inventoryActions;
  89.         this.groundActions = groundActions;
  90.         this.bonus = bonus;
  91.     }
  92.  
  93.     public int getId() {
  94.         return id;
  95.     }
  96.  
  97.     public String getName() {
  98.         return name;
  99.     }
  100.  
  101.     public String getDescription() {
  102.         return description;
  103.     }
  104.  
  105.     public boolean isUntradeable() {
  106.         return untradeable;
  107.     }
  108.  
  109.     public boolean isStackable() {
  110.         return stackable;
  111.     }
  112.  
  113.     public boolean isWeapon() {
  114.         return weapon;
  115.     }
  116.  
  117.     public boolean isTwoHanded() {
  118.         return isTwoHanded;
  119.     }
  120.  
  121.     public boolean isNoted() {
  122.         return noted;
  123.     }
  124.  
  125.     public boolean isLended() {
  126.         return lended;
  127.     }
  128.  
  129.     public int getNoteId() {
  130.         return noteId;
  131.     }
  132.  
  133.     public int getLendId() {
  134.         return lendId;
  135.     }
  136.  
  137.     public double getWeigth() {
  138.         return weight;
  139.     }
  140.  
  141.     public int getValue() {
  142.         return value;
  143.     }
  144.  
  145.     public int getLowAlchemy() {
  146.         return lowAlchemy;
  147.     }
  148.  
  149.     public int getHighAlchemy() {
  150.         return highAlchemy;
  151.     }
  152.  
  153.     public EquipmentType getEquipType() {
  154.         return equipmentType;
  155.     }
  156.  
  157.     public String[] getInventoryActions() {
  158.         return inventoryActions;
  159.     }
  160.  
  161.     public String[] getGroundActions() {
  162.         return groundActions;
  163.     }
  164.  
  165.     public double[] getBonus() {
  166.         return bonus;
  167.     }
  168.  
  169. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement