Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FalloutGameCharacters {
- private int strength;
- private int perception;
- private int endurance;
- private int charisma;
- private int agility;
- private int luck;
- private int actionPoints;
- private int carryWeight;
- private int healingRate;
- private int hitPoints;
- private int partyLimit;
- public FalloutGameCharacters(int inStrength, int inPerception, int inEndurance, int inCharisma , int inAgility, int inLuck){
- strength = inStrength;
- perception = inPerception;
- endurance = inEndurance;
- charisma = inCharisma;
- agility = inAgility;
- luck = inLuck;
- }
- public void calculuateActionPoints(){
- actionPoints = (agility/2) + 5;
- }
- public void calculateCarryWeight(){
- carryWeight = 25 + (strength * 25);
- }
- public void calculateHealingRate(){
- healingRate = endurance/3;
- }
- public void calculateHitPoints(){
- hitPoints = 15 + (2*endurance) + strength;
- }
- public void calculatePartyLimit(){
- partyLimit = charisma/2;
- }
- public int getStrength(){
- return strength;
- }
- public int getPerception(){
- return perception;
- }
- public int getEndurance(){
- return endurance;
- }
- public int getCharisma(){
- return charisma;
- }
- public int getAgility(){
- return agility;
- }
- public int getLuck(){
- return luck;
- }
- public int getActionPoints(){
- return actionPoints;
- }
- public int getCarryWeight(){
- return carryWeight;
- }
- public int getHealingRate(){
- return healingRate;
- }
- public int getHitPoints(){
- return hitPoints;
- }
- public int getPartyLimit(){
- return partyLimit;
- }
- public void increaseStrength(int amount){
- strength = strength + amount;
- }
- public void increasePerception(int amount){
- perception = perception + amount;
- }
- public void increaseEndurance(int amount){
- endurance = endurance + amount;
- }
- public void increaseCharisma(int amount){
- charisma = charisma + amount;
- }
- public void increaseAgility(int amount){
- agility = agility + amount;
- }
- public void increaseLuck(int amount){
- luck = luck + amount;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement