text: /*************************************************************************
  Crytek Source File.
  Copyright (C), Crytek Studios, 2009.
  -------------------------------------------------------------------------
  $Id$
  $DateTime$
  Description: 
  Game rules module to allow a game mode based on module to use the IGameStatistics
  interface
  -------------------------------------------------------------------------
  History:
  - 19:10:2009  : Created by Mark Tully
  
  *************************************************************************/
  
  #ifndef __GAMERULESSTATSRECORDING_H__
  #define __GAMERULESSTATSRECORDING_H__
  
  #include "IGameRulesStatsRecording.h"
  
  struct IGameStatistics;
  struct IActor;
  class CStatsRecordingMgr;
  
  class CGameRulesStatsRecording : public IGameRulesStatsRecording
  {
  	protected:
  		IGameStatistics		*m_gameStatistics;
  		IActorSystem		*m_actorSystem;
  		CStatsRecordingMgr	*m_statsMgr;
  
  	public:
  							CGameRulesStatsRecording() :
  								m_gameStatistics(NULL),
  								m_actorSystem(NULL),
  								m_statsMgr(NULL)
  							{
  							}
  
  		virtual void		Init(
  								XmlNodeRef		xml);
  		virtual void		OnInGameBegin();
  		virtual void		OnPostGameBegin();
  		virtual void		OnGameEnd();
  		virtual void		OnPlayerRevived(
  								IActor			*inActor);
  		virtual void		OnPlayerKilled(
  								IActor			*inActor);
  
  #if USE_PC_PREMATCH
  		virtual void OnPrematchEnd(
  								IActor			*inActor);
  #endif
  };
  
  #endif // __GAMERULESSTATSRECORDING_H__
  
  