Added OTHER_RECT struct
Unifies the weird not-RECTs
This commit is contained in:
parent
bfc255478c
commit
f7a8a260a4
4 changed files with 19 additions and 42 deletions
18
src/Bullet.h
18
src/Bullet.h
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#include "CommonDefines.h"
|
||||||
|
|
||||||
#define BULLET_MAX 0x40
|
#define BULLET_MAX 0x40
|
||||||
|
|
||||||
typedef struct BULLET
|
typedef struct BULLET
|
||||||
|
@ -31,13 +33,7 @@ typedef struct BULLET
|
||||||
int enemyYL;
|
int enemyYL;
|
||||||
int blockXL;
|
int blockXL;
|
||||||
int blockYL;
|
int blockYL;
|
||||||
struct
|
OTHER_RECT view;
|
||||||
{
|
|
||||||
int front;
|
|
||||||
int top;
|
|
||||||
int back;
|
|
||||||
int bottom;
|
|
||||||
} view;
|
|
||||||
} BULLET;
|
} BULLET;
|
||||||
|
|
||||||
typedef struct BULLET_TABLE
|
typedef struct BULLET_TABLE
|
||||||
|
@ -50,13 +46,7 @@ typedef struct BULLET_TABLE
|
||||||
int enemyYL;
|
int enemyYL;
|
||||||
int blockXL;
|
int blockXL;
|
||||||
int blockYL;
|
int blockYL;
|
||||||
struct
|
OTHER_RECT view;
|
||||||
{
|
|
||||||
int front;
|
|
||||||
int top;
|
|
||||||
int back;
|
|
||||||
int bottom;
|
|
||||||
} view;
|
|
||||||
} BULLET_TABLE;
|
} BULLET_TABLE;
|
||||||
|
|
||||||
extern BULLET gBul[BULLET_MAX];
|
extern BULLET gBul[BULLET_MAX];
|
||||||
|
|
|
@ -20,3 +20,11 @@ enum Direction
|
||||||
DIR_DOWN = 3,
|
DIR_DOWN = 3,
|
||||||
DIR_AUTO = 4
|
DIR_AUTO = 4
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct OTHER_RECT // The original name for this struct is unknown
|
||||||
|
{
|
||||||
|
int front;
|
||||||
|
int top;
|
||||||
|
int back;
|
||||||
|
int bottom;
|
||||||
|
};
|
||||||
|
|
18
src/MyChar.h
18
src/MyChar.h
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#include "CommonDefines.h"
|
||||||
|
|
||||||
// TODO - When I add bitmask constants for gMC.flags...
|
// TODO - When I add bitmask constants for gMC.flags...
|
||||||
// 0x100 is a 'player is underwater' flag
|
// 0x100 is a 'player is underwater' flag
|
||||||
|
|
||||||
|
@ -38,20 +40,8 @@ typedef struct MYCHAR
|
||||||
int ym;
|
int ym;
|
||||||
int ani_wait;
|
int ani_wait;
|
||||||
int ani_no;
|
int ani_no;
|
||||||
struct
|
OTHER_RECT hit;
|
||||||
{
|
OTHER_RECT view;
|
||||||
int front;
|
|
||||||
int top;
|
|
||||||
int back;
|
|
||||||
int bottom;
|
|
||||||
} hit;
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
int front;
|
|
||||||
int top;
|
|
||||||
int back;
|
|
||||||
int bottom;
|
|
||||||
} view;
|
|
||||||
RECT rect;
|
RECT rect;
|
||||||
RECT rect_arms;
|
RECT rect_arms;
|
||||||
int level;
|
int level;
|
||||||
|
|
17
src/NpChar.h
17
src/NpChar.h
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
|
#include "CommonDefines.h"
|
||||||
#include "Draw.h"
|
#include "Draw.h"
|
||||||
|
|
||||||
#define NPC_MAX 0x200
|
#define NPC_MAX 0x200
|
||||||
|
@ -81,20 +82,8 @@ typedef struct NPCHAR
|
||||||
int count2;
|
int count2;
|
||||||
int act_no;
|
int act_no;
|
||||||
int act_wait;
|
int act_wait;
|
||||||
struct
|
OTHER_RECT hit;
|
||||||
{
|
OTHER_RECT view;
|
||||||
int front;
|
|
||||||
int top;
|
|
||||||
int back;
|
|
||||||
int bottom;
|
|
||||||
} hit;
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
int front;
|
|
||||||
int top;
|
|
||||||
int back;
|
|
||||||
int bottom;
|
|
||||||
} view;
|
|
||||||
unsigned char shock;
|
unsigned char shock;
|
||||||
int damage_view;
|
int damage_view;
|
||||||
int damage;
|
int damage;
|
||||||
|
|
Loading…
Add table
Reference in a new issue