Caret documentation/cleanup
This commit is contained in:
parent
02295489d2
commit
8adf593403
2 changed files with 44 additions and 46 deletions
|
@ -8,27 +8,54 @@
|
|||
#include "Game.h"
|
||||
#include "Triangle.h"
|
||||
|
||||
#define CARET_MAX 0x40
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
struct CARET_TABLE
|
||||
{
|
||||
int view_left;
|
||||
int view_top;
|
||||
};
|
||||
|
||||
CARET gCrt[CARET_MAX];
|
||||
|
||||
// Sprite offsets
|
||||
CARET_TABLE gCaretTable[18] = {
|
||||
{0, 0},
|
||||
{0x800, 0x800},
|
||||
{0x1000, 0x1000},
|
||||
{0x1000, 0x1000},
|
||||
{0x1000, 0x1000},
|
||||
{0x800, 0x800},
|
||||
{0x1000, 0x1000},
|
||||
{0x800, 0x800},
|
||||
{0x1000, 0x1000},
|
||||
{0x1000, 0x1000},
|
||||
{0x3800, 0x1000},
|
||||
{0x800, 0x800},
|
||||
{0x2000, 0x2000},
|
||||
{0x800, 0x800},
|
||||
{0x2800, 0x2800},
|
||||
{0x800, 0x800},
|
||||
{0x2800, 0x800},
|
||||
{0x6800, 0x800}
|
||||
{ 4 * 0x200, 4 * 0x200},
|
||||
{ 8 * 0x200, 8 * 0x200},
|
||||
{ 8 * 0x200, 8 * 0x200},
|
||||
{ 8 * 0x200, 8 * 0x200},
|
||||
{ 4 * 0x200, 4 * 0x200},
|
||||
{ 8 * 0x200, 8 * 0x200},
|
||||
{ 4 * 0x200, 4 * 0x200},
|
||||
{ 8 * 0x200, 8 * 0x200},
|
||||
{ 8 * 0x200, 8 * 0x200},
|
||||
{28 * 0x200, 8 * 0x200},
|
||||
{ 4 * 0x200, 4 * 0x200},
|
||||
{16 * 0x200, 16 * 0x200},
|
||||
{ 4 * 0x200, 4 * 0x200},
|
||||
{20 * 0x200, 20 * 0x200},
|
||||
{ 4 * 0x200, 4 * 0x200},
|
||||
{20 * 0x200, 4 * 0x200},
|
||||
{52 * 0x200, 4 * 0x200}
|
||||
};
|
||||
|
||||
void InitCaret(void)
|
||||
|
|
29
src/Caret.h
29
src/Caret.h
|
@ -2,35 +2,6 @@
|
|||
|
||||
#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);
|
||||
|
|
Loading…
Add table
Reference in a new issue