MMatchRuleDeathMatch.h
00001 #ifndef _MMATCHRULE_DEATHMATCH_H 00002 #define _MMATCHRULE_DEATHMATCH_H 00003 00004 00005 #include "MMatchRule.h" 00006 00007 00008 class MMatchRuleSoloDeath : public MMatchRule { 00009 protected: 00010 bool CheckKillCount(MMatchObject* pOutObject); 00011 virtual void OnBegin(); 00012 virtual void OnEnd(); 00013 virtual void OnRoundTimeOut(); 00014 virtual bool OnCheckRoundFinish(); 00015 virtual bool RoundCount(); 00016 public: 00017 MMatchRuleSoloDeath(MMatchStage* pStage); 00018 virtual ~MMatchRuleSoloDeath() { } 00019 }; 00020 00022 class MMatchRuleTeamDeath : public MMatchRule { 00023 protected: 00024 bool GetAliveCount(int* pRedAliveCount, int* pBlueAliveCount); 00025 virtual void OnBegin(); 00026 virtual void OnEnd(); 00027 virtual bool OnRun(); 00028 virtual void OnRoundBegin(); 00029 virtual void OnRoundEnd(); 00030 virtual bool OnCheckRoundFinish(); 00031 virtual void OnRoundTimeOut(); 00032 virtual bool RoundCount(); 00033 virtual bool OnCheckEnableBattleCondition(); 00034 public: 00035 MMatchRuleTeamDeath(MMatchStage* pStage); 00036 virtual ~MMatchRuleTeamDeath() {} 00037 virtual void CalcTeamBonus(MMatchObject* pAttacker, MMatchObject* pVictim, 00038 int nSrcExp, int* poutAttackerExp, int* poutTeamExp); 00039 }; 00040 00041 00042 #endif
MAIET entertainment