mirror of
https://github.com/zeldaret/tp
synced 2026-05-27 08:08:59 -04:00
221f40e609
* add "global.h" to files that use it * add MSL_C includes to files that use them * remove dolphin includes from headers that don't need them * remove JSupport includes from headers that don't need them * remove JKernel includes from headers that don't need them * remove JUtility includes from headers that don't need them * remove J3D includes from headers that don't need them * remove J2D includes from headers that don't need them * remove JAudio2 includes from headers that don't need them * remove Z2AudioLib includes from headers that don't need them * remove JMessage includes from headers that don't need them * remove JParticle includes from headers that don't need them * remove SComponent includes from headers that don't need them * remove dol includes from headers that don't need them * sort includes
44 lines
1.4 KiB
C++
44 lines
1.4 KiB
C++
#ifndef D_D_JNT_COL_H
|
|
#define D_D_JNT_COL_H
|
|
|
|
#include "JSystem/J3DGraphAnimator/J3DModel.h"
|
|
#include "SSystem/SComponent/c_m3d_g_lin.h"
|
|
#include "SSystem/SComponent/c_sxyz.h"
|
|
#include "SSystem/SComponent/c_xyz.h"
|
|
#include "dolphin/types.h"
|
|
|
|
class fopAc_ac_c;
|
|
|
|
class dJntColData_c {
|
|
public:
|
|
/* 0x0 */ u8 field_0x0;
|
|
/* 0x1 */ s8 mType;
|
|
/* 0x2 */ s16 mJntNum;
|
|
/* 0x4 */ u8 field_0x4[0xC - 0x4];
|
|
};
|
|
|
|
class dJntCol_c {
|
|
public:
|
|
/* 80035C8C */ dJntCol_c();
|
|
/* 80035CA0 */ int init(fopAc_ac_c*, dJntColData_c const*, J3DModel*, int);
|
|
/* 80035CC8 */ static void setNowLine(cM3dGLin*, cXyz const*, csXyz const*, cXyz*);
|
|
/* 80035DC8 */ void searchNearPos(cM3dGLin const*, cXyz const*, cXyz*, int) const;
|
|
/* 80036AEC */ void getArrowOffsetPosAndAngle(cXyz const*, csXyz const*, cXyz*, cXyz*) const;
|
|
/* 80036C44 */ int getHitmarkPosAndAngle(cXyz const*, csXyz const*, cXyz*, csXyz*, int) const;
|
|
/* 80036FA8 */ void setArrowPosAndAngle(cXyz const*, cXyz const*, int, cXyz*, csXyz*);
|
|
|
|
bool checkPassNum(int bit) { return field_0xc & (1 << bit); }
|
|
void onPassNum(int num) { field_0xc |= (1 << num); }
|
|
void offPassNum(int num) { field_0xc &= ~(1 << num); }
|
|
bool checkShieldType(int i) { return getType(i) == 3; }
|
|
|
|
s8 getType(int i) { return mData[i].mType; }
|
|
|
|
/* 0x00 */ const dJntColData_c* mData;
|
|
/* 0x04 */ J3DModel* mModel;
|
|
/* 0x08 */ int field_0x8;
|
|
/* 0x0C */ int field_0xc;
|
|
};
|
|
|
|
#endif /* D_D_JNT_COL_H */
|