Item.h
上传用户:cydong117
上传日期:2009-11-10
资源大小:638k
文件大小:1k
源码类别:

模拟服务器

开发平台:

Visual C++

  1. #ifndef _CITEM_H
  2. #define _CITEM_H
  3. #pragma pack(1)
  4. typedef struct tagSTANDARDITEM
  5. {
  6. CHAR szName[15];
  7. BYTE bStdMode;          
  8. BYTE bShape;            
  9. BYTE bWeight;           
  10. BYTE bAniCount;
  11. BYTE sSpecialPower;           
  12. BYTE bNeedIdentify;
  13. WORD wLooks;            
  14. WORD wDuraMax;
  15. WORD wAC;
  16. WORD wMAC;
  17. WORD wDC;
  18. WORD wMC;
  19. WORD wSC;
  20. BYTE bNeed;             
  21. BYTE bNeedLevel;        
  22. int nPrice;
  23. }STANDARDITEM, *LPSTANDARDITEM;
  24. typedef struct tagCLIENTITEMRCD
  25. {
  26. STANDARDITEM stStdItem;
  27. int nMakeIndex;
  28. WORD nDura;
  29. WORD nDuraMax;
  30. }CLIENTITEMRCD, *LPCLIENTITEMRCD;
  31. typedef struct tagGROUNDITEM
  32. {
  33. INT nRecog;
  34. SHORT shTileX;
  35. SHORT shTileY;
  36. WORD wLooks;
  37. CHAR szItemName[40];
  38. }GROUNDITEM, *LPGROUNDITEM;
  39. #pragma pack(8)
  40. class CItem
  41. public:
  42. CItem();
  43. ~CItem();
  44. private:
  45. public:
  46. BYTE m_bAttr;
  47. SHORT m_shCellNum;
  48. CLIENTITEMRCD m_stItemInfo;
  49. protected:
  50. public:
  51. BOOL SetItem(CLIENTITEMRCD stItemInfo, SHORT shInventoryNum);
  52. BOOL DrawItem(INT nX, INT nY, BYTE bItemType = _ITEM_TYPE_INVENTORY);
  53. VOID ShowItemStatus(INT nX, INT nY);
  54. public:
  55. };
  56. #endif //_CITEM_H