MMatchRuleAssassinate.h
00001 #ifndef _MMATCHRULE_ASSASSINATE_H 00002 #define _MMATCHRULE_ASSASSINATE_H 00003 00004 00005 #include "MMatchRuleDeathMatch.h" 00006 00008 class MMatchRuleAssassinate : public MMatchRuleTeamDeath { 00009 private: 00010 MUID m_uidRedCommander; 00011 MUID m_uidBlueCommander; 00012 private: 00013 const MUID ChooseCommander(int nTeam); 00014 protected: 00015 virtual void OnRoundBegin(); 00016 virtual void OnRoundEnd(); 00017 virtual bool OnCheckRoundFinish(); 00018 public: 00019 MMatchRuleAssassinate(MMatchStage* pStage); 00020 virtual ~MMatchRuleAssassinate() {} 00021 virtual void* CreateRuleInfoBlob(); 00022 virtual void CalcTeamBonus(MMatchObject* pAttacker, MMatchObject* pVictim, 00023 int nSrcExp, int* poutAttackerExp, int* poutTeamExp); 00024 }; 00025 00026 00027 00028 #endif
MAIET entertainment