/Users/johnr/Desktop/IA_14_-_Stage_P_Upload_all_2021-04-08/RugbyIA Pune April 7th/src/Game.java
 1 
 2 import java.util.ArrayList;
 3 
 4 /*
 5  * To change this license header, choose License Headers in Project Properties.
 6  * To change this template file, choose Tools | Templates
 7  * and open the template in the editor.
 8  */
 9 
10 /**
11  *
12  * @author 20564
13  */
14 public class Game{
15     private String gameNumber = "not yet set";
16     private String gameAgainst = "not yet set";
17     private String gameResult = "not yet set";
18     private ArrayList<Player> playersChart = new ArrayList<Player>();
19     
20     public Game(){
21         
22     }
23        
24     public Game(String gameNumber, String gameAgainst, String gameResult, ArrayList<Player> playersChart){ 
25         this.gameNumber = gameNumber;
26         this.gameAgainst = gameAgainst;
27         this.gameResult = gameResult;
28         this.playersChart = playersChart;
29     }
30     
31     public String getGameNumber(){
32         return gameNumber;
33     }
34     
35     public String getGameAgainst(){
36         return gameAgainst;
37     }
38     
39     public String getGameResult(){
40         return gameResult;
41     }
42     
43     public ArrayList<Player> getPlayersChart(){
44         return playersChart;
45     }    
46     
47      public void setGameNumber(String gameNumber){
48         this.gameNumber = gameNumber;
49     }
50     
51     public void setGameAgainst(String gameAgainst){
52         this.gameAgainst = gameAgainst;
53     }
54     
55     public void setGameResult(String gameResult){
56         this.gameResult = gameResult;
57     }
58     
59     public void setPlayerChart (ArrayList<Player> playersChart){
60         this.playersChart = playersChart;
61     }
62 
63     Object getPlayerScore() {
64         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
65     }
66     
67 } 
68 
69 
70 
71 
72