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

模拟服务器

开发平台:

Visual C++

  1. #ifndef _CHRSEL_DEFINE_H
  2. #define _CHRSEL_DEFINE_H
  3. // Selection Define
  4. #define SELECT_NONE -1
  5. #define SELECT_FIRST 0
  6. #define SELECT_SECOND 1
  7. #define SELECT_THIRD 2
  8. #define _RENDER_STILL_1 0
  9. #define _RENDER_AVI_IN 1
  10. #define _RENDER_STILL_2 2
  11. #define _RENDER_AVI_OUT 3
  12. #define _RENDER_AVI_START 4
  13. #define _RENDER_STARTGAME 5
  14. #define ID_SEL_CHR_NEW_BTN 0
  15. #define ID_SEL_CHR_DEL_BTN 1
  16. #define ID_SEL_CHR_EXIT_BTN 2
  17. #define ID_SEL_CHR_START_BTN 3
  18. // Charater Select Image Index
  19. #define IMG_IDX_SELECT_CHR_BACK 50
  20. #define IMG_IDX_SELECT_CREATE 51
  21. #define IMG_IDX_SELECT_DELETE 52
  22. #define IMG_IDX_SELECT_START 53
  23. #define IMG_IDX_SELECT_EXIT 54
  24. // Empty Button Image Index
  25. #define IMG_IDX_EMPTY_BTN_UP 23
  26. #define IMG_IDX_EMPTY_BTN_ON 24
  27. #define IMG_IDX_EMPTY_BTN_DOWN 25
  28. // Charater Create Image Index
  29. #define IMG_IDX_CREATE_CHR_BACK 90
  30. #define IMG_IDX_WAR_BTN_UP 91
  31. #define IMG_IDX_SOR_BTN_UP 94
  32. #define IMG_IDX_TAO_BTN_UP 97
  33. #define IMG_IDX_WAR_MALE_CREATE 100
  34. #define IMG_IDX_WAR_FEMALE_CREATE 101
  35. #define IMG_IDX_SOR_MALE_CREATE 102
  36. #define IMG_IDX_SOR_FEMALE_CREATE 103
  37. #define IMG_IDX_TAO_MALE_CREATE 104
  38. #define IMG_IDX_TAO_FEMALE_CREATE 105
  39. #define IDX_IMG_MALE_WAR 150
  40. #define IDX_IMG_MALE_WAR_FIRE 180
  41. #define IDX_IMG_FEMALE_WAR 210
  42. #define IDX_IMG_FEMALE_WAR_FIRE 240
  43. #define IDX_IMG_MALE_TAO 270
  44. #define IDX_IMG_MALE_TAO_FIRE 300
  45. #define IDX_IMG_FEMALE_TAO 330
  46. #define IDX_IMG_FEMALE_TAO_FIRE 360
  47. #define IDX_IMG_MALE_SOR 390
  48. #define IDX_IMG_MALE_SOR_FIRE 420
  49. #define IDX_IMG_FEMALE_SOR 450
  50. #define IDX_IMG_FEMALE_SOR_FIRE 480
  51. // Button Positions
  52. #define CREATE_CHAR_BTN_POS_Y 420
  53. #define CREATE_CHAR_WAR_BTN_POS_X 280
  54. #define CREATE_CHAR_SOR_BTN_POS_X 320
  55. #define CREATE_CHAR_TAO_BTN_POS_X 360
  56. #define CREATE_CHAR_OK_BTN_POS_X 500
  57. #define CREATE_CHAR_OK_BTN_POS_Y 460
  58. #define CREATE_CHAR_OK_BTN_WIDTH  72
  59. #define CREATE_CHAR_OK_BTN_HEIGHT  24
  60. // Position of Select buttons
  61. #define SELECT_CHAR_NEW_BTN_POS_X 442
  62. #define SELECT_CHAR_NEW_BTN_POS_Y 98
  63. #define SELECT_CHAR_ERASE_BTN_POS_X 81
  64. #define SELECT_CHAR_ERASE_BTN_POS_Y 247
  65. #define SELECT_CHAR_START_BTN_POS_X 263
  66. #define SELECT_CHAR_START_BTN_POS_Y 53
  67. #define SELECT_CHAR_EXIT_BTN_POS_X 29
  68. #define SELECT_CHAR_EXIT_BTN_POS_Y 441
  69. #define RETURN_SELECT_NONE 0
  70. #define RETURN_SELECT_NEW_BTN 1
  71. #define RETURN_SELECT_NEW_ERR 2
  72. #define RETURN_SELECT_DEL_BTN 3
  73. #define RETURN_SELECT_DEL_ERR 4
  74. #define RETURN_SELECT_START_BTN 5
  75. #define RETURN_SELECT_START_ERR 6
  76. // Gender
  77. #define SEX_MAN 0
  78. #define SEX_WOMAN 1
  79. // Job counts
  80. #define JOB_KIND 3 // 流诀 辆幅
  81. // Button IDs
  82. #define ID_CREATE_CHR_OK_BTN 0
  83. #define ID_CREATE_CHR_WAR_BTN 1
  84. #define ID_CREATE_CHR_SOR_BTN 2
  85. #define ID_CREATE_CHR_TAO_BTN 3
  86. // Button Width & Height
  87. #define WIDTH_EMPTY_BTN 100
  88. #define HEIGHT_EMPTY_BTN 26
  89. #define WIDTH_JOB_BTN 40
  90. #define HEIGHT_JOB_BTN 40
  91. #pragma pack(1)
  92. typedef struct tagChrInfo
  93. {
  94. BYTE Class;
  95. BYTE Gender;
  96. BYTE Level;
  97. char ChrName[20];
  98. } CHRINFO,* pCHRINFO;
  99. typedef struct tag_TCREATECHR : public tagChrInfo
  100. {
  101. char szID[20];
  102. } _TCREATECHR, *_LPTQUERYCHR;
  103. #pragma pack(8)
  104. typedef struct tagChrRect
  105. {
  106. int nLeft;
  107. int nTop;
  108. int nHeight;
  109. int nWidth;
  110. } CHRRECT,*pCHRRECT;
  111. // Mp3 File names
  112. #define MP3_TOCREATECHAR ".\Sound\ToCreateChr.mp3"
  113. #define MP3_TOSELECTCHAR ".\Sound\ToSelectChr.mp3"
  114. #define MP3_STARTGAME ".\Sound\StartGame.mp3"
  115. #endif // _CHRSEL_DEFINE_H