#include "libforest/gbi_extensions.h"
#include "PR/gbi.h"
#include "evw_anime.h"
#include "c_keyframe.h"
#include "ac_npc.h"
#include "ef_effect_control.h"

u8 cKF_ckcb_r_npc_1_matarou_r2_tbl[] = { 0, 3, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 7, 0, 7, 7, 0, 7, 7, 7, 7, 0, 7, 0, 0 };

s16 cKF_kn_npc_1_matarou_r2_tbl[] = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
                                      2, 2, 3, 2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 2, 2, 2 };

s16 cKF_c_npc_1_matarou_r2_tbl[] = { 0, 0, 0,    0, 0, 900, 0, 0,    0, 1800, 0, 0, 1800, 0, 900, 0,
                                     0, 0, -900, 0, 0, 900, 0, -900, 0, 0,    0, 0, 0,    0, -900 };

s16 cKF_ds_npc_1_matarou_r2_tbl[] = {
    1,  -25,  0,  41, -25,  0,    1,  10,   0,   41, 10,   0, 1,  0,    0, 41, 0,    0, 1,  0,    0, 41, 0,    0,
    1,  0,    0,  41, 0,    0,    1,  0,    0,   41, 0,    0, 1,  0,    0, 41, 0,    0, 1,  0,    0, 41, 0,    0,
    1,  0,    0,  41, 0,    0,    1,  0,    0,   41, 0,    0, 1,  0,    0, 41, 0,    0, 1,  0,    0, 41, 0,    0,
    1,  0,    0,  41, 0,    0,    1,  0,    0,   41, 0,    0, 1,  0,    0, 41, 0,    0, 1,  0,    0, 41, 0,    0,
    1,  0,    0,  41, 0,    0,    1,  0,    0,   41, 0,    0, 1,  0,    0, 41, 0,    0, 1,  0,    0, 41, 0,    0,
    1,  0,    0,  41, 0,    0,    1,  0,    0,   41, 0,    0, 1,  0,    0, 41, 0,    0, 1,  0,    0, 41, 0,    0,
    1,  0,    0,  41, 0,    0,    1,  0,    0,   41, 0,    0, 1,  -20,  0, 41, -20,  0, 1,  -150, 0, 21, -125, 0,
    41, -150, 0,  1,  0,    -87,  41, 0,    -87, 1,  -100, 0, 21, -100, 0, 41, -100, 0, 1,  -250, 0, 21, -250, 0,
    41, -250, 0,  1,  -100, -451, 41, -100, 0,   1,  150,  0, 41, 150,  0, 1,  -700, 0, 41, -700, 0, 1,  -100, 0,
    41, -100, 0,  1,  100,  0,    41, 100,  0,   1,  -450, 0, 41, -450, 0, 1,  300,  0, 41, 300,  0, 1,  0,    0,
    41, 0,    0,  1,  -150, 0,    41, -150, 0,   1,  0,    0, 41, 0,    0, 1,  -725, 0, 41, -725, 0, 1,  325,  0,
    41, 325,  0,  1,  -55,  0,    41, -55,  0,   1,  0,    0, 41, 0,    0, 1,  75,   0, 21, 25,   0, 41, 75,   0,
    1,  0,    93, 21, 0,    -93,  41, 0,    93,  1,  0,    0, 41, 0,    0, 1,  0,    0, 41, 0,    0, 1,  0,    0,
    41, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_matarou_r2 = {
    { cKF_ckcb_r_npc_1_matarou_r2_tbl, cKF_ds_npc_1_matarou_r2_tbl, cKF_kn_npc_1_matarou_r2_tbl,
      cKF_c_npc_1_matarou_r2_tbl, -1, 41 },
    1.0f,
    41.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    7,
    NULL,
    aNPC_MOUTH_TEX1,
    1,
    -1,
    -1,
    NULL,
    NULL,
};
