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

模拟服务器

开发平台:

Visual C++

  1. #ifndef _SPRITEDEF_H
  2. #define _SPRITEDEF_H
  3. // 某腐磐, 阁胶磐, NPC殿狼 胶橇扼捞飘甫 Define茄促.
  4. #define  _MAX_HUMAN_RACE_FRAME   2640
  5. // 某腐磐 辆幅 Define.
  6. #define  _MAX_HUMAN_RACE  3
  7. #define  _HUMAN_RACE_TYPE1  0 // 舅个 巢磊.
  8. //#define  _HUMAN_RACE_TYPE2  1 // 舅个 咯磊.
  9. #define  _HUMAN_RACE_TYPE2  1 // 乞汗 巢磊.
  10. //#define  _HUMAN_RACE_TYPE4  3 // 乞汗 咯磊.
  11. #define  _HUMAN_RACE_TYPE3  2 // 版癌 巢磊.
  12. //#define  _HUMAN_RACE_TYPE6  5 // 版癌 咯磊.
  13. //#define  _HUMAN_RACE_TYPE7  6 // 傈巩汗 傈荤 巢磊.
  14. //#define  _HUMAN_RACE_TYPE8  7 // 傈巩汗 傈荤 咯磊.
  15. //#define  _HUMAN_RACE_TYPE9  8 // 傈巩汗 贱荤 巢磊.
  16. //#define  _HUMAN_RACE_TYPE10  9 // 傈巩汗 贱荤 咯磊.
  17. //#define  _HUMAN_RACE_TYPE11 10 // 傈巩汗 档荤 巢磊.
  18. //#define  _HUMAN_RACE_TYPE12 11 // 傈巩汗 档荤 咯磊.
  19. // 某腐磐 悼累 Define.
  20. #define  _MAX_HUMAN_MTN 33
  21. #define  _MT_HUMAN_STAND  0
  22. #define  _MT_HUMAN_ARROWATTACK  1
  23. #define  _MT_HUMAN_SPELL1  2
  24. #define  _MT_HUMAN_SPELL2  3
  25. #define  _MT_HUMAN_HOLD  4
  26. #define  _MT_HUMAN_PUSHBACK  5
  27. #define  _MT_HUMAN_PUSHBACKFLY  6 
  28. #define  _MT_HUMAN_ATTACKMODE  7
  29. #define  _MT_HUMAN_CUT  8
  30. #define  _MT_HUMAN_ONEVSWING  9
  31. #define  _MT_HUMAN_TWOVSWING 10
  32. #define  _MT_HUMAN_ONEHSWING 11
  33. #define  _MT_HUMAN_TWOHSWING 12
  34. #define  _MT_HUMAN_SPEARVSWING 13
  35. #define  _MT_HUMAN_SPEARHSWING 14
  36. #define  _MT_HUMAN_HITTED 15
  37. #define  _MT_HUMAN_WHEELWIND 16
  38. #define  _MT_HUMAN_RANDSWING 17
  39. #define  _MT_HUMAN_BACKDROPKICK 18
  40. #define  _MT_HUMAN_PUSHBACKDEAD 19
  41. #define  _MT_HUMAN_SPECIALDEAD 20
  42. #define  _MT_HUMAN_WALK 21
  43. #define  _MT_HUMAN_RUN 22
  44. #define  _MT_HUMAN_MOODEPO 23
  45. #define  _MT_HUMAN_ROLL 24
  46. #define  _MT_HUMAN_FISHSTAND 25
  47. #define  _MT_HUMAN_FISHHAND 26
  48. #define  _MT_HUMAN_FISHTHROW 27
  49. #define  _MT_HUMAN_FISHPULL 28
  50. #define  _MT_HUMAN_HORSESTAND 29
  51. #define  _MT_HUMAN_HORSEWALK 30
  52. #define  _MT_HUMAN_HORSERUN 31
  53. #define  _MT_HUMAN_HORSEHITT 32
  54. /*
  55. #define  _MT_HUMAN_WEAPON1 33
  56. #define  _MT_HUMAN_WEAPON2 34
  57. #define  _MT_HUMAN_WEAPON3 35
  58. */
  59. // 阁胶磐 辆幅 Define
  60. #define  _MAX_MON_RACE  5
  61. #define  _RACE_LIZARD  0
  62. #define  _RACE_NIGHTGHOST  1
  63. #define  _RACE_THORN  2
  64. #define  _RACE_SANDMON  3
  65. #define  _RACE_GOLEM  4
  66. // 阁胶磐 悼累 Define
  67. #define  _MAX_MON_MTN  9
  68. #define  _MT_MON_STAND  0
  69. #define  _MT_MON_WALK  1
  70. #define  _MT_MON_ATTACK  2
  71. #define  _MT_MON_STRUCK  3
  72. #define  _MT_MON_DIE  4
  73. #define  _MT_MON_DEATH  5
  74. #define  _MT_MON_APPEAR  6
  75. #define  _MT_MON_DISAPPEAR  7
  76. #define  _MT_MON_CRITICAL  8
  77. typedef struct tagMTNFRMINFO
  78. {
  79. SHORT shStartFrm;
  80. BYTE bFrmCnt;
  81. BYTE bSkip;
  82. SHORT shDelay;
  83. BOOL bReverse;
  84. }MTNFRMINFO, *LPMTNFRMINFO;
  85. typedef struct tagHUMANRACEINFO
  86. {
  87. SHORT shImgIdx;
  88. SHORT shRaceStartFrm;
  89. SHORT shRaceEndFrm;
  90. MTNFRMINFO stMtn[_MAX_HUMAN_MTN];
  91. }HUMANRACEINFO, *LPHUMANRACEINFO;
  92. typedef struct tagMONRACEINFO
  93. {
  94. SHORT shImgIdx;
  95. SHORT shRaceStartFrm;
  96. SHORT shRaceEndFrm;
  97. MTNFRMINFO stMtn[_MAX_MON_MTN];
  98. }MONRACEINFO, *LPMONRACEINFO;
  99. class CSpriteInfo
  100. {
  101. public:
  102. HUMANRACEINFO m_stHuman[_MAX_HUMAN_RACE];
  103. MONRACEINFO m_stMon[_MAX_MON_RACE];
  104. public:
  105. CSpriteInfo();
  106. ~CSpriteInfo();
  107. Init();
  108. VOID SetSpriteInfo();
  109. VOID SetHumanSpriteInfo();
  110. VOID SetMonSpriteInfo();
  111. VOID SetHumanRaceInfo(LPHUMANRACEINFO pstHumanRaceInfo, SHORT shImgIdx, SHORT shRaceStartFrm, SHORT shRaceEndFrm);
  112. VOID SetMonRaceInfo(LPMONRACEINFO pstMonRaceInfo, SHORT shImgIdx, SHORT shRaceStartFrm, SHORT shRaceEndFrm);
  113. VOID SetMotionInfo(LPMTNFRMINFO pstMtnFrmInfo, SHORT shStartFrm, BYTE bFrmCnt, BYTE bSkip, SHORT shDelay, BOOL bReverse);
  114. };
  115. #endif //_SPRITEDEF_H
  116. // 橇饭烙狼 备炼......
  117. /*
  118. LPRACE
  119. typedef struct tagRACETYPEINFO
  120. {
  121. SHORT shStartFrm;
  122. SHORT shEndFrm;
  123. SHORT shMaxMtn;
  124. SHORT shMaxFrame;
  125. SHORT shImgIdx;
  126. LPMTNFRMINFO pstMtn;
  127. }HUMANRACEINFO, *LPHUMANRACEINFO;
  128. typedef struct tagMTNINFO
  129. {
  130. BYTE bMtnFrmOffset; // 泅犁 悼累俊 措茄 弥措 橇饭烙.
  131. WORD wDir; // 规氢捞 乐绰厚飘俊 1捞 技泼等促.
  132. BYTE bStartFrm; // 矫累 橇饭烙.
  133. BYTE bFrmCnt; // 橇饭烙狼 肮荐.
  134. SHORT shDelay; // 泅犁 悼累狼 Delay.
  135. BOOL bReverse; // 悼累阑 芭操肺 倒副巴牢瘤狼 咯何.
  136. }MTNFRMINFO, *LPMTNFRMINFO;
  137. */