
This commit changes which variables are static: the Mac (and presumably the Linux) debug data tells you what variables are static, by prefixing their names with double_underscores. The variable names themselves also hint at this: global variables are prefixed with 'g', and use upper-camelcase, while static variables use whatever_you_call_this.
72 lines
1 KiB
C
72 lines
1 KiB
C
#pragma once
|
|
|
|
#include "WindowsWrapper.h"
|
|
|
|
#define BULLET_MAX 0x40
|
|
|
|
typedef 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;
|
|
} BULLET;
|
|
|
|
typedef 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;
|
|
} BULLET_TABLE;
|
|
|
|
extern BULLET gBul[BULLET_MAX];
|
|
|
|
void InitBullet(void);
|
|
int CountArmsBullet(int arms_code);
|
|
int CountBulletNum(int bullet_code);
|
|
void DeleteBullet(int code);
|
|
void ClearBullet(void);
|
|
void PutBullet(int fx, int fy);
|
|
void SetBullet(int no, int x, int y, int dir);
|
|
void ActBullet(void);
|
|
BOOL IsActiveSomeBullet(void);
|