mirror of
https://github.com/zeldaret/tp
synced 2026-07-08 14:36:36 -04:00
work on d_a_npc, d_a_npc_ash, d_a_tag_evtarea (#345)
All credit goes to randomsalience
This commit is contained in:
@@ -458,6 +458,7 @@ public:
|
||||
void OffAtVsPlayerBit() { mObjAt.OffSPrmBit(0xC); }
|
||||
void OnAtVsPlayerBit() { mObjAt.OnSPrmBit(0xC); }
|
||||
void OnCoSPrmBit(u32 flag) { mObjCo.OnSPrmBit(flag); }
|
||||
void SetTgSPrm(u32 prm) { mObjTg.SetSPrm(prm); }
|
||||
void SetCoSPrm(u32 prm) { mObjCo.SetSPrm(prm); }
|
||||
|
||||
}; // Size = 0x40
|
||||
|
||||
@@ -94,6 +94,11 @@ T cLib_calcTimer(T* value) {
|
||||
return *value;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
T cLib_getRndValue(T min, T range) {
|
||||
return (T)(min + cM_rndF((f32)range));
|
||||
}
|
||||
|
||||
void MtxInit(void);
|
||||
void MtxTrans(f32, f32, f32, u8);
|
||||
void MtxScale(f32, f32, f32, u8);
|
||||
|
||||
@@ -18,11 +18,11 @@ float cM_rndF2(float);
|
||||
float cM_rndFX2(float);
|
||||
|
||||
inline f32 cM_scos(s16 s) {
|
||||
return JMath::sincosTable_.table[static_cast<u16>(s) >> 3].second;
|
||||
return JMASCos(s);
|
||||
}
|
||||
|
||||
inline f32 cM_ssin(s16 s) {
|
||||
return JMath::sincosTable_.table[static_cast<u16>(s) >> 3].first;
|
||||
return JMASSin(s);
|
||||
}
|
||||
|
||||
inline s16 cM_deg2s(f32 val) {
|
||||
|
||||
Reference in New Issue
Block a user