/ghost/statsdota.h

http://ghostcb.googlecode.com/ · C Header · 46 lines · 17 code · 7 blank · 22 comment · 0 complexity · 540bf598e58d4be717ebbcbb17d34990 MD5 · raw file

  1. /*
  2. Copyright [2008] [Trevor Hogan]
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. CODE PORTED FROM THE ORIGINAL GHOST PROJECT: http://ghost.pwner.org/
  13. */
  14. #ifndef STATSDOTA_H
  15. #define STATSDOTA_H
  16. //
  17. // CStatsDOTA
  18. //
  19. class CDBDotAPlayer;
  20. class CStatsDOTA : public CStats
  21. {
  22. private:
  23. CDBDotAPlayer *m_Players[12];
  24. uint32_t m_Winner;
  25. uint32_t m_Min;
  26. uint32_t m_Sec;
  27. public:
  28. CStatsDOTA( CBaseGame *nGame );
  29. virtual ~CStatsDOTA( );
  30. virtual bool ProcessAction( CIncomingAction *Action );
  31. virtual void Save( CGHost *GHost, CGHostDB *DB, uint32_t GameID );
  32. };
  33. #endif