No Description

BPlayer.h 991B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef PLAYER_H
  2. #define PLAYER_H
  3. #include <iostream>
  4. using namespace std;
  5. class BPlayer {
  6. private:
  7. unsigned short Number, Points, Rebs, Asts, Stls, Blocks, Fouls, Turnovers;
  8. float FGPercentage, ThrptPercentage, FTPercentage, FG, FGattempt, Thrpt, Thrptattempt, FT, FTattempt;
  9. public:
  10. BPlayer();
  11. BPlayer(unsigned short number);
  12. void shotTaken();
  13. void addReb();
  14. void addAst();
  15. void addStl();
  16. void addBlock();
  17. void addFoul();
  18. void addTurnover();
  19. void remPoints();
  20. void remReb();
  21. void remAst();
  22. void remStl();
  23. void remBlock();
  24. void remFoul();
  25. void remTurnover();
  26. unsigned short getNumber() const;
  27. unsigned short getPoints() const;
  28. float getFGPercentage() const;
  29. float getThrptPercentage() const;
  30. float getFTPercentage() const;
  31. unsigned short getRebs() const;
  32. unsigned short getAsts() const;
  33. unsigned short getStls() const;
  34. unsigned short getBlocks() const;
  35. unsigned short getFouls() const;
  36. unsigned short getTurnovers() const;
  37. void showStats();
  38. };
  39. #endif