/Users/17763/Desktop/IA_Final_Submission_00889-0018/Product/IA_Netbeans_Project/src/ia/hokeun/Player.java
  1 /*
  2  * To change this license header, choose License Headers in Project Properties.
  3  * To change this template file, choose Tools | Templates
  4  * and open the template in the editor.
  5  */
  6 package ia.hokeun;
  7 
  8 /**
  9  *
 10  * @author 17763
 11  */
 12 public class Player extends InjuryAndTreatment{
 13     //Extensibility here is possible for those athletic trainers who are looking to keep track of more information
 14     private String name = "not set yet";
 15     private boolean nonStudent = false;
 16     private boolean nonAthlete = false;
 17     private int studentID = -999;
 18     private String gender = "not set yet";
 19     private int gradeLevel = -999;
 20     private String sport = "not set yet";
 21     private String playingLevel = "not set yet";
 22     private String season = "not set yet";
 23     //Players have injuries so each player has an array of injuries
 24     private InjuryAndTreatment [] injuries; 
 25     int counter = 0;
 26     
 27     public Player(){
 28     }
 29     
 30     public Player(String name, boolean nonStudent, boolean nonAthlete, int studentID, String gender, int gradeLevel, String sport, String playingLevel, String season, InjuryAndTreatment [] injuries){
 31         this.name = name;
 32         this.nonStudent = nonStudent;
 33         this.nonAthlete = nonAthlete;
 34         this.studentID = studentID;
 35         this.gender = gender;
 36         this.gradeLevel = gradeLevel;
 37         this.sport = sport;
 38         this.playingLevel = playingLevel;
 39         this.season = season;
 40         injuries = new InjuryAndTreatment [99];
 41         this.injuries = injuries;
 42 
 43         for(int i = 0; i < injuries.length; i++){
 44             injuries[i] = new InjuryAndTreatment();
 45         }
 46     }
 47     
 48     public void setName(String name) {
 49         this.name = name;
 50     }
 51     
 52     public void setNonStudent(boolean nonStudent){
 53         this.nonStudent = nonStudent;
 54     }
 55     
 56     public void setNonAthlete(boolean nonAthlete){
 57         this.nonAthlete = nonAthlete;
 58     }
 59     
 60     public void setStudentID(int studentID){
 61         this.studentID = studentID;
 62     }
 63     
 64     public void setGender(String gender){
 65         this.gender = gender;
 66     }
 67     
 68     public void setGradeLevel(int gradeLevel){
 69         this.gradeLevel = gradeLevel;
 70     }
 71     
 72     public void setSport(String sport){
 73         this.sport = sport;
 74     }
 75     
 76     public void setPlayingLevel(String playingLevel){
 77         this.playingLevel = playingLevel;
 78     }
 79     
 80     public void setSeason(String season){
 81         this.season = season;
 82     }
 83     
 84     public void setNextInjury(InjuryAndTreatment injuryAndTreatment){
 85         injuries[counter] = injuryAndTreatment;
 86         counter++;
 87     }
 88     
 89     public String getName() {
 90         return name;
 91     }
 92     
 93     public boolean getNonStudent() {
 94         return nonStudent;
 95     }
 96     
 97     public boolean getNonAthlete() {
 98         return nonAthlete;
 99     }
100     
101     public int getStudentID() {
102         return studentID;
103     }
104     
105     public String getGender() {
106         return gender;
107     }
108     
109     public int getGradeLevel() {
110         return gradeLevel;
111     }
112     
113     public String getSport() {
114         return sport;
115     }
116     
117     public String getPlayingLevel() {
118         return playingLevel;
119     }
120     
121     public String getSeason() {
122         return season;
123     }
124     
125     public InjuryAndTreatment [] getInjuries(){
126         return injuries;
127     }
128 }
129