1 #ifndef __NIGHT_H__ 2 #define __NIGHT_H__ 3 4 #include "config.h" 5 #include <glib.h> 6 #include "portab.h" 7 #include "graphics.h" 8 #include "surface.h" 9 #include "ags.h" 10 #include "sprite.h" 11 12 13 14 // �����������Ȥμ��� 15 #define KEYWAIT_NONE 0 16 #define KEYWAIT_SIMPLE 1 17 #define KEYWAIT_SPRITE 2 18 #define KEYWAIT_MESSAGE 3 19 #define KEYWAIT_SELECT 4 20 #define KEYWAIT_BACKLOG 5 21 22 #define MSGBUFMAX 512 23 24 #if 0 25 // ʸ�����ִ��� 26 typedef struct { 27 char *src; // �֤�������ʸ���� 28 char *dst; // �֤�����ʸ���� 29 } strexchange_t; 30 #endif 31 32 struct _night { 33 // scenario 34 int Month; 35 int Day; 36 int DayOfWeek; 37 38 // keyevent 39 int waittype; 40 int waitskiplv; 41 int waitkey; 42 43 44 // graph 45 // cginfo_t *cg[CGMAX]; 46 47 MyRectangle updaterect; 48 49 int fonttype; 50 int fontsize; 51 52 sprite_t *sp[SPRITEMAX]; 53 54 int msgplace; 55 int msgframe; 56 57 // msg 58 char msgbuf[MSGBUFMAX]; 59 boolean zhiding; 60 struct { 61 void (* cbmove)(agsevent_t *); 62 void (* cbrelease)(agsevent_t *); 63 } msg; 64 //GSList *strreplace; 65 66 // sel 67 int selmode; 68 struct { 69 void (* cbmove)(agsevent_t *); 70 void (* cbrelease)(agsevent_t *); 71 } sel; 72 }; 73 74 typedef struct _night night_t; 75 76 #define night nightprv 77 extern night_t night; 78 79 80 #endif /* __NIGHT_H__ */ 81