#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_hyuuu_r1_tbl[] = { 56, 7, 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_hyuuu_r1_tbl[] = { 2, 2, 2, 15, 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, 23, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 24, 2, 2, 2, 2, 2 };

s16 cKF_c_npc_1_hyuuu_r1_tbl[] = { 0,    0, 900, 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_hyuuu_r1_tbl[] = {
    1,  0,    0, 51, 0,    0,  1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0, 21, 0,    0,
    22, 10,   0, 23, -15,  0,  24, 20,   0, 25, -25,  0, 26, 25,   0, 27, -25,  0, 28, 25,   0, 29, -20,  0,
    30, 15,   0, 31, -5,   0,  32, 5,    0, 33, 0,    0, 51, 0,    0, 1,  50,   0, 51, 50,   0, 1,  0,    0,
    51, 0,    0, 1,  0,    0,  51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0, 1,  0,    0,  51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0, 1,  0,    0,  51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0, 1,  0,    0,  51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0, 1,  0,    0,  51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0, 1,  0,    0,  51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  0,    0,
    51, 0,    0, 1,  0,    0,  21, 0,    0, 22, -10,  0, 23, 15,   0, 24, -20,  0, 25, 25,   0, 26, -25,  0,
    27, 25,   0, 28, -25,  -2, 29, 20,   0, 30, -5,   0, 31, -10,  0, 32, 15,   0, 33, -25,  0, 34, 25,   0,
    35, -25,  0, 36, 25,   0,  37, -20,  0, 38, 15,   0, 39, -5,   0, 40, 5,    0, 41, 0,    0, 51, 0,    0,
    1,  -50,  0, 51, -50,  0,  1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0, 1,  -53,  0, 51, -53,  0,
    1,  -270, 0, 51, -270, 0,  1,  140,  0, 51, 140,  0, 1,  -693, 0, 51, -693, 0, 1,  -115, 0, 51, -115, 0,
    1,  403,  0, 51, 403,  0,  1,  -548, 0, 51, -548, 0, 1,  98,   0, 51, 98,   0, 1,  0,    0, 51, 0,    0,
    1,  -793, 0, 51, -793, 0,  1,  0,    0, 51, 0,    0, 1,  -545, 0, 51, -545, 0, 1,  293,  0, 51, 293,  0,
    1,  -500, 0, 51, -500, 0,  1,  -10,  0, 29, -10,  0, 30, -20,  0, 31, 5,    0, 32, -30,  0, 33, 15,   0,
    34, -35,  0, 35, 15,   0,  36, -25,  0, 37, 0,    0, 38, -10,  0, 39, -20,  0, 40, 0,    0, 41, -25,  0,
    42, 5,    0, 43, -20,  0,  44, 0,    0, 45, -20,  0, 46, 0,    0, 47, -20,  0, 48, 0,    0, 49, -15,  0,
    50, -5,   0, 51, -10,  0,  1,  -51,  0, 51, -51,  0, 1,  0,    0, 51, 0,    0, 1,  0,    0, 51, 0,    0,
    1,  0,    0, 51, 0,    0,  1,  0,    0, 51, 0,    0
};

u8 npc_1_hyuuu_r11_tex_index[] = { 0, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
                                   3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 };

aNPC_Animation_c cKF_ba_r_npc_1_hyuuu_r1 = {
    { cKF_ckcb_r_npc_1_hyuuu_r1_tbl, cKF_ds_npc_1_hyuuu_r1_tbl, cKF_kn_npc_1_hyuuu_r1_tbl, cKF_c_npc_1_hyuuu_r1_tbl, -1,
      51 },
    1.0f,
    51.0f,
    cKF_FRAMECONTROL_STOP,
    -5.0f,
    npc_1_hyuuu_r11_tex_index,
    aNPC_EYE_TEX0,
    -1,
    NULL,
    aNPC_MOUTH_TEX0,
    3,
    1,
    eEC_EFFECT_KAZE,
    NULL,
    NULL,
};
