#ifndef Bestenliste_H #define Bestenliste_H #include using namespace Framework; class Bestenliste : public virtual ReferenceCounter { private: Array< int > *spielerPunkte; Array< int > *spielerNummern; Array< int > *teamPunkte; Array< int > *teamMaxPunkte; Array< int > *teamNummern; int spielerAnzahl; int teamAnzahl; public: // Konstruktor Bestenliste(); // Destruktor ~Bestenliste(); // nicht constant void setTeamMaxPunkte( int team, int mP ); void setTeamPunkte( int team, int p ); void setSpielerPunkte( int spieler, int p ); void addTeamPunkt( int team, bool plus ); void addSpielerPunkt( int spieler, bool plus ); void neueRunde(); // constant bool istTeamAmLeben( int team ) const; bool hatTeamGewonnen( int team ) const; int getTeamPunkte( int team ) const; int getTeamMaxPunkte( int team ) const; }; #endif