activeobject.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:24k
- #include "stdafx.h"
- #include "XmudOS.h"
- #include "ActiveObject.h"
- #include "GoodsGoodsGoods.h"
- #include "SkillSkillSkill.h"
- #include "Common.h"
- #include "condition.h"
- #include "mapmapinfo.h"
- #include "npcnpc.h"
- #include "player.h"
- #include "Fight.h"
- #include "CmdPlayerLogon.h"
- #include "hash.h"
- extern rmfullglobals myglobs;
- extern CList <CBaseMap*,CBaseMap*>maplist;
- extern CList <CFight*,CFight*>killlist;
- extern CList <CFight*,CFight*>fightlist;
- TObjectSkill * GetTObjSkill(CString szEName, int level, int score, CString szMapping)
- {
- TObjectSkill * lpObjectSkill;
- CSkill * lpSkill;
- lpSkill = GetSkillClass(szEName);
- if (lpSkill == NULL) return NULL;
- lpObjectSkill = new TObjectSkill;
- lpObjectSkill->lpSkill = lpSkill;
- lpObjectSkill->nLevel = level;
- lpObjectSkill->nScore = score;
- lpObjectSkill->szMapping = szMapping;
- return lpObjectSkill;
- }
- CActiveObject::CActiveObject()
- {
- strcpy(szCheck,SZAOBJCHECK);
- szCName = _T("");
- szEName = _T("");
- szNickName = _T("");
- szTilte = _T("");
- szXFileName = _T("");
- szFamily = _T("礚