mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-08-19 05:02:17 -04:00
Implement and link m_cockroach, m_police_box
This commit is contained in:
@@ -9,6 +9,37 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum field_type {
|
||||
mFI_FIELDTYPE_FG,
|
||||
mFI_FIELDTYPE_1,
|
||||
mFI_FIELDTYPE_2,
|
||||
mFI_FIELDTYPE_ROOM,
|
||||
mFI_FIELDTYPE_NPC_ROOM,
|
||||
mFI_FIELDTYPE_DEMO,
|
||||
mFI_FIELDTYPE_PLAYER_ROOM,
|
||||
|
||||
mFI_FIELDTYPE_NUM
|
||||
};
|
||||
|
||||
#define mFI_TO_FIELD_ID(type, index) ((type << 12) | index)
|
||||
#define mFI_GET_TYPE (field_id) (field_id & 0xF000)
|
||||
|
||||
enum field_room {
|
||||
/* TODO: others */
|
||||
|
||||
mFI_FIELD_PLAYER0_ROOM = mFI_TO_FIELD_ID(mFI_FIELDTYPE_PLAYER_ROOM, 0),
|
||||
mFI_FIELD_PLAYER1_ROOM,
|
||||
mFI_FIELD_PLAYER2_ROOM,
|
||||
mFI_FIELD_PLAYER3_ROOM,
|
||||
|
||||
/* TODO: others */
|
||||
};
|
||||
|
||||
#define mFI_GET_PLAYER_ROOM_NO(field_id) (((field_id)-mFI_FIELD_PLAYER0_ROOM) & 3)
|
||||
#define mFI_IS_PLAYER_ROOM(field_id) \
|
||||
((field_id) == mFI_FIELD_PLAYER0_ROOM || (field_id) == mFI_FIELD_PLAYER1_ROOM || \
|
||||
(field_id) == mFI_FIELD_PLAYER2_ROOM || (field_id) == mFI_FIELD_PLAYER3_ROOM)
|
||||
|
||||
/* Not sure about these other than the island one */
|
||||
enum {
|
||||
mFI_CLIMATE_0,
|
||||
@@ -20,7 +51,10 @@ enum {
|
||||
mFI_CLIMATE_NUM
|
||||
};
|
||||
|
||||
extern mActor_name_t mFI_GetFieldId();
|
||||
extern int mFI_GetClimate();
|
||||
extern mActor_name_t* mFI_BkNumtoUtFGTop(int block_x, int block_z);
|
||||
extern void mFI_ClearDeposit(int block_x, int block_z);
|
||||
|
||||
extern void mFI_PrintNowBGNum(gfxprint_t* gfxprint);
|
||||
extern void mFI_PrintFgAttr(gfxprint_t* gfxprint);
|
||||
|
||||
Reference in New Issue
Block a user