54 FLAG_10 = BIT_FLAG(10),
55 FLAG_11 = BIT_FLAG(11),
56 FLAG_12 = BIT_FLAG(12),
57 FLAG_13 = BIT_FLAG(13),
58 FLAG_14 = BIT_FLAG(14),
59 FLAG_15 = BIT_FLAG(15),
60 FLAG_16 = BIT_FLAG(16),
61 FLAG_17 = BIT_FLAG(17),
62 FLAG_18 = BIT_FLAG(18),
63 FLAG_19 = BIT_FLAG(19),
64 FLAG_20 = BIT_FLAG(20),
65 FLAG_21 = BIT_FLAG(21),
66 FLAG_22 = BIT_FLAG(22),
67 FLAG_23 = BIT_FLAG(23),
68 FLAG_24 = BIT_FLAG(24),
69 FLAG_25 = BIT_FLAG(25),
70 FLAG_26 = BIT_FLAG(26),
71 FLAG_27 = BIT_FLAG(27),
72 FLAG_28 = BIT_FLAG(28),
73 FLAG_29 = BIT_FLAG(29),
74 FLAG_30 = BIT_FLAG(30),
77 FLAG_0 | FLAG_2 | FLAG_4,
79 FLAG_1 | FLAG_3 | FLAG_5,
81 FLAG_13 | FLAG_14 | FLAG_15 | FLAG_16 | FLAG_14 |
82 FLAG_15 | FLAG_16 | FLAG_17 | FLAG_18 | FLAG_19 |
85 FLAG_26 | FLAG_27 | FLAG_28 | FLAG_29
91 WATER_CHECK_WATER_BUBBLE,
104 bool checkHead(
unsigned long);
105 s16 getSakaAngle(u8);
106 s16 getSakaMoveAngle(u8);
107 Flag_e checkWall(
float *);
108 Flag_e checkWallEnm(
float *);
110 Flag_e checkFootEnm();
111 u16 getWallAttr(
int);
117 bool hasSensorFoot() {
return mpSensorFoot !=
nullptr; }
118 bool hasSensorHead() {
return mpSensorHead !=
nullptr; }
119 bool hasSensorWall() {
return mpSensorWall !=
nullptr; }
121 bool checkRoofPlayer(
const mVec3_c *,
float *);
123 int checkDokanLR(mVec3_c *, u8,
int *,
float,
float);
124 int checkDokanDown(mVec3_c *,
int *);
125 int checkDokanUp(mVec3_c *,
int *);
126 void setRideOnObjBg(dBg_ctr_c *,
const mVec3_c &);
127 bool checkWallPlayer(
const mVec3_c *,
const mVec3_c *,
float *);
128 u32 checkBgPlr(dActor_c *);
130 short getHeadSakaMoveAngle(u8 direction);
131 void clearBgcSaveAll();
132 dBc_c *getLinkW(dBg_ctr_c *bgCtr);
134 bool getSakaUpDown(u8 direction);
135 short getSakaAngleBySpeed(
float);
138 u32 getFlags()
const {
return mFlags; }
139 float get_4c()
const {
return m_4c; }
141 u32 isWallR() {
return mFlags & FLAG_WALL_R; }
142 u32 isWallL() {
return mFlags & FLAG_WALL_L; }
143 u32 isWall() {
return mFlags & (FLAG_WALL_R | FLAG_WALL_L); }
144 u32 isWall(u8 dir) {
return mFlags & (FLAG_WALL_R << dir); }
146 u32 isHead() {
return mFlags & FLAG_HEAD; }
147 u32 isCollision() {
return mFlags & (FLAG_WALL_L | FLAG_WALL_R | FLAG_FOOT | FLAG_HEAD); }
150 sBcSensorIf_c *mpSensorFoot;
151 sBcSensorIf_c *mpSensorHead;
152 sBcSensorIf_c *mpSensorWall;
154 mVec3_c *mpOwnerLastPos;
155 mVec3_c *mpOwnerSpeed;
157 mVec2_c mOwnerPosDelta;
164 dActor_c *mpNoHitActor;
165 dBg_ctr_c *mpCtrHead;
166 dBg_ctr_c *mpCtrFoot;
167 dBg_ctr_c *mpCtrWall;
168 dBg_ctr_c *mpCtrWalls[2];
169 dBc_c *mTriggeredHeadSensor;
170 dBc_c *mTriggeredFootSensor;
171 dBc_c *mTriggeredWallSensor;
172 dBc_c *mTriggeredWallSensorsLR[2];
173 dBg_ctr_c *mLinkW[2];
184 mAng mAdjacentSlopeAngle;
186 dBg_ctr_c *mpFenceCollision;
199 static int checkWaterDepth(
float,
float, u8, u8,
float *);
200 static WATER_TYPE_e checkWater(
float,
float, u8,
float *);
202 static bool checkBg(
float,
float, u8, u8,
unsigned long);
203 static bool checkWireNet(
float x,
float y,
unsigned char layer);
204 static bool checkGround(
const mVec3_c *,
float *, u8, u8, s8);
205 static u32 checkGround(
const mVec3_c *,
float *,
int *, u8, u8, s8);
206 static bool checkGroundAngle(
const mVec3_c *,
float *, s16 *, u8, u8, s8,
int *,
int);
207 static u32 checkGroundHalf(
const mVec3_c *,
float *, u8, u8);
208 static u32 checkTenjou(
const mVec3_c *,
float *, u8, u8);
209 static u32 checkWall(
const mVec3_c *,
const mVec3_c *,
float *, u8, u8, dActor_c **);
210 static u32 getUnitType(
float x,
float y, u8 layer);
211 static u32 getUnitKind(
float x,
float y, u8 layer);
212 static void getAirWaterHitPos(mVec2_c *);
213 static void getAirWaterHitAngle(
short *);