Score.h 766 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef SCORE_H
  2. #define SCORE_H
  3. #include "HitManager.h"
  4. #include <fstream>
  5. /**
  6. Jovian Hersemeule
  7. Description du Ally :
  8. Contient toutes les données relatives au sauvegardes du joueur.
  9. **/
  10. class Score
  11. {
  12. /// Méthodes
  13. public:
  14. Score();
  15. virtual ~Score();
  16. void load( std::string name );
  17. void save();
  18. std::string getName();
  19. Uint32 getCpuLoad();
  20. Uint32 getWinNumber();
  21. bool hasShield();
  22. bool hasWeapon( int weapId );
  23. void addVictory();
  24. void giveLoot( std::string planet );
  25. /// Attributs
  26. protected:
  27. std::string m_name;
  28. Uint32 m_cpuLoad;
  29. Uint32 m_winNumber;
  30. bool m_hasShield;
  31. bool m_hasWeapon[SHOT_NB];
  32. };
  33. #endif // SCORE_H