* names and creates four party members
*/
private void initializeParty(){
//First party member is named or defaults to Wilson
if(txtName1.getText().equals("")){
party1 = new Traveler("Wilson");
} else {
party1 = new Traveler(txtName1.getText());
}
//Second party member is named or defaults to Sarah
if(txtName2.getText().equals("")){
party2 = new Traveler("Sarah");
} else {
party2 = new Traveler(txtName2.getText());
}
//Third party member is named or defaults to Sebastian
if(txtName3.getText().equals("")){
party3 = new Traveler("Sebastian");
} else {
party3 = new Traveler(txtName3.getText());
}
//Fourth party member is named or defaults to Elizabeth
if(txtName4.getText().equals("")){
party4 = new Traveler("Elizabeth");
} else {
party4 = new Traveler(txtName4.getText());
}
//Add all party members to the party member list.
memberList = new ArrayList<Traveler>();
memberList.add(party1);