//===============================================
//   File:      teamClass.hpp
//   By:        Roger Z. Rios Mercado
//   Date:      SP/94
//   Comment:   This file contains the <team> class
//              declaration
//===============================================

#ifndef TEAMCLASS_HPP
#define TEAMCLASS_HPP

#include <stdio.h>

#define PTS_PER_WIN       3   // Pts per win
#define PTS_PER_WIN_HELL  3   // Pts per win for relegation standings

//
//   Forward declaration.
//
class team;

class team {
public:
     char* name;  // Team name
     int group;   // Group

     int g_2;    // Games played (2 years back)
     int f_2;    // Goals for
     int a_2;    // Goals against
     int pts_2;  // Pts
     int g_1;    // games played (1 year back)
     int f_1;    // Goals for
     int a_1;    // Goals against
     int pts_1;  // Pts

     int g_t;          // Total games played (3 seasons)
     int pts_t;        // Total pts earned (3 seasons)
     int mn;           // Magic number of pts needed to avoid releg.
     double ptge;      // Percentage of pts_t/g_t
     double dif_avg;   // Goal difference average (3 seasons)
     double f_avg;     // Goals for average (3 seasons)
     double best_ptge; // Best possible (ptge)
     
     int hg;    // Home games
     int hw;    // Home wins
     int hd;    // Home draws
     int hl;    // Home loses
     int hf;    // Home goals for
     int ha;    // Home goals against
     int hdif;  // Home goal difference
     int hpts;  // Home pts

     int ag;    // Away games
     int aw;    // Away wins
     int ad;    // Away draws
     int al;    // Away loses
     int af;    // Away goals for
     int aa;    // Away goals against
     int adif;  // Away goal difference
     int apts;  // Away pts

     int g;    // Current games
     int w;    // Current wins
     int d;    // Current draws
     int l;    // Current loses
     int f;    // Current goals for
     int a;    // Current goals against
     int dif;  // Current goal difference
     int pts;  // Current pts

     team();  // Default constructor
     team(char* s, int group, int g_2, int f_2, int a_2, int pts_2,
          int g_1, int f_1, int a_1, int pts_1,
          int hw, int hd, int hl, int hf, int fa,
          int aw, int ad, int al, int af, int aa);
//     team(const team& t);  // Copy constructor
     ~team();  // Destructor
};

#endif

