stoneage8.5/石器时代8.5客户端最新源代码/石器源码/systeminc/menu.h

973 lines
27 KiB
C
Raw Normal View History

2020-06-23 15:27:59 +08:00
/************************/
/* menu.h */
/************************/
#ifndef _MENU_H_
#define _MENU_H_
#include "pc.h"
#include "chat.h"
#ifdef _TELLCHANNEL //ROG ADD <20><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>
#include "netproc.h"
#endif
#ifdef _NEW_SYSTEM_MENU
#define MENU_SYSTEM_0 28
#else
#define MENU_SYSTEM_0 9
#endif
#define MENU_MAP_0 3
#define MAIL_STR_LEN 140 // ???<3F><>??<3F><>?
#define MAIL_DATE_STR_LEN 20 // <20>T<EFBFBD><54>?<3F><>???<3F><>?
#define MAIL_MAX_HISTORY 20 // ?????
#define MAX_CHAT_REGISTY_STR 8 // ?????<3F><>?<3F>K???
// ??????????<3F>B<EFBFBD>l
typedef struct{
int x, y; // <20><><EFBFBD><EFBFBD>?<3F><>
int defX, defY; // ??????<3F><>
int bmpNo; // ??<3F>k?
int dispPrio; // <20><><EFBFBD><EFBFBD>?<3F>I
BOOL dragFlag; // ???????
BOOL mixFlag; // ?<3F><>???
}ITEM_BUFFER;
// ???????<3F>B<EFBFBD>l
typedef struct{
char str[ MAIL_MAX_HISTORY ][ MAIL_STR_LEN + 1 ]; // ??????<3F><>??
char dateStr[ MAIL_MAX_HISTORY ][ MAIL_DATE_STR_LEN + 1 ]; // <20>T<EFBFBD><54>?<3F><>??
int noReadFlag[ MAIL_MAX_HISTORY ]; // <20>t<EFBFBD><74>????<3F><><EFBFBD><EFBFBD>??????????<3F>k??
int petLevel[ MAIL_MAX_HISTORY ]; // <20><><EFBFBD><EFBFBD>??????????<3F>k?
char petName[ MAIL_MAX_HISTORY ][ PET_NAME_LEN + 1 ]; // ????<3F><><EFBFBD>q
int itemGraNo[ MAIL_MAX_HISTORY ]; // <20><>?????????????<3F>k?
int newHistoryNo; // ?<3F><>???<3F>k?
}MAIL_HISTORY;
// ?????<3F><><EFBFBD><EFBFBD>??????<3F><>?<3F>B<EFBFBD>l
typedef struct{
int sizeX,sizeY; // ???
int titleNo; // ????<3F>k?
int titleX, titleY; // ??????<3F><>
int mx, my; // ?<3F><>?<3F><>
int nowX, nowY; // ?<3F><>?????
int cnt; // ?<3F><>?<3F><>
int wndType; // ??????<3F><>?
int hitFlag; // ???<3F>R<EFBFBD>e??<3F><>?
int yesDispNo; // ??????<3F>R<EFBFBD>e<EFBFBD>k?
int noDispNo; // ???????<3F>R<EFBFBD>e<EFBFBD>k?
int boxDispPrio; // ?<3F><>?????<3F><><EFBFBD><EFBFBD>?<3F>I??
int yesNoResult; // YesNo?????<3F><>??? ?<3F><>???
}WINDOW_DISP;
#if defined(__ALBUM_47)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND_38 521
#define MAX_PET_KIND_39 540
#define MAX_PET_KIND_40 542
#define MAX_PET_KIND_41 543
#define MAX_PET_KIND_42 545
#define MAX_PET_KIND_43 549
#define MAX_PET_KIND_44 551
#define MAX_PET_KIND_45 553
#define MAX_PET_KIND_46 555
//#define MAX_PET_KIND 557
//#define MAX_PET_KIND 558 // Robin fix
//#define MAX_PET_KIND 564 // Robin fix
//#define MAX_PET_KIND 566 // Robin fix
#define MAX_PET_KIND 570 // Robin fix
#elif defined(__ALBUM_46)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND_38 521
#define MAX_PET_KIND_39 540
#define MAX_PET_KIND_40 542
#define MAX_PET_KIND_41 543
#define MAX_PET_KIND_42 545
#define MAX_PET_KIND_43 549
#define MAX_PET_KIND_44 551
#define MAX_PET_KIND_45 553
#define MAX_PET_KIND 555
#elif defined(__ALBUM_45)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND_38 521
#define MAX_PET_KIND_39 540
#define MAX_PET_KIND_40 542
#define MAX_PET_KIND_41 543
#define MAX_PET_KIND_42 545
#define MAX_PET_KIND_43 549
#define MAX_PET_KIND_44 551
#define MAX_PET_KIND 553
#elif defined(__ALBUM_44)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND_38 521
#define MAX_PET_KIND_39 540
#define MAX_PET_KIND_40 542
#define MAX_PET_KIND_41 543
#define MAX_PET_KIND_42 545
#define MAX_PET_KIND_43 549
#define MAX_PET_KIND 551
#elif defined(__ALBUM_43)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND_38 521
#define MAX_PET_KIND_39 540
#define MAX_PET_KIND_40 542
#define MAX_PET_KIND_41 543
#define MAX_PET_KIND_42 545
#define MAX_PET_KIND 549
#elif defined(__ALBUM_42)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND_38 521
#define MAX_PET_KIND_39 540
#define MAX_PET_KIND_40 542
#define MAX_PET_KIND_41 543
#define MAX_PET_KIND 545
#elif defined(__ALBUM_41)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND_38 521
#define MAX_PET_KIND_39 540
#define MAX_PET_KIND_40 542
#define MAX_PET_KIND 543
#elif defined(__ALBUM_40)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND_38 521
#define MAX_PET_KIND_39 540
#define MAX_PET_KIND 542
#elif defined(__ALBUM_39)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND_38 521
#define MAX_PET_KIND 540
#elif defined(__ALBUM_38)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND_37 498
#define MAX_PET_KIND 521
#elif defined(__ALBUM_37)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND_36 483
#define MAX_PET_KIND 496
#elif defined(__ALBUM_36)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND_35 462
#define MAX_PET_KIND 483
#elif defined(__ALBUM_35)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND_34 436
#define MAX_PET_KIND 462 //460
#elif defined(__ALBUM_34)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND_33 432
#define MAX_PET_KIND 436
#elif defined(__ALBUM_33)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND_32 431
#define MAX_PET_KIND 432
#elif defined(__ALBUM_32)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND_15 357
#define MAX_PET_KIND_16 364
#define MAX_PET_KIND_17 389
#define MAX_PET_KIND_18 391
#define MAX_PET_KIND_19 395
#define MAX_PET_KIND_20 398
#define MAX_PET_KIND_21 401
#define MAX_PET_KIND_22 405
#define MAX_PET_KIND_23 407
#define MAX_PET_KIND_24 414
#define MAX_PET_KIND_25 415
#define MAX_PET_KIND_26 420
#define MAX_PET_KIND_27 422
#define MAX_PET_KIND_28 423
#define MAX_PET_KIND_29 424
#define MAX_PET_KIND_30 425
#define MAX_PET_KIND_31 429
#define MAX_PET_KIND 431
#elif defined(__ALBUM_15)
#define MAX_PET_KIND_1 124
#define MAX_PET_KIND_4 224
#define MAX_PET_KIND_5 228
#define MAX_PET_KIND_6 229
#define MAX_PET_KIND_7 230
#define MAX_PET_KIND_8 237
#define MAX_PET_KIND_9 240
#define MAX_PET_KIND_10 297
#define MAX_PET_KIND_11 301
#define MAX_PET_KIND_12 305
#define MAX_PET_KIND_13 306
#define MAX_PET_KIND_14 353
#define MAX_PET_KIND 357
#else
#define MAX_PET_KIND 10000 // ????<3F><>?
#define MAX_PET_TBL 181 // ???????????
#endif
#define MAX_PET_PAGE_SIZE 8 // ?????<3F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>????????
#ifdef _PET_ITEM
#define MAX_PET_SPECIES 42 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#endif
// ????????????<3F>h<EFBFBD>k?
enum{
ANIM_DISP_PET, // ???<3F><><EFBFBD><EFBFBD>
ANIM_DISP_PET_SEND, // ???????<3F><>???<3F><>???<3F>h
ANIM_DISP_PET_RECIEVE, // ??????<3F><><EFBFBD><EFBFBD>???<3F><><EFBFBD><EFBFBD>??<3F>h
ANIM_DISP_PET_MAIN, // ?????<3F>h<EFBFBD>k<EFBFBD><6B>??
ANIM_DISP_PET_WALK, // <20><>?
ANIM_DISP_PET_STAND, // <20>r?
ANIM_DISP_PET_ATTACK, // ??
ANIM_DISP_PET_GUARD, // ???
ANIM_DISP_PET_DAMAGE, // ????
ANIM_DISP_PET_DEAD, // ?<3F><>
ANIM_DISP_PET_ITEM, // ???????<3F><><EFBFBD><EFBFBD>
ANIM_DISP_LETTER_MOVE, // <20><>??<3F>h
ANIM_DISP_LETTER, // <20><>????????
ANIM_DISP_MIX_PET_INIT, // ?<3F><>??????
ANIM_DISP_MIX_PET_MOVE, // ?<3F><>???<3F><>?????<3F>h
ANIM_DISP_MIX_PET_MOJI, // ?<3F><>????????????<3F><>??
#ifdef _THEATER
ANIM_DISP_THEATER_NPC, // <20>糡NPC<50><43>ʾ
#endif
#ifdef _AniCrossFrame // Syu ADD <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ι<EFBFBD><CEB9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ANIM_DISP_CROSSFRAME = 18,
#endif
ANIM_DISP_MIX_PET_END, // ?<3F><>????<3F><>??
};
// ?????<3F>B<EFBFBD>l
typedef struct{
char name[ PET_NAME_LEN + 1 ]; // ????<3F><><EFBFBD>q
char freeName[ PET_NAME_LEN + 1 ]; // ??????<3F><>
int faceGraNo; // ???????????<3F>k?
int level; // ???
int maxHp; // ?<3F><>??
int str; // ???
int quick; // <20><>??
int def; // <20>\??
int earth, water, fire, wind; // <20><>???
int flag; // <20>K??????<3F><>?????? ?<3F><>?? ?<3F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>???<3F><>?? ?<3F><><EFBFBD>K??? ?
}PET_ALBUM;
// ????????????????<3F>B<EFBFBD>l
typedef struct{
int albumNo; // ?????????<3F>k?
char name[ PET_NAME_LEN + 1 ]; // ????<3F><><EFBFBD>q
int faceGraNo; // ???????????<3F>k?
}PET_ALBUM_TBL;
// ????????
extern BOOL TaskBarFlag;
// ??????
extern unsigned int MenuToggleFlag;
// ?????????
extern ITEM_BUFFER ItemBuffer[];
// ????????????
extern int StatusUpPoint;
// <20>ӡP???<3F><>???????<3F><>???
extern BOOL BattlePetReceiveFlag;
#ifdef _STANDBYPET
extern BOOL StandbyPetSendFlag;
#endif
// ???<3F><><EFBFBD><EFBFBD>?????<3F>k?
extern int BattlePetReceivePetNo;
// ??????<3F><>??
extern MAIL_HISTORY MailHistory[];
// ?????<3F><>?<3F>K??<3F>V??????
extern STR_BUFFER chatRegistryStr[];
// ????<3F>V?<3F><>??
extern STR_BUFFER MailStr;
// ??????????????
extern ACTION *pActMenuWnd3;
// ?????<3F><>?<3F>K??<3F>V??????
extern STR_BUFFER chatRegistryStr[];
// ??????<3F><>??<3F><>??
extern STR_BUFFER shougouChange;
#ifdef _MONEYINPUT //Syu ADD <20>ֶ<EFBFBD><D6B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǯ<EFBFBD><C7AE>
extern STR_BUFFER MymoneyBuffer;
#endif
#ifdef _ITEM_JIGSAW
extern int JigsawIdx;
void SetJigsaw(int img, char *str);
#endif
typedef enum{
MAIL_WND_VIEW,
MAIL_WND_SELECT,
MAIL_WND_SEND,
MAIL_WND_PET_SEND,
MAIL_WND_ITEM,
MAIL_WND_HISTORY,
}MAIL_WND_TYPE;
extern STR_BUFFER TradeBuffer;
// ????<3F><><EFBFBD>q<EFBFBD><71>??<3F><>??
extern STR_BUFFER petNameChange;
// Terry add 2002/01/04
#ifdef __EDEN_AUCTION
extern STR_BUFFER AuctionStr; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,50<35><30><EFBFBD><EFBFBD>
extern STR_BUFFER AuctionMoney; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǯ<EFBFBD><C7AE><EFBFBD><EFBFBD>һ<EFBFBD><D2BB><EFBFBD><EFBFBD>
#endif
// Terry end
// <20><>???????<3F><><EFBFBD><EFBFBD>?????????<3F>k?
extern int petStatusNo;
extern int mailHistoryWndPageNo; // ???????????<3F>k?
extern int mailHistoryWndSelectNo; // <20>k<EFBFBD><6B>?????<3F><><EFBFBD><EFBFBD><EFBFBD>k?
//extern int mailReceivePetGraNo; // ??????<3F><><EFBFBD><EFBFBD>????????????<3F>k?
// <20>P<EFBFBD>f??<3F><><EFBFBD>h????????<3F><><EFBFBD><EFBFBD>?????
extern int MapWmdFlagBak;
// <20>P<EFBFBD>f????????<3F><>??????????
#define RESULT_WND_CLOSE_TIME 300 // ?<3F><>
// <20>P<EFBFBD>f????????<3F><>?????????
extern int ResultWndTimer;
// ?<3F><><EFBFBD><EFBFBD>?????
extern BOOL ItemMixRecvFlag;
// ???????
extern int MouseCursorFlag;
#ifdef _TRADETALKWND // (<28><><EFBFBD>ɿ<EFBFBD>) Syu ADD <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD>
void TradeTalk ( char *msg ) ;
#endif
void InitItem( int x, int y , BOOL bPetItemFlag);
// ?????????? *******************************************************/
void InitMenu( void );
// ??????????? *******************************************************/
void InitMenu2( void );
// ????<3F><>??????? *******************************************************/
BOOL CheckMenuFlag( void );
// ?????? ***************************************************************/
void MenuProc( void );
// ?????<3F><><EFBFBD><EFBFBD>????<3F><> ***************************************************/
ACTION *MakeWindowDisp( int x, int y, int sizeX, int sizeY, int titleNo, int wndType
#ifdef _NEW_RESOMODE //800 600ģʽ
, BOOL fixType = TRUE
#endif
);
// ???<3F>R<EFBFBD>e?????<3F><> ******************************************************/
BOOL MakeHitBox( int x1, int y1, int x2, int y2, int dispPrio );
// ???????<3F><><EFBFBD>V ****************************************************************/
BOOL SaveMailHistory( int no );
// ???????<3F><>??? ****************************************************************/
BOOL LoadMailHistory( void );
// ???<3F>t<EFBFBD><74>???? ****************************************************************/
BOOL CheckMailNoReadFlag( void );
// ??????????<3F>^<5E><><EFBFBD>M?? **************************************************/
void InitOhtaParam( void );
// <20><>?????????<3F><> **********************************************************/
void DeathLetterAction( void );
// ?????<3F>K?<3F><>??<3F><><EFBFBD>V ****************************************************************/
BOOL SaveChatRegistyStr( void );
// ?????<3F>K?<3F><>??<3F><>??? ****************************************************************/
BOOL LoadChatRegistyStr( void );
// <20><>?????????? *****************************************************/
void CenteringStr( char *inStr, char *outStr, int max );
// <20><>????????? ****************************************************************/
void CheckNewPet( int sprNo );
// <20>P<EFBFBD>f??<3F><>???????? **********************************************************/
void CheckBattleNewPet( void );
// ?????<3F><>??? ****************************************************************/
BOOL LoadAlbum( void );
// ?????<3F><><EFBFBD>V ****************************************************************/
BOOL SaveAlbum( int no );
ACTION *MakeAnimDisp( int x, int y, int sprNo, int mode );
// Robin 04/16 trade
void tradeInit( void );
void BankmanInit( char* data );
void BankmanWN( void );
void closeBankman( void );
#endif
#ifdef _TELLCHANNEL //ROG ADD <20><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>
void InitSelectChar( char *msg, BOOL endFlag);
void SelectChar( void );
void DeathTellChannel( void );
extern int TalkMode;
extern char secretName[32];
#endif
#ifdef _FRIENDCHANNEL //ROG ADD <20><><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>
#define MAX_ROOM_NUM 50
extern bool setRoomFlag;
extern bool secretFlag; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
extern int selChar;
extern ACTION *pChtChanlWnd; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӵ<EFBFBD>
extern ACTION *pSelChanlWnd;
void SelectChatRoom( void );
void InitSelChatRoom(char *msg);
void InitCreateChatRoom(char *msg);
void ChatRoomWnd(void);
void initAssentWnd(char *data);
void AssentWnd(void);
extern STR_BUFFER chatRoomName; //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
extern ACTION *pSetRoomWnd;
void setRoomName(void); //<2F><EFBFBD><E8B6A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#endif
/////////////////////////////////////////
#ifdef _TIMEBAR_FUNCTION
int SetTimeBarPos(int timBarIdent, int CurPos);
int SetTimeBar(char *title, int range);
#endif
#ifdef _STANDBYPET
void send_StandBy_Pet( void);
#endif
#ifdef _NPC_ITEMUP
void ShowItemup(int value, int x, int y);
#endif
#ifdef _NPC_ITEMUP
void ShowCounttime(int value, int x, int y);
#endif
#ifdef _NEW_SPEED_
extern BOOL GameSpeedFlag;
#endif