mirror of
https://github.com/zeldaret/ss
synced 2026-05-28 00:15:59 -04:00
0f9ef3d33c
* Some main dol actor splits and code * Match dAcOsw_c * diff clean * Fix * dTgSw_c OK
26 lines
354 B
C++
26 lines
354 B
C++
#ifndef C_LIB_CMATH
|
|
#define C_LIB_CMATH
|
|
|
|
#include <common.h>
|
|
|
|
namespace cM {
|
|
static s16 atan2s(f32, f32);
|
|
void initRnd(s32);
|
|
f32 rnd();
|
|
int rndInt(int max);
|
|
f32 rndF(f32 max);
|
|
f32 rndFX(f32 amp);
|
|
|
|
|
|
template <typename T>
|
|
T calcTimer(T* value) {
|
|
if (*(T*)value != 0) {
|
|
*value = *value - 1;
|
|
}
|
|
return *value;
|
|
}
|
|
|
|
} // namespace cM
|
|
|
|
#endif
|