Advertisement
jaredt17

FalloutProject

Oct 20th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.85 KB | None | 0 0
  1. public class Stats
  2. {
  3.         private int Strength;
  4.         private int Perception;
  5.         private int Endurance;
  6.         private int Charisma;
  7.         private int Intelligence;
  8.         private int Agility;
  9.         private int Luck;
  10.         private int HitPoints;
  11.         private int HealingRate;
  12.         private int PartyLimit;
  13.         private int ArmorClass;
  14.         private int CarryWeight;
  15.         public Stats(int Strengthlvl, int Perceptionlvl, int Endurancelvl, int Charismalvl, int Intelligencelvl, int Agilitylvl)
  16.     {
  17.                 Strength = Strengthlvl;
  18.                 Perception = Perceptionlvl;
  19.                 Endurance = Endurancelvl;
  20.                 Charisma = Charismalvl;
  21.                 Intelligence = Intelligencelvl;
  22.                 Agility = Agilitylvl;
  23.     }
  24.         public void hitPoints()
  25.     {
  26.                 HitPoints = 15 + (2 * Endurance) + Strength;
  27.     }
  28.         public void healingRate()
  29.     {
  30.                 HealingRate = (Endurance / 3) - 1;
  31.     }
  32.         public void partyLimit()
  33.     {
  34.                 PartyLimit = Charisma / 2;
  35.     }
  36.         public void armorClass()
  37.     {
  38.                 ArmorClass = Agility;
  39.     }
  40.         public void carryWeight()
  41.     {
  42.                 CarryWeight =25 + (Strength * 25);
  43.     }
  44.         public int strenght()
  45.     {
  46.                 return Strength;
  47.     }
  48.         public int perception()
  49.     {
  50.                 return Perception;
  51.     }
  52.         public int endurance()
  53.     {
  54.                 return Endurance;
  55.     }
  56.         public int charisma()
  57.     {
  58.                 return Charisma;
  59.     }
  60.         public int intelligence()
  61.     {
  62.                 return Intelligence;
  63.     }
  64.         public int agility()
  65.     {
  66.                 return Agility;
  67.     }
  68.         public int luck()
  69.     {
  70.                 return Luck;
  71.     }
  72.         public int getHitPoints()
  73.     {
  74.                 return HitPoints;
  75.     }
  76.         public int getHealingRate()
  77.     {
  78.                 return HealingRate;
  79.     }
  80.         public int getPartyLimit()
  81.     {
  82.                 return PartyLimit;
  83.     }
  84.         public int getArmorClass()
  85.     {
  86.                 return ArmorClass;
  87.     }
  88.         public int getCarryWeight()
  89.     {
  90.                 return CarryWeight;
  91.     }
  92.         public void increaseStrength(int amount)
  93.     {
  94.                 Strength = Strength + amount;
  95.     }
  96.         public void increasePerception(int amount)
  97.     {
  98.                 Perception = Perception + amount;
  99.     }
  100.         public void increaseEndurance(int amount)
  101.     {
  102.                 Endurance = Endurance + amount;
  103.     }
  104.         public void increaseCharisma(int amount)
  105.     {
  106.                 Charisma = Charisma + amount;
  107.     }
  108.         public void increaseintelligence(int amount)
  109.     {
  110.                 Intelligence = Intelligence + amount;
  111.     }
  112.         public void increaseAgility(int amount)
  113.     {
  114.                 Agility = Agility + amount;
  115.     }
  116.     public void increaseLuck(int amount)
  117.     {
  118.                 Luck = Luck + amount;
  119.     }
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement