RovkirHexus

Weapon

Jun 8th, 2016
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.06 KB | None | 0 0
  1. package feAttempt;
  2.  
  3. public class Weapon {
  4.     private int weaponType; //0 is for swords and magic, 1 is for axes and bows, and 2 is for lances and daggers/knives.
  5.     private int weaponStrength; //How much damage the weapon deals before Defense and Strength.
  6.     private int weaponHitChance; //How likely the weapon is to hit before Speed and Skill.
  7.     private int weaponWeight; //Affects Speed of the holder is their Con is lower than the weapon's Weight.
  8.     private int weaponCrit; //Affects how likely the user is to get a critical hit before Luck.
  9.     private int minRange; //Minimum range for the weapon. Can't hit closer than this.
  10.     private int maxRange; //Maximum range for the weapon. Can't hit further than this.
  11.    
  12.     public Weapon(int weaponType, int weaponStrength, int weaponHitChance, int weaponWeight, int weaponCrit, int minRange, int maxRange){
  13.         this.weaponType = weaponType;
  14.         this.weaponStrength = weaponStrength;
  15.         this.weaponHitChance = weaponHitChance;
  16.         this.weaponWeight = weaponWeight;
  17.         this.weaponCrit = weaponCrit;
  18.         this.minRange = minRange;
  19.         this.maxRange = maxRange;
  20.     }
  21.    
  22.     public int getWeaponType(){
  23.         return weaponType;
  24.     }
  25.    
  26.     public int getWeaponStrength(){
  27.         return weaponStrength;
  28.     }
  29.    
  30.     public int getWeaponHitChance(){
  31.         return weaponHitChance;
  32.     }
  33.    
  34.     public int getWeaponWeight(){
  35.         return weaponWeight;
  36.     }
  37.    
  38.     public int getWeaponCrit(){
  39.         return weaponCrit;
  40.     }
  41.    
  42.     public int getMinRange(){
  43.         return minRange;
  44.     }
  45.    
  46.     public int getMaxRange(){
  47.         return maxRange;
  48.     }
  49.    
  50.     public void setWeaponType(int type){
  51.         this.weaponType = type;
  52.     }
  53.    
  54.     public void setWeaponStrength(int strength){
  55.         this.weaponStrength = strength;
  56.     }
  57.    
  58.     public void setWeaponHitChance(int hitChance){
  59.         this.weaponHitChance = hitChance;
  60.     }
  61.    
  62.     public void setWeaponWeight(int weight){
  63.         this.weaponWeight = weight;
  64.     }
  65.    
  66.     public void setWeaponCrit(int weaponCrit){
  67.         this.weaponCrit = weaponCrit;
  68.     }
  69.    
  70.     public void setMinRange(int minRange){
  71.         this.minRange = minRange;
  72.     }
  73.    
  74.     public void setMaxRange(int maxRange){
  75.         this.maxRange = maxRange;
  76.     }
  77. }
Add Comment
Please, Sign In to add comment