Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package feAttempt;
- public class Weapon {
- private int weaponType; //0 is for swords and magic, 1 is for axes and bows, and 2 is for lances and daggers/knives.
- private int weaponStrength; //How much damage the weapon deals before Defense and Strength.
- private int weaponHitChance; //How likely the weapon is to hit before Speed and Skill.
- private int weaponWeight; //Affects Speed of the holder is their Con is lower than the weapon's Weight.
- private int weaponCrit; //Affects how likely the user is to get a critical hit before Luck.
- private int minRange; //Minimum range for the weapon. Can't hit closer than this.
- private int maxRange; //Maximum range for the weapon. Can't hit further than this.
- public Weapon(int weaponType, int weaponStrength, int weaponHitChance, int weaponWeight, int weaponCrit, int minRange, int maxRange){
- this.weaponType = weaponType;
- this.weaponStrength = weaponStrength;
- this.weaponHitChance = weaponHitChance;
- this.weaponWeight = weaponWeight;
- this.weaponCrit = weaponCrit;
- this.minRange = minRange;
- this.maxRange = maxRange;
- }
- public int getWeaponType(){
- return weaponType;
- }
- public int getWeaponStrength(){
- return weaponStrength;
- }
- public int getWeaponHitChance(){
- return weaponHitChance;
- }
- public int getWeaponWeight(){
- return weaponWeight;
- }
- public int getWeaponCrit(){
- return weaponCrit;
- }
- public int getMinRange(){
- return minRange;
- }
- public int getMaxRange(){
- return maxRange;
- }
- public void setWeaponType(int type){
- this.weaponType = type;
- }
- public void setWeaponStrength(int strength){
- this.weaponStrength = strength;
- }
- public void setWeaponHitChance(int hitChance){
- this.weaponHitChance = hitChance;
- }
- public void setWeaponWeight(int weight){
- this.weaponWeight = weight;
- }
- public void setWeaponCrit(int weaponCrit){
- this.weaponCrit = weaponCrit;
- }
- public void setMinRange(int minRange){
- this.minRange = minRange;
- }
- public void setMaxRange(int maxRange){
- this.maxRange = maxRange;
- }
- }
Add Comment
Please, Sign In to add comment