ObjectNPC.h
上传用户:szopptop
上传日期:2013-04-23
资源大小:1047k
文件大小:1k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. /*
  2. */
  3. class CNPCObject : public CCharObject
  4. {
  5. public:
  6. DWORD m_dwRunTime;
  7. DWORD m_dwRunNextTick;
  8. CNPCObject();
  9. virtual void GetCharName(char *pszCharName) { return; }
  10. };
  11. /*
  12. */
  13. class CMerchantObject : public CCharObject
  14. {
  15. public:
  16. DWORD m_dwRunTime;
  17. DWORD m_dwRunNextTick;
  18. int m_nIndex;
  19. CMerchantObject();
  20. void RunRace();
  21. virtual WORD GetThisCharColor() { return _CHAT_COLOR3; }
  22. virtual void GetCharName(char *pszCharName) { strcpy(pszCharName, m_szName); }
  23. };