package ProjectDND;

public class Player1 {

	private String name;
	private int age;
	private String gender;
	private String majName;
	private Majors major;
	private String lifeline1;
	private String lifeline2;
	
	Player1(String Pgen, String Pnam, int Page, String Pmaj, String life1, String life2){
	
		gender = Pgen;
		name = Pnam;
		age = Page;
		lifeline1 = life1;
		lifeline2 = life2;
		majName = Pmaj;
		
		
		chooseMajor();
	}
	
	//switch method for user entries when inputing major 
	public void chooseMajor()
	{
		switch(majName) {
		case "CS":
		case "cs":
			major = new compSci();
		}
		
		switch(majName) {
		case "BUS":
		case "bus":
			major = new business();
		}
		
		switch(majName) {
		case "ECO":
		case "eco":
			major = new economics();
		}
		
		switch(majName) {
		case "ATH":
		case "ath":
			major = new physTher();
		}
		
		switch(majName) {
		case "POL":
		case "pol":
			major = new politics();
		}
		
		switch(majName) {
		case "NUR":
		case "nur":
			major = new nursing();
		}
		
		switch(majName) {	
		case "BIO":
		case "bio":
			major = new biology();
		}
	}
	
	//GETTERS
	public String getLifeline2(String impPers2)
	{
		return lifeline2;
	}
	public String getLifeline1(String impPers1)
	{
		return lifeline1;
	}
	public String getName()
	{
		return name;
	}
	public int getAge()
	{
		return age;
	}
	public String getGender()
	{
		return gender;
	}
	public String getMajor()
	{
		return majName;
	}
	public void major()
	{
		System.out.println("INT is " + major.INT 
				+ "\nSTR is " + major.STR
				+ "\nCHR is " + major.CHR
				+ "\nWSD is " + major.WSD
				+ "\nDEX is " + major.DEX
				+ "\nEND is " + major.END);
		
	}
	public void PrintInfo()
	{
		System.out.println("You are a " + this.gender+"."
				+ "\nYour name is " + this.name+"."
				+ "\nYou are " + this.age+"."
				+ "\nYour major is " + majName+".");
	}
}
	


@@ -526,32 +526,88 @@
 itch(majName) %7B%0A
+%09%09case %22none%22:%0A%09%09%09major = null;%0A%09%09%7D%0A%09%09switch(majName) %7B%0A
 %09%09case %22CS%22:%0A%09%09c
@@ -1529,19 +1529,34 @@
 rintln(%22
++Intelligence(
 INT
+)
  is %22 + 
@@ -1575,19 +1575,30 @@
 %09%09%09+ %22%5Cn
++Strength(
 STR
+)
  is %22 + 
@@ -1616,19 +1616,30 @@
 %09%09%09+ %22%5Cn
++Charisma(
 CHR
+)
  is %22 + 
@@ -1657,19 +1657,28 @@
 %09%09%09+ %22%5Cn
++Wisdom(
 WSD
+)
  is %22 + 
@@ -1696,19 +1696,31 @@
 %09%09%09+ %22%5Cn
++Dexterity(
 DEX
+)
  is %22 + 
@@ -1738,19 +1738,31 @@
 %09%09%09+ %22%5Cn
++Endurance(
 END
+)
  is %22 + 
@@ -1977,13 +1977,68 @@
 .%22);%0A%09%7D%0A
-%7D%0A
 %09%0A
+%09public void callFail()%0A%09%7B%0A%09%09System.out.println(%22%22);%0A%09%7D%0A%7D
 %0A

Create Player1.java