mirror of
https://github.com/ACreTeam/ac-decomp
synced 2026-05-31 00:45:27 -04:00
Implement & link ac_ins_tonbo
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef AC_INS_TONBO_H
|
||||
#define AC_INS_TONBO_H
|
||||
|
||||
#include "types.h"
|
||||
#include "ac_insect_h.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern void aITB_actor_init(ACTOR* actorx, GAME* game);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -88,6 +88,16 @@ enum {
|
||||
aINS_PROGRAM_NUM
|
||||
};
|
||||
|
||||
enum {
|
||||
aINS_BG_CHECK_TYPE_NONE,
|
||||
aINS_BG_CHECK_TYPE_REG_ATTR,
|
||||
aINS_BG_CHECK_TYPE_REG_NO_ATTR,
|
||||
aINS_BG_CHECK_TYPE_NO_UNIT_COLUMN_ATTR,
|
||||
aINS_BG_CHECK_TYPE_NO_UNIT_COLUMN_NO_ATTR,
|
||||
|
||||
aINS_BG_CHECK_TYPE_NUM
|
||||
};
|
||||
|
||||
/* sizeof(aINS_Init_c) == 0x18 */
|
||||
typedef struct insect_init_s {
|
||||
/* 0x00 */ int insect_type;
|
||||
|
||||
@@ -29,6 +29,9 @@ extern "C" {
|
||||
/* Macro to generate a random float in the range of [0, n) */
|
||||
#define RANDOM_F(n) (fqrand() * (f32)(n))
|
||||
|
||||
/* Macro to generate a random float in range of [-n/2, n/2) */
|
||||
#define RANDOM_CENTER_F(n) ((fqrand() - 0.5f) * (f32)(n))
|
||||
|
||||
/* Macro to generate a random integer in the range of [0, n) */
|
||||
#define RANDOM(n) ((int)RANDOM_F(n))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user