RoseDuf_Chicken-Rush/midterm_project/Pong/Score.pde
//Score
//
//A class that defines a Score board which will add points to either of the players (sides) 
//depending on the the number of number of goals they do to the opponent.

class Score{
  
  /////////////// Properties ///////////////
  
  //variables for the text
  String num;
  float x;
  float y;
  int point = 10;
  
  color player_color;
  
  //Score constructor 
  Score(String _num, float _x, float _y, color c){
    num = _num;
    x = _x;
    y = _y;
    player_color = c;
  }
  
  //Score Mutators (getters and setters)
  String getNum(){
    return num;
  }
  void setNum(String n){
    num = n;
  }
  float getX(){
    return x;
  }
  void setX(float _x){
    x = _x;
  }
  float getY(){
    return y;
  }
  void setY(float _y){
    y = _y;
  }
  
  //Display function
  void display(){
   fill(player_color);
   textSize(35);
   text(num,x,y);
  }
}