1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
#ifndef __NIGHT_H__
#define __NIGHT_H__
#include "config.h"
#include "portab.h"
#include "ags.h"
#include "sprite.h"
// キーウェイトの種類
#define KEYWAIT_NONE 0
#define KEYWAIT_SIMPLE 1
#define KEYWAIT_SPRITE 2
#define KEYWAIT_MESSAGE 3
#define KEYWAIT_SELECT 4
#define KEYWAIT_BACKLOG 5
#define MSGBUFMAX 512
#if 0
// 文字列置換用
typedef struct {
char *src; // 置き換え元文字列
char *dst; // 置き換え文字列
} strexchange_t;
#endif
struct _night {
// scenario
int Month;
int Day;
int DayOfWeek;
// keyevent
int waittype;
int waitskiplv;
int waitkey;
// graph
// cginfo_t *cg[CGMAX];
SDL_Rect updaterect;
FontType fonttype;
int fontsize;
sprite_t *sp[SPRITEMAX];
int msgplace;
int msgframe;
// msg
char msgbuf[MSGBUFMAX];
bool zhiding;
struct {
void (* cbmove)(agsevent_t *);
void (* cbrelease)(agsevent_t *);
} msg;
//SList *strreplace;
// sel
int selmode;
struct {
void (* cbmove)(agsevent_t *);
void (* cbrelease)(agsevent_t *);
} sel;
};
typedef struct _night night_t;
#define night nightprv
extern night_t night;
#endif /* __NIGHT_H__ */
|