shithub: cstory

ref: c99d38274d1b82164371a87a52890e9c9a297a2e
dir: /src/Caret.h/

View raw version
#pragma once

#include "WindowsWrapper.h"

#define CARET_MAX 0x40

struct CARET_TABLE
{
	int view_left;
	int view_top;
};

struct CARET
{
	int cond;
	int code;
	int direct;
	int x;
	int y;
	int xm;
	int ym;
	int act_no;
	int act_wait;
	int ani_no;
	int ani_wait;
	int view_left;
	int view_top;
	RECT rect;
};

extern CARET gCrt[CARET_MAX];
extern CARET_TABLE gCaretTable[18];

void InitCaret(void);
void ActCaret(void);
void PutCaret(int fx, int fy);
void SetCaret(int x, int y, int code, int dir);