00001
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef INCL_U7DRAG
00026 #define INCL_U7DRAG 1
00027
00028
00029 #define U7_TARGET_SHAPEID_NAME "U7SHAPEID"
00030 #define U7_TARGET_SHAPEID 137
00031
00032
00033 #define U7_SHAPE_UNK -1
00034 #define U7_SHAPE_SHAPES 0
00035 #define U7_SHAPE_GUMPS 1
00036 #define U7_SHAPE_FONTS 2
00037 #define U7_SHAPE_FACES 3
00038 #define U7_SHAPE_SPRITES 4
00039 #define U7_SHAPE_PAPERDOL 5
00040
00041
00042 int Store_u7_shapeid(unsigned char *data, int file, int shape, int frame);
00043 void Get_u7_shapeid(unsigned char *data, int& file, int& shape, int& frame);
00044
00045
00046 #define U7_TARGET_CHUNKID_NAME "U7CHUNKID"
00047 #define U7_TARGET_CHUNKID 138
00048
00049
00050 int Store_u7_chunkid(unsigned char *data, int cnum);
00051 void Get_u7_chunkid(unsigned char *data, int& cnum);
00052
00053
00054 #define U7_TARGET_COMBOID_NAME "U7COMBOID"
00055 #define U7_TARGET_COMBOID 139
00056
00057
00058 typedef struct U7_combo_data
00059 { int tx, ty, tz, shape, frame; } U7_combo_data;
00060 int Store_u7_comboid(unsigned char *data, int xtiles, int ytiles,
00061 int tiles_right, int tiles_below, int cnt, U7_combo_data *ents);
00062 void Get_u7_comboid(unsigned char *data, int& xtiles, int& ytiles,
00063 int& tiles_right, int& tiles_below, int& cnt, U7_combo_data *& ents);
00064
00065
00066
00067 typedef void (*Move_shape_handler_fun)(int shape, int frame, int x, int y,
00068 int prevx, int prevy, bool show);
00069 typedef void (*Move_combo_handler_fun)(int xtiles, int ytiles, int tiles_right,
00070 int tiles_below, int x, int y, int prevx, int prevy, bool show);
00071 typedef void (*Drop_shape_handler_fun)(int shape, int frame, int x, int y,
00072 void *data);
00073 typedef void (*Drop_chunk_handler_fun)(int chunk, int x, int y, void *data);
00074 typedef void (*Drop_combo_handler_fun)(int cnt, struct U7_combo_data *combo,
00075 int x, int y, void *data);
00076
00077
00078
00079 #endif
00080