ObjectPlayer.h
上传用户:szopptop
上传日期:2013-04-23
资源大小:1047k
文件大小:3k
- // ORZ:
- #include "../def/staticArray.h"
- #include "../def/_orzex/syncobj.h"
- class CPlayerObject : public CCharObject, public CIntLock, CStaticArray< CPlayerObject >::IArrayData
- {
- public:
- bool m_bEmpty;
- int m_nArrIndex;
- BOOL m_fIsAlive;
- BYTE m_btBright;
-
- BOOL m_fAdminMode;
- DWORD m_dwLastCryTime;
- CWHList<CCharObject*> m_xSlaveObjList;
- public:
- void Constructor();
- bool IsEmpty();
- CPlayerObject();
- CPlayerObject(CUserInfo* pUserInfo);
- void Initialize();
- virtual void Operate();
- BOOL DoRideHorse(int nDir, int fRideFlag);
- void MakeFeature();
- void HasLevelUp(int nPrevLevel);
- void WeightChanged();
- void RecalcHitSpeed();
- void RecalcAbilitys();
- void RecalcLevelAbilitys();
- void SendBagItems();
- void SendMyMagics();
- void SendMapName();
- void SendNewMap();
- void SendAddItem(_LPTUSERITEMRCD lpTItemRcd);
- BOOL EatItem(char *pszMakeIndex);
- BOOL ReadBook(char *pszMakeIndex);
- int GetMagicID(char *pszMakeIndex);
- BOOL ServerGetEatItem(int nItemIndex, char *pszMakeIndex);
- BOOL PickUp();
- void Whisper(char *pszChar, char *pszMsg);
- int UpdateItemToDB(_LPTUSERITEMRCD lpMakeItemRcd, int nAction);
- BOOL CheckTakeOnItem(WORD wWhere, _LPTUSERITEMRCD lpTItemRcd);
- void ServerGetTakeOnGenItem(WORD wWhere, char *pszItemIndex);
- void ServerGetTakeOnItem(WORD wWhere, char *pszItemIndex);
- void ServerGetTakeOffItem(WORD wWhere, char *pszItemIndex);
- void ServerGetButch(CCharObject* pCharObject, int nX, int nY, int nDir);
- void ServerGetMagicKeyChange(int nMagicID, int nUseKey);
- BYTE DayBright();
- int CalcGetExp(int nTagLevel, int nTagHP);
- void WinExp(int nExp);
- void GainExp(int nExp);
- void AddBodyLuck(double fLuck);
- BOOL ProcessForUserSaid(char *pszData);
- void TrainSkill(_LPTHUMANMAGICRCD lptMagicRcd, int nTrain);
- BOOL DoSpell(_LPTHUMANMAGICRCD lptMagicRcd, int TargetX, int TargetY, CCharObject* pTargetObject);
- BOOL SpellXY(int nKey, int nTargetX, int nTargetY, int nTargetObj);
-
- BOOL MakeSlave(int nMonRace, int nX, int nY, int nLevel, int nMax, DWORD dwRoyaltySec);
- virtual BOOL IsProperTarget(CCharObject* pCharObject);
- virtual void Run();
- virtual WORD GetThisCharColor();
- virtual void GetCharName(char *pszCharName);
- // For Administrator
- BOOL m_fIsCapture;
- FILE *m_hCaptureFile;
- protected:
- BOOL ProcessForAdminSaid(char *pszMsg);
- void CmdRandomSpaceMove(char *pszParam1);
- void CmdFreeSpaceMove(char *pszParam1, char *pszParam2, char *pszParam3);
- void CmdCallMakeMonster(char *pszParam1, char *pszParam2);
- void CmdCallMakeMonsterXY(char *pszParam1, char *pszParam2, char *pszParam3, char *pszParam4);
- void CmdMakeItem(char *pszParam1, char *pszParam2);
- void CmdDyeingHair(char *pszParam1);
- void CmdDyeingWear(char *pszParam1);
- void CmdHairStyle(char *pszParam1);
- BOOL CmdChangeJob(char *pszParam1);
- void CmdMakeFullSkill(char *pszParam1, char *pszParam2);
- void CmdSendMonsterLevelInfos();
- void CmdChangeItemPrefix(char *pszParam1, char *pszParam2);
- void CmdCallMakeSlaveMonster(char *pszParam1, char *pszParam2);
- };