cave-story-solaris/src/Bullet.h
Clownacy 44f142d8e7 Big ugly rework of WindowsWrapper.h
Okay so WindowsWrapper.h now just includes Windows.h if it wants
non-portability. This meant I had to split the custom RECT struct
back to the original RECT and unknown nameless struct (one uses
left/right, while the other uses front/back).
2019-06-20 20:06:55 +01:00

71 lines
1,004 B
C

#pragma once
#include "WindowsWrapper.h"
struct BULLET
{
int flag;
int code_bullet;
int bbits;
int cond;
int x;
int y;
int xm;
int ym;
int tgt_x;
int tgt_y;
int act_no;
int act_wait;
int ani_wait;
int ani_no;
unsigned char direct;
RECT rect;
int count1;
int count2;
int life_count;
int damage;
int life;
int enemyXL;
int enemyYL;
int blockXL;
int blockYL;
struct
{
int front;
int top;
int back;
int bottom;
} view;
};
struct BULLET_TABLE
{
signed char damage;
signed char life;
int life_count;
int bbits;
int enemyXL;
int enemyYL;
int blockXL;
int blockYL;
struct
{
int front;
int top;
int back;
int bottom;
} view;
};
#define BULLET_MAX 0x40
extern BULLET gBul[BULLET_MAX];
void InitBullet();
int CountArmsBullet(int arms_code);
int CountBulletNum(int bullet_code);
void DeleteBullet(int code);
void ClearBullet();
void PutBullet(int fx, int fy);
void SetBullet(int no, int x, int y, int dir);
void ActBullet();
BOOL IsActiveSomeBullet(void);