MPStats.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. #ifndef MPSTATS_H
  2. #define MPSTATS_H
  3. /*************************************************************************************************\
  4. MPStats.h : Interface for the MPStats component.
  5. //---------------------------------------------------------------------------//
  6. // Copyright (C) Microsoft Corporation. All rights reserved. //
  7. //===========================================================================//
  8. \*************************************************************************************************/
  9. #ifndef LOGISTICSSCREEN_H
  10. #include "LogisticsScreen.h"
  11. #endif
  12. #ifndef MULTPLYR_H
  13. #include "Multplyr.h"
  14. #endif
  15. //*************************************************************************************************
  16. struct _MC2Player;
  17. /**************************************************************************************************
  18. CLASS DESCRIPTION
  19. MPStats:
  20. **************************************************************************************************/
  21. class MPStatsEntry : public LogisticsScreen
  22. {
  23. public:
  24. MPStatsEntry();
  25. virtual ~MPStatsEntry();
  26. void init( );
  27. void setData( const _MC2Player*, bool bShowScore );
  28. virtual void render( int x, int y );
  29. long getPlayerHeadingX();
  30. long getRankingX();
  31. long getKillsX();
  32. long getLossesX();
  33. long overlayColor;
  34. };
  35. class MPStatsResultsEntry : public LogisticsScreen
  36. {
  37. public:
  38. MPStatsResultsEntry();
  39. virtual ~MPStatsResultsEntry();
  40. virtual void render( int x, int y );
  41. void init( );
  42. void setData( const _MC2Player*, unsigned long laurelColor, bool bShowScore );
  43. long overlayColor;
  44. };
  45. class MPStats: public LogisticsScreen
  46. {
  47. public:
  48. MPStats();
  49. virtual ~MPStats();
  50. virtual void render(int xOffset, int yOffset);
  51. virtual void update();
  52. virtual void begin();
  53. virtual void end();
  54. virtual int handleMessage( unsigned long what, unsigned long who );
  55. int init();
  56. void setHostLeftDlg( const char* hostName );
  57. private:
  58. MPStats( const MPStats& src );
  59. MPStatsResultsEntry entries[MAX_MC_PLAYERS];
  60. bool bShowMainMenu;
  61. bool bSavingStats;
  62. bool bHostLeftDlg;
  63. // HELPER FUNCTIONS
  64. };
  65. //*************************************************************************************************
  66. #endif // end of file ( MPStats.h )