2021-03-28 22:49:05 +02:00
|
|
|
#ifndef D_D_JNT_COL_H
|
|
|
|
|
#define D_D_JNT_COL_H
|
|
|
|
|
|
2021-05-23 03:09:59 -07:00
|
|
|
#include "JSystem/J3DGraphAnimator/J3DModel.h"
|
|
|
|
|
#include "SSystem/SComponent/c_m3d_g_lin.h"
|
2023-05-12 12:10:14 -07:00
|
|
|
#include "SSystem/SComponent/c_sxyz.h"
|
|
|
|
|
|
|
|
|
|
class fopAc_ac_c;
|
2021-05-23 03:09:59 -07:00
|
|
|
|
2023-01-15 11:10:23 -08:00
|
|
|
class dJntColData_c {
|
|
|
|
|
public:
|
2023-02-10 09:07:47 -08:00
|
|
|
/* 0x0 */ u8 field_0x0;
|
2024-07-16 06:13:26 +03:00
|
|
|
/* 0x1 */ u8 mType;
|
2023-02-10 09:07:47 -08:00
|
|
|
/* 0x2 */ s16 mJntNum;
|
2023-11-27 03:14:06 -08:00
|
|
|
/* 0x4 */ f32 field_0x4;
|
|
|
|
|
/* 0x8 */ Vec* field_0x8;
|
2023-01-15 11:10:23 -08:00
|
|
|
};
|
2021-05-23 03:09:59 -07:00
|
|
|
|
|
|
|
|
class dJntCol_c {
|
|
|
|
|
public:
|
|
|
|
|
/* 80035C8C */ dJntCol_c();
|
2022-12-26 19:23:22 -07:00
|
|
|
/* 80035CA0 */ int init(fopAc_ac_c*, dJntColData_c const*, J3DModel*, int);
|
2023-02-10 09:07:47 -08:00
|
|
|
/* 80035CC8 */ static void setNowLine(cM3dGLin*, cXyz const*, csXyz const*, cXyz*);
|
2024-07-16 06:13:26 +03:00
|
|
|
/* 80035DC8 */ int searchNearPos(cM3dGLin const*, cXyz const*, cXyz*, int) const;
|
2024-04-26 19:12:56 -07:00
|
|
|
/* 80036AEC */ int getArrowOffsetPosAndAngle(cXyz const*, csXyz const*, cXyz*, cXyz*) const;
|
2023-01-15 11:10:23 -08:00
|
|
|
/* 80036C44 */ int getHitmarkPosAndAngle(cXyz const*, csXyz const*, cXyz*, csXyz*, int) const;
|
2021-05-23 03:09:59 -07:00
|
|
|
/* 80036FA8 */ void setArrowPosAndAngle(cXyz const*, cXyz const*, int, cXyz*, csXyz*);
|
|
|
|
|
|
2021-11-10 23:54:31 -08:00
|
|
|
bool checkPassNum(int bit) { return field_0xc & (1 << bit); }
|
2022-12-19 11:06:32 -08:00
|
|
|
void onPassNum(int num) { field_0xc |= (1 << num); }
|
|
|
|
|
void offPassNum(int num) { field_0xc &= ~(1 << num); }
|
2023-01-15 11:10:23 -08:00
|
|
|
bool checkShieldType(int i) { return getType(i) == 3; }
|
|
|
|
|
|
|
|
|
|
s8 getType(int i) { return mData[i].mType; }
|
2024-10-28 04:00:15 -07:00
|
|
|
int getJntNum(int i) { return mData[i].mJntNum; }
|
2021-11-10 23:54:31 -08:00
|
|
|
|
2023-02-10 09:07:47 -08:00
|
|
|
/* 0x00 */ const dJntColData_c* mData;
|
2021-05-23 03:09:59 -07:00
|
|
|
/* 0x04 */ J3DModel* mModel;
|
|
|
|
|
/* 0x08 */ int field_0x8;
|
|
|
|
|
/* 0x0C */ int field_0xc;
|
|
|
|
|
};
|
2021-03-28 22:49:05 +02:00
|
|
|
|
|
|
|
|
#endif /* D_D_JNT_COL_H */
|