mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-08-22 05:49:04 -04:00
Match ac_my_room_move.c_inc
This commit is contained in:
@@ -15,6 +15,8 @@ typedef struct furniture_actor_s FTR_ACTOR;
|
||||
#define aFTR_KEEP_ITEM_COUNT (mCoBG_LAYER_NUM - 1)
|
||||
#define aFTR_CHECK_INTERACTION(inter, type) (((inter) >> (type)) & 1)
|
||||
|
||||
#define aFTR_EDGE_COL_NUM 4
|
||||
|
||||
enum {
|
||||
aFTR_STATE_STOP,
|
||||
aFTR_STATE_WAIT_PUSH,
|
||||
@@ -110,6 +112,7 @@ enum {
|
||||
aFTR_CHECK_INTERACTION((profile)->interaction_type, aFTR_INTERACTION_TYPE_CLOSET) || \
|
||||
aFTR_CHECK_INTERACTION((profile)->interaction_type, aFTR_INTERACTION_TYPE_MUSIC_DISK))
|
||||
enum {
|
||||
aFTR_CONTACT_ACTION_NONE = 0,
|
||||
aFTR_CONTACT_ACTION_CHAIR_UNIDIRECTIONAL = 1, // only can sit from the front
|
||||
aFTR_CONTACT_ACTION_CHAIR_MULTIDIRECTIONAL = 2, // can sit from any direction
|
||||
aFTR_CONTACT_ACTION_CHAIR_SOFA = 4, // cam sit anywhere from the front
|
||||
@@ -195,7 +198,7 @@ struct furniture_actor_s {
|
||||
u8 shape_type; /* current size & shape (rotation) */
|
||||
u8 original_shape_type; /* original size & shape (rotation) */
|
||||
xyz_t base_position;
|
||||
aFTR_collision_c edge_collision[4]; /* collision for each edge */
|
||||
aFTR_collision_c edge_collision[aFTR_EDGE_COL_NUM]; /* collision for each edge */
|
||||
s16 collision_direction;
|
||||
int move_bg_idx;
|
||||
mCoBG_bg_regist_c bg_register;
|
||||
|
||||
+18
-8
@@ -12,6 +12,12 @@ extern "C" {
|
||||
|
||||
#define aMR_MAX_UNIT 8
|
||||
#define aMR_HANIWA_ON_TABLE_NUM 14
|
||||
#define aMR_GOKI_MAX 3
|
||||
#define aMR_FIT_FTR_MAX 4
|
||||
#define aMR_RSV_FTR_NUM 3
|
||||
|
||||
#define aMR_NO_FTR_ID 200
|
||||
#define aMR_NO_FTR_ID2 201
|
||||
|
||||
typedef struct my_room_actor_s MY_ROOM_ACTOR;
|
||||
|
||||
@@ -51,13 +57,13 @@ enum {
|
||||
|
||||
typedef struct my_room_contact_s {
|
||||
int contact_flag;
|
||||
int ftr_no;
|
||||
int ftrID;
|
||||
int direction;
|
||||
int contact_side;
|
||||
f32 contact_percent;
|
||||
f32* normal_p;
|
||||
f32 contact_edge0[2];
|
||||
f32 contact_edge1[2];
|
||||
f32 contact_edge_start[2];
|
||||
f32 contact_edge_end[2];
|
||||
int contact_direction;
|
||||
} aMR_contact_info_c;
|
||||
|
||||
@@ -138,11 +144,11 @@ typedef struct room_leaf_s {
|
||||
|
||||
typedef struct room_pickup_s {
|
||||
int pickup_flag;
|
||||
int ftr_no;
|
||||
int ftrID;
|
||||
xyz_t leaf_pos;
|
||||
int picking_up_flag;
|
||||
s16 layer;
|
||||
u16 dust_effect_timer;
|
||||
s16 dust_effect_timer;
|
||||
u16 icon;
|
||||
} aMR_pickup_info_c;
|
||||
|
||||
@@ -198,6 +204,12 @@ typedef struct room_fit_ftr_s {
|
||||
xyz_t ut_pos;
|
||||
} aMR_fit_ftr_c;
|
||||
|
||||
typedef struct room_parent_ftr_s {
|
||||
int ftrID;
|
||||
s16 angle_y;
|
||||
aMR_fit_ftr_c fit_ftr_table[aMR_FIT_FTR_MAX];
|
||||
} aMR_parent_ftr_c;
|
||||
|
||||
struct my_room_actor_s {
|
||||
ACTOR actor_class;
|
||||
s16 state;
|
||||
@@ -256,9 +268,7 @@ struct my_room_actor_s {
|
||||
int _4F4;
|
||||
int room_msg_flag;
|
||||
int haniwa_step_idx;
|
||||
int parent_ftrID;
|
||||
s16 parent_angleY;
|
||||
aMR_fit_ftr_c fit_ftr_table[4];
|
||||
aMR_parent_ftr_c parent_ftr;
|
||||
u32 music_box[2];
|
||||
int scene;
|
||||
int _5A4;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "types.h"
|
||||
#include "m_actor.h"
|
||||
#include "ac_shop_goods_h.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -15,4 +16,3 @@ extern ACTOR_PROFILE Shop_Goods_Profile;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
#ifndef AC_SHOP_GOODS_H_H
|
||||
#define AC_SHOP_GOODS_H_H
|
||||
|
||||
#include "types.h"
|
||||
#include "m_actor_type.h"
|
||||
#include "game_h.h"
|
||||
#include "m_lib.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*aSG_SINGLE_DRAW_PROC)(GAME*, mActor_name_t, xyz_t*, f32, s16, int);
|
||||
typedef int (*aSG_PLAYER_DROP_ENTRY_PROC)(GAME*, mActor_name_t, int, int, int, int);
|
||||
typedef s16 (*aSG_SINGLE_GET_ANGLE_Y_PROC)(int, int, int);
|
||||
typedef void (*aSG_SINGLE_SET_ANGLE_Y_PROC)(int, int, int, s16);
|
||||
|
||||
typedef struct shop_goods_clip_s {
|
||||
aSG_SINGLE_DRAW_PROC single_draw_proc;
|
||||
aSG_PLAYER_DROP_ENTRY_PROC player_drop_entry_proc;
|
||||
aSG_SINGLE_GET_ANGLE_Y_PROC single_get_angle_y_proc;
|
||||
aSG_SINGLE_SET_ANGLE_Y_PROC single_set_angle_y_proc;
|
||||
} aSG_Clip_c;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
+17
-17
@@ -26,18 +26,18 @@ enum {
|
||||
VOICE_STATUS_NUM
|
||||
};
|
||||
|
||||
extern void sAdo_Calc_MicPosition_forTrig(f32* fcalc, u16* scalc, xyz_t* pos);
|
||||
extern void sAdo_Calc_MicPosition_forLevel(f32* fcalc, u16* scalc, xyz_t* pos);
|
||||
extern void sAdo_Calc_MicPosition_forTrig(f32* fcalc, u16* scalc, const xyz_t* pos);
|
||||
extern void sAdo_Calc_MicPosition_forLevel(f32* fcalc, u16* scalc, const xyz_t* pos);
|
||||
|
||||
extern void sAdo_GameFrame();
|
||||
extern void sAdo_BgmStart(u8 id);
|
||||
extern void sAdo_BgmStop(u16 id);
|
||||
extern void sAdo_SysTrgStart(u16 id);
|
||||
|
||||
extern void sAdo_PlyWalkSe(int walk, xyz_t* pos);
|
||||
extern void sAdo_PlyWalkSeRoom(int walk, xyz_t* pos);
|
||||
extern void sAdo_NpcWalkSe(int walk, xyz_t* pos);
|
||||
extern void sAdo_NpcWalkSeRoom(int walk, xyz_t* pos);
|
||||
extern void sAdo_PlyWalkSe(int walk, const xyz_t* pos);
|
||||
extern void sAdo_PlyWalkSeRoom(int walk, const xyz_t* pos);
|
||||
extern void sAdo_NpcWalkSe(int walk, const xyz_t* pos);
|
||||
extern void sAdo_NpcWalkSeRoom(int walk, const xyz_t* pos);
|
||||
|
||||
extern void sAdo_PlayerStatusLevel(f32 speed, int p);
|
||||
|
||||
@@ -52,19 +52,19 @@ extern u8 sAdo_MessageSpeedGet();
|
||||
extern void sAdo_SysLevStop(u8 id);
|
||||
extern void sAdo_SysLevStart(u8 id);
|
||||
|
||||
extern void sAdo_OngenPos(u32 p1, u8 p2, xyz_t* pos);
|
||||
extern void sAdo_OngenTrgStart(u16 id, xyz_t* pos);
|
||||
extern void sAdo_OngenPos(u32 p1, u8 p2, const xyz_t* pos);
|
||||
extern void sAdo_OngenTrgStart(u16 id, const xyz_t* pos);
|
||||
|
||||
extern void sAdo_SetOutMode(u8 mode);
|
||||
extern void sAdo_SetVoiceMode(u8 mode);
|
||||
|
||||
extern void sAdo_FloorTrgStart(u16 id, xyz_t* pos);
|
||||
extern void sAdo_FloorTrgStart(u16 id, const xyz_t* pos);
|
||||
|
||||
extern void sAdo_RhythmStart(u32 id, s8 type, s8 wait);
|
||||
extern void sAdo_RhythmStop(u32 id);
|
||||
extern void sAdo_RhythmAllStop();
|
||||
|
||||
extern void sAdo_FurnitureInst(int track_id, s8 cb, s32 cl, xyz_t* pos);
|
||||
extern void sAdo_FurnitureInst(u32 id, u8 inst, u8* melody, const xyz_t* pos);
|
||||
extern void sAdo_Pause(u8 mode);
|
||||
|
||||
extern f32 sAdo_GetRhythmAnimCounter(u32 id);
|
||||
@@ -74,10 +74,10 @@ extern void sAdo_SetRhythmInfo(TempoBeat_c* rhythm);
|
||||
|
||||
extern int sAdo_InstCountGet();
|
||||
|
||||
extern void sAdo_RhythmPos(u32 id, u8 haniwa_id, xyz_t* pos);
|
||||
extern void sAdo_RhythmPos(u32 id, u8 haniwa_id, const xyz_t* pos);
|
||||
|
||||
extern void sAdo_SpecChange(int spec);
|
||||
extern void sAdo_MDPlayerPos(xyz_t* pos, u16 s1, u16 s2, int p);
|
||||
extern void sAdo_MDPlayerPos(const xyz_t* pos, u16 s1, u16 s2, int p);
|
||||
|
||||
extern void sAdo_BGMVolume(f32 f, u16 volume);
|
||||
extern void sAdo_BgmCrossfadeStart(u8 b);
|
||||
@@ -98,7 +98,7 @@ extern void sAdos_GetStaffRollInfo(void* p);
|
||||
|
||||
extern void sAdos_TTKK_ARM(u8 mode);
|
||||
|
||||
extern void sAdo_OngenTrgStartSpeed(f32 speed, u16 s1, xyz_t* pos);
|
||||
extern void sAdo_OngenTrgStartSpeed(f32 speed, u16 s1, const xyz_t* pos);
|
||||
|
||||
extern void sAdo_TrgSeEcho(u8 b);
|
||||
extern void sAdo_LevSeEcho(u8 b);
|
||||
@@ -115,16 +115,16 @@ extern u16 sAdo_Get_WalkLabel(int type);
|
||||
extern int sAdo_Get_KokeruLabel(int type);
|
||||
|
||||
extern void sAdo_SceneMode(u8 mode);
|
||||
extern u8 sAdo_RoomIncectPos(u32 f, u16 u, xyz_t* pos);
|
||||
extern u8 sAdo_RoomIncectPos(u32 f, u16 u, const xyz_t* pos);
|
||||
|
||||
extern void sAdo_FurnitureInstPos(u32 f, xyz_t* pos);
|
||||
extern void sAdo_FurnitureInstPos(u32 id, const xyz_t* pos);
|
||||
extern void sAdo_Set_ongenpos_refuse_fg(int state);
|
||||
|
||||
extern int sAdo_GameframeEnd_Check();
|
||||
extern int sAdo_GetSoundFrameCounter();
|
||||
|
||||
extern int sAdo_CheckOnPlussBridge(xyz_t* pos, u32 atr);
|
||||
extern void sAdo_RegistPlussBridge(xyz_t* pos);
|
||||
extern int sAdo_CheckOnPlussBridge(const xyz_t* pos, u32 atr);
|
||||
extern void sAdo_RegistPlussBridge(const xyz_t* pos);
|
||||
extern void sAdo_DeletePlussBridge();
|
||||
|
||||
extern void sAdo_kazagurumaLevel(f32 level);
|
||||
|
||||
+11
-1
@@ -35,6 +35,8 @@ typedef enum audio_sound_effects {
|
||||
NA_SE_LIGHT_ON,
|
||||
NA_SE_LIGHT_OFF,
|
||||
|
||||
NA_SE_DRAWER_SHUT = 0x3A,
|
||||
|
||||
NA_SE_ITEM_GET = 0x40,
|
||||
NA_SE_ITEM_HORIDASHI = 0x47,
|
||||
|
||||
@@ -43,6 +45,9 @@ typedef enum audio_sound_effects {
|
||||
NA_SE_MONEY2,
|
||||
NA_SE_COIN,
|
||||
|
||||
NA_SE_BIRTH_FTR = 0x57,
|
||||
NA_SE_CLEAN_UP_FTR = 0x58,
|
||||
|
||||
NA_SE_TOOL_FURI = 0x5A, // swing?
|
||||
NA_SE_AMI_HIT = 0x5C,
|
||||
NA_SE_TOOL_GET,
|
||||
@@ -79,6 +84,7 @@ typedef enum audio_sound_effects {
|
||||
NA_SE_ZASSOU_NUKU = 0x15F,
|
||||
NA_SE_HACHI_SASARERU,
|
||||
|
||||
NA_SE_166 = 0x166,
|
||||
NA_SE_UCHIWA = 0x167,
|
||||
|
||||
NA_SE_SCOOP_SHIGEMI = 0x401,
|
||||
@@ -99,6 +105,10 @@ typedef enum audio_sound_effects {
|
||||
NA_SE_HARD_CHAIR_STANDUP,
|
||||
|
||||
NA_SE_BUBU_CHAIR_STANDUP = 0x429,
|
||||
NA_SE_FTR_DOOR_OPEN = 0x42C,
|
||||
NA_SE_FTR_DOOR_CLOSE = 0x42D,
|
||||
NA_SE_DRAWER_OPEN = 0x42E,
|
||||
NA_SE_DRAWER_CLOSE = 0x42F,
|
||||
NA_SE_DAI_UE_KAKUNOU = 0x430,
|
||||
|
||||
NA_SE_UMBRELLA_ROTATE = 0x432,
|
||||
@@ -119,8 +129,8 @@ typedef enum audio_sound_effects {
|
||||
} AudioSE;
|
||||
|
||||
typedef enum bgm_e {
|
||||
BGM_AEROBICS = 27,
|
||||
BGM_MD0 = 128,
|
||||
|
||||
} BGM_e;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -424,9 +424,8 @@ extern void cKF_SkeletonInfo_R_T_combine_play(int* arg1, int* arg2, int* arg3, c
|
||||
* @param angley Y angle for base model rotation.
|
||||
* @param anglez Z angle for base model rotation.
|
||||
*/
|
||||
extern void cKF_SkeletonInfo_R_Animation_Set_base_shape_trs(f32 transx, f32 transy, f32 transz,
|
||||
cKF_SkeletonInfo_R_c* keyframe, s16 anglex, s16 angley,
|
||||
s16 anglez);
|
||||
extern void cKF_SkeletonInfo_R_Animation_Set_base_shape_trs(cKF_SkeletonInfo_R_c* keyframe, f32 transx, f32 transy,
|
||||
f32 transz, s16 anglex, s16 angley, s16 anglez);
|
||||
|
||||
/**
|
||||
* Adjusts the base position and correction for a skeleton info structure based on animation flags.
|
||||
@@ -482,4 +481,4 @@ extern void cKF_SkeletonInfo_R_AnimationMove_CulcTransToWorld(f32 calcx, f32 cal
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -8,13 +8,11 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
extern void Na_Inst(u16, u8*);
|
||||
extern void Na_FurnitureInst(int,s8,s32,u16,f32);
|
||||
extern void Na_FurnitureInst(u32, u8, u8*, u16, f32);
|
||||
extern int Na_InstCountGet();
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
+2
-1
@@ -23,6 +23,7 @@
|
||||
#include "ac_shop_umbrella.h"
|
||||
#include "ac_handOverItem.h"
|
||||
#include "ac_quest_manager_clip.h"
|
||||
#include "ac_shop_goods_h.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -63,7 +64,7 @@ typedef struct clip_s {
|
||||
/* 0x0A4 */ mDemo_Clip_c* demo_clip2; /* can be multiple clip classes */
|
||||
/* 0x0A8 */ void* _0A8;
|
||||
/* 0x0AC */ aGYO_Clip_c* gyo_clip;
|
||||
/* 0x0B0 */ void* _0B0;
|
||||
/* 0x0B0 */ aSG_Clip_c* shop_goods_clip;
|
||||
/* 0x0B4 */ void* _0B4;
|
||||
/* 0x0B8 */ aShopUmbrella_Clip_c* shop_umbrella_clip;
|
||||
/* 0x0BC */ aAR_Clip_c* arrange_room_clip;
|
||||
|
||||
@@ -277,6 +277,15 @@ extern int mCoBG_GetHoleNumber_ClData(mCoBG_Collision_u* col);
|
||||
extern void mCoBG_GetBgNorm_FromWpos(xyz_t* norm, xyz_t wpos);
|
||||
extern int mCoBG_GetWaterFlow(xyz_t* water_flow, u32 attr);
|
||||
extern void mCoBG_SetAttribute(xyz_t pos, u32 attr);
|
||||
extern int mCoBG_GetPointInfoFrontLine(f32* line, f32* check_pos, f32* norm);
|
||||
extern int mCoBG_GetCrossCircleAndLine2Dvector(f32* cross0_xz, f32* cross1_xz, f32* point_xz, f32* vec_xz,
|
||||
f32* center_xz, f32 radius);
|
||||
extern f32 mCoBG_GetVectorProductin2D(f32* vec0_xz, f32* vec1_xz);
|
||||
extern int mCoBG_GetCrossLineAndPerpendicular(f32* cross_xz, f32* start_xz, f32* end_xz, f32* point_xz);
|
||||
extern int mCoBG_RangeCheckLinePoint(f32* start_xz, f32* end_xz, f32* point_xz);
|
||||
extern int mCoBG_GetDistPointAndLine2D_Norm(f32* dist, f32* start_xz, f32* end_xz, f32* norm, f32* point_xz);
|
||||
extern f32 mCoBG_Get2VectorAngleF(f32* v0, f32* v1, u8 type);
|
||||
extern int mCoBG_CheckUtFlat(const xyz_t* pos);
|
||||
|
||||
extern void mCoBG_InitMoveBgData();
|
||||
extern void mCoBG_InitBlockBgCheckMode();
|
||||
|
||||
@@ -256,7 +256,7 @@ typedef struct common_data_s {
|
||||
/* 0x0287FA */ u8 _287FA[0x28838 - 0x0287FA];
|
||||
/* 0x028838 */ s8 player_bee_swell_flag;
|
||||
/* 0x028839 */ s8 player_bee_chase_flag;
|
||||
/* 0x02883A */ u8 goki_shocked_flag;
|
||||
/* 0x02883A */ s8 goki_shocked_flag;
|
||||
/* 0x02883B */ u8 time_changed_flag;
|
||||
/* 0x02883C */ u8 unable_to_wade_flag;
|
||||
/* 0x02883D */ u8 _02883D;
|
||||
@@ -314,7 +314,7 @@ typedef struct common_data_s {
|
||||
/* 0x02DBB0 */ s16 can_look_goki_count;
|
||||
/* 0x02DBB4 */ f32 rainbow_opacity; /* current opacity of rainbow (0.0f - 1.0f) */
|
||||
/* 0x02DBB8 */ u32 event_flags[mEv_EVENT_TYPE_NUM];
|
||||
/* 0x02DBD4 */ xyz_t* pluss_bridge_pos; /* position of extra bridge */
|
||||
/* 0x02DBD4 */ const xyz_t* pluss_bridge_pos; /* position of extra bridge */
|
||||
/* 0x02DBD8 */ lbRTC_time_c auto_nwrite_time; /* cached notice time used for fishing tourney results? */
|
||||
/* 0x02DBE0 */ u8 rhythym_updated;
|
||||
/* 0x02DBE1 */ u8 _2dbe1;
|
||||
|
||||
@@ -64,6 +64,9 @@ extern int mPlib_check_player_open_umbrella(GAME_PLAY* play);
|
||||
extern int mPlib_Check_UKI_COMEBACK_STATUS();
|
||||
extern int mPlib_check_player_actor_main_index_OutDoorMove(GAME_PLAY* play);
|
||||
extern int mPlib_request_main_close_furniture_type1(GAME* game);
|
||||
extern int mPlib_request_main_shock_type1(GAME* game, f32 time, s16 angle_y, int axe_swing);
|
||||
extern int mPlib_request_main_hold_type1(GAME* game, int ftr_no, int player_direct, const xyz_t* player_pos);
|
||||
extern int mPlib_check_player_warp_forEvent(void);
|
||||
|
||||
extern mPlayer_change_data_from_submenu_c* mPlib_Get_change_data_from_submenu_p();
|
||||
|
||||
|
||||
+76
-73
@@ -2,24 +2,24 @@
|
||||
#define M_SCENE_TABLE_H
|
||||
|
||||
#include "types.h"
|
||||
//#include "m_scene.h"
|
||||
// #include "m_scene.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum field_draw_type {
|
||||
FIELD_DRAW_TYPE_OUTDOORS,
|
||||
FIELD_DRAW_TYPE_INDOORS,
|
||||
FIELD_DRAW_TYPE_TRAIN,
|
||||
FIELD_DRAW_TYPE_PLAYER_SELECT,
|
||||
FIELD_DRAW_TYPE_OUTDOORS,
|
||||
FIELD_DRAW_TYPE_INDOORS,
|
||||
FIELD_DRAW_TYPE_TRAIN,
|
||||
FIELD_DRAW_TYPE_PLAYER_SELECT,
|
||||
|
||||
FIELD_DRAW_TYPE_NUM
|
||||
FIELD_DRAW_TYPE_NUM
|
||||
};
|
||||
|
||||
typedef struct scene_status_s {
|
||||
u8 unk0[0x13];
|
||||
u8 unk13;
|
||||
u8 unk0[0x13];
|
||||
u8 unk13;
|
||||
} Scene_data_status_c;
|
||||
|
||||
/*
|
||||
@@ -28,76 +28,79 @@ typedef struct scene_status_s {
|
||||
*/
|
||||
|
||||
enum scene_table {
|
||||
SCENE_TEST1,
|
||||
SCENE_TEST2,
|
||||
SCENE_TEST3,
|
||||
SCENE_WATER_TEST,
|
||||
SCENE_FOOTPRINT_TEST,
|
||||
SCENE_NPC_TEST,
|
||||
SCENE_NPC_HOUSE, /* npc house interior */
|
||||
SCENE_FG, /* outdoors/FG */
|
||||
SCENE_RANDOM_NPC_TEST,
|
||||
SCENE_SHOP0, /* nook's cranny */
|
||||
SCENE_BG_TEST_NO_RIVER,
|
||||
SCENE_BG_TEST_RIVER,
|
||||
SCENE_BROKER_SHOP, /* crazy redd's tent */
|
||||
SCENE_FIELD_TOOL_INSIDE,
|
||||
SCENE_POST_OFFICE, /* post office */
|
||||
SCENE_START_DEMO, /* after player select */
|
||||
SCENE_START_DEMO2, /* */
|
||||
SCENE_POLICE_BOX,
|
||||
SCENE_BUGGY,
|
||||
SCENE_PLAYERSELECT,
|
||||
SCENE_MY_ROOM_S,
|
||||
SCENE_MY_ROOM_M,
|
||||
SCENE_MY_ROOM_L,
|
||||
SCENE_CONVENI, /* nook 'n' go */
|
||||
SCENE_SUPER, /* nookway */
|
||||
SCENE_DEPART, /* nookington's 1st floor */
|
||||
SCENE_TEST5,
|
||||
SCENE_PLAYERSELECT_2,
|
||||
SCENE_PLAYERSELECT_3,
|
||||
SCENE_DEPART_2, /* nookington's 2nd floor */
|
||||
SCENE_EVENT_ANNOUNCEMENT,
|
||||
SCENE_KAMAKURA,
|
||||
SCENE_FIELD_TOOL,
|
||||
SCENE_TITLE_DEMO, /* title screen demo */
|
||||
SCENE_PLAYERSELECT_SAVE,
|
||||
SCENE_MUSEUM_ENTRANCE,
|
||||
SCENE_MUSEUM_ROOM_PAINTING,
|
||||
SCENE_MUSEUM_ROOM_FOSSIL,
|
||||
SCENE_MUSEUM_ROOM_INSECT,
|
||||
SCENE_MUSEUM_ROOM_FISH,
|
||||
SCENE_MY_ROOM_LL1,
|
||||
SCENE_MY_ROOM_LL2,
|
||||
SCENE_MY_ROOM_BASEMENT_S,
|
||||
SCENE_MY_ROOM_BASEMENT_M,
|
||||
SCENE_MY_ROOM_BASEMENT_L,
|
||||
SCENE_MY_ROOM_BASEMENT_LL1,
|
||||
SCENE_NEEDLEWORK, /* able sister's */
|
||||
SCENE_COTTAGE_MY,
|
||||
SCENE_COTTAGE_NPC,
|
||||
SCENE_START_DEMO3,
|
||||
SCENE_LIGHTHOUSE,
|
||||
SCENE_TENT,
|
||||
SCENE_TEST1,
|
||||
SCENE_TEST2,
|
||||
SCENE_TEST3,
|
||||
SCENE_WATER_TEST,
|
||||
SCENE_FOOTPRINT_TEST,
|
||||
SCENE_NPC_TEST,
|
||||
SCENE_NPC_HOUSE, /* npc house interior */
|
||||
SCENE_FG, /* outdoors/FG */
|
||||
SCENE_RANDOM_NPC_TEST,
|
||||
SCENE_SHOP0, /* nook's cranny */
|
||||
SCENE_BG_TEST_NO_RIVER,
|
||||
SCENE_BG_TEST_RIVER,
|
||||
SCENE_BROKER_SHOP, /* crazy redd's tent */
|
||||
SCENE_FIELD_TOOL_INSIDE,
|
||||
SCENE_POST_OFFICE, /* post office */
|
||||
SCENE_START_DEMO, /* after player select */
|
||||
SCENE_START_DEMO2, /* */
|
||||
SCENE_POLICE_BOX,
|
||||
SCENE_BUGGY,
|
||||
SCENE_PLAYERSELECT,
|
||||
SCENE_MY_ROOM_S,
|
||||
SCENE_MY_ROOM_M,
|
||||
SCENE_MY_ROOM_L,
|
||||
SCENE_CONVENI, /* nook 'n' go */
|
||||
SCENE_SUPER, /* nookway */
|
||||
SCENE_DEPART, /* nookington's 1st floor */
|
||||
SCENE_TEST5,
|
||||
SCENE_PLAYERSELECT_2,
|
||||
SCENE_PLAYERSELECT_3,
|
||||
SCENE_DEPART_2, /* nookington's 2nd floor */
|
||||
SCENE_EVENT_ANNOUNCEMENT,
|
||||
SCENE_KAMAKURA,
|
||||
SCENE_FIELD_TOOL,
|
||||
SCENE_TITLE_DEMO, /* title screen demo */
|
||||
SCENE_PLAYERSELECT_SAVE,
|
||||
SCENE_MUSEUM_ENTRANCE,
|
||||
SCENE_MUSEUM_ROOM_PAINTING,
|
||||
SCENE_MUSEUM_ROOM_FOSSIL,
|
||||
SCENE_MUSEUM_ROOM_INSECT,
|
||||
SCENE_MUSEUM_ROOM_FISH,
|
||||
SCENE_MY_ROOM_LL1,
|
||||
SCENE_MY_ROOM_LL2,
|
||||
SCENE_MY_ROOM_BASEMENT_S,
|
||||
SCENE_MY_ROOM_BASEMENT_M,
|
||||
SCENE_MY_ROOM_BASEMENT_L,
|
||||
SCENE_MY_ROOM_BASEMENT_LL1,
|
||||
SCENE_NEEDLEWORK, /* able sister's */
|
||||
SCENE_COTTAGE_MY,
|
||||
SCENE_COTTAGE_NPC,
|
||||
SCENE_START_DEMO3,
|
||||
SCENE_LIGHTHOUSE,
|
||||
SCENE_TENT,
|
||||
|
||||
SCENE_NUM
|
||||
SCENE_NUM
|
||||
};
|
||||
|
||||
#define mSc_IS_SCENE_PLAYER_ROOM(scene) \
|
||||
((scene) == SCENE_MY_ROOM_S || (scene) == SCENE_MY_ROOM_M || (scene) == SCENE_MY_ROOM_L || \
|
||||
(scene) == SCENE_MY_ROOM_LL1 || (scene) == SCENE_MY_ROOM_LL2 || (scene) == SCENE_MY_ROOM_BASEMENT_S || \
|
||||
(scene) == SCENE_MY_ROOM_BASEMENT_M || (scene) == (SCENE_MY_ROOM_BASEMENT_L) || (scene) == SCENE_MY_ROOM_BASEMENT_LL1 || \
|
||||
(scene) == SCENE_COTTAGE_MY)
|
||||
#define mSc_IS_SCENE_PLAYER_HOUSE_ROOM(scene) \
|
||||
((scene) == SCENE_MY_ROOM_S || (scene) == SCENE_MY_ROOM_M || (scene) == SCENE_MY_ROOM_L || \
|
||||
(scene) == SCENE_MY_ROOM_LL1 || (scene) == SCENE_MY_ROOM_LL2 || (scene) == SCENE_MY_ROOM_BASEMENT_S || \
|
||||
(scene) == SCENE_MY_ROOM_BASEMENT_M || (scene) == (SCENE_MY_ROOM_BASEMENT_L) || \
|
||||
(scene) == SCENE_MY_ROOM_BASEMENT_LL1)
|
||||
|
||||
#define mSc_IS_SCENE_BASEMENT(scene) \
|
||||
((scene) == SCENE_MY_ROOM_BASEMENT_S || \
|
||||
(scene) == SCENE_MY_ROOM_BASEMENT_M || \
|
||||
(scene) == SCENE_MY_ROOM_BASEMENT_L || \
|
||||
(scene) == SCENE_MY_ROOM_BASEMENT_LL1)
|
||||
#define mSc_IS_SCENE_PLAYER_ROOM(scene) \
|
||||
((scene) == SCENE_MY_ROOM_S || (scene) == SCENE_MY_ROOM_M || (scene) == SCENE_MY_ROOM_L || \
|
||||
(scene) == SCENE_MY_ROOM_LL1 || (scene) == SCENE_MY_ROOM_LL2 || (scene) == SCENE_MY_ROOM_BASEMENT_S || \
|
||||
(scene) == SCENE_MY_ROOM_BASEMENT_M || (scene) == (SCENE_MY_ROOM_BASEMENT_L) || \
|
||||
(scene) == SCENE_MY_ROOM_BASEMENT_LL1 || (scene) == SCENE_COTTAGE_MY)
|
||||
|
||||
#define mSc_IS_SCENE_MUSEUM_ROOM(scene) \
|
||||
((scene) >= SCENE_MUSEUM_ENTRANCE && (scene) <= SCENE_MUSEUM_ROOM_FISH)
|
||||
#define mSc_IS_SCENE_BASEMENT(scene) \
|
||||
((scene) == SCENE_MY_ROOM_BASEMENT_S || (scene) == SCENE_MY_ROOM_BASEMENT_M || \
|
||||
(scene) == SCENE_MY_ROOM_BASEMENT_L || (scene) == SCENE_MY_ROOM_BASEMENT_LL1)
|
||||
|
||||
#define mSc_IS_SCENE_MUSEUM_ROOM(scene) ((scene) >= SCENE_MUSEUM_ENTRANCE && (scene) <= SCENE_MUSEUM_ROOM_FISH)
|
||||
|
||||
extern Scene_data_status_c scene_data_status[SCENE_NUM];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user