KNpcDeathCalcExp.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:1k
- //---------------------------------------------------------------------------
- // Sword3 Engine (c) 1999-2000 by Kingsoft
- //
- // File: KNpcDeathCalcExp.h
- // Date: 2003.07.21
- // Code: 边城浪子
- // Desc: KNpcDeathCalcExp Class
- //---------------------------------------------------------------------------
- #ifndef KNPCDEATHCALCEXP_H
- #define KNPCDEATHCALCEXP_H
- #define defMAX_CALC_EXP_NUM 3
- #define defMAX_CALC_EXP_TIME 1200
- typedef struct
- {
- int m_nAttackIdx;
- int m_nTotalDamage;
- int m_nTime;
- } KCalcExpInfo;
- class KNpcDeathCalcExp
- {
- friend class KNpc;
- private:
- int m_nNpcIdx;
- KCalcExpInfo m_sCalcInfo[defMAX_CALC_EXP_NUM];
- public:
- void Init(int nNpcIdx);
- void Active();
- #ifdef _SERVER
- void AddDamage(int nPlayerIdx, int nDamage);
- int CalcExp();
- #endif
- void Clear();
- };
- #endif