Bestenliste.h 924 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef Bestenliste_H
  2. #define Bestenliste_H
  3. #include <Array.h>
  4. using namespace Framework;
  5. class Bestenliste : public virtual ReferenceCounter
  6. {
  7. private:
  8. Array< int > *spielerPunkte;
  9. Array< int > *spielerNummern;
  10. Array< int > *teamPunkte;
  11. Array< int > *teamMaxPunkte;
  12. Array< int > *teamNummern;
  13. int spielerAnzahl;
  14. int teamAnzahl;
  15. public:
  16. // Konstruktor
  17. Bestenliste();
  18. // Destruktor
  19. ~Bestenliste();
  20. // nicht constant
  21. void setTeamMaxPunkte( int team, int mP );
  22. void setTeamPunkte( int team, int p );
  23. void setSpielerPunkte( int spieler, int p );
  24. void addTeamPunkt( int team, bool plus );
  25. void addSpielerPunkt( int spieler, bool plus );
  26. void neueRunde();
  27. // constant
  28. bool istTeamAmLeben( int team ) const;
  29. bool hatTeamGewonnen( int team ) const;
  30. int getTeamPunkte( int team ) const;
  31. int getTeamMaxPunkte( int team ) const;
  32. };
  33. #endif