#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_a_r2_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_a_r2_tbl[] = { 2, 3, 2, 2, 3, 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, 4, 3, 2, 4, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 4, 3, 2, 2, 2 };

s16 cKF_c_npc_1_a_r2_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_a_r2_tbl[] = {
    1,   0,    0,    31,  0,    0,    1,    0,    0,    15,   -25,  0,    31,   0,    0,  1,    0,   0,  31,   0,
    0,   1,    0,    0,   31,   0,    0,    1,    70,   0,    15,   90,   0,    31,   70, 0,    1,   0,  0,    31,
    0,   0,    1,    0,   0,    31,   0,    0,    1,    0,    0,    31,   0,    0,    1,  0,    0,   31, 0,    0,
    1,   0,    0,    31,  0,    0,    1,    0,    0,    31,   0,    0,    1,    0,    0,  31,   0,   0,  1,    0,
    0,   31,   0,    0,   1,    0,    0,    31,   0,    0,    1,    0,    0,    31,   0,  0,    1,   0,  0,    31,
    0,   0,    1,    0,   0,    31,   0,    0,    1,    0,    0,    31,   0,    0,    1,  0,    0,   31, 0,    0,
    1,   0,    0,    31,  0,    0,    1,    0,    0,    31,   0,    0,    1,    0,    0,  31,   0,   0,  1,    0,
    0,   31,   0,    0,   1,    0,    0,    31,   0,    0,    1,    0,    0,    31,   0,  0,    1,   0,  0,    31,
    0,   0,    1,    0,   0,    31,   0,    0,    1,    0,    0,    31,   0,    0,    1,  0,    0,   31, 0,    0,
    1,   0,    0,    31,  0,    0,    1,    0,    0,    31,   0,    0,    1,    20,   0,  2,    20,  0,  16,   0,
    0,   31,   20,   0,   1,    0,    -77,  16,   0,    78,   31,   0,    -75,  1,    0,  0,    31,  0,  0,    1,
    -50, -74,  3,    -52, 0,    18,   0,    0,    31,   -50,  -73,  1,    -278, 0,    31, -278, 0,   1,  140,  0,
    31,  140,  0,    1,   -692, 0,    31,   -692, 0,    1,    -115, 0,    31,   -115, 0,  1,    400, 0,  31,   400,
    0,   1,    -548, -74, 3,    -550, 0,    18,   -498, 0,    31,   -548, -73,  1,    98, 0,    31,  98, 0,    1,
    0,   0,    31,   0,   0,    1,    -792, 0,    31,   -792, 0,    1,    0,    0,    31, 0,    0,   1,  -545, 0,
    31,  -545, 0,    1,   293,  0,    31,   293,  0,    1,    -500, 0,    31,   -500, 0,  1,    0,   0,  31,   0,
    0,   1,    13,   -76, 3,    10,   0,    17,   50,   0,    31,   13,   -74,  1,    0,  142,  16,  0,  -150, 31,
    0,   150,  1,    0,   0,    31,   0,    0,    1,    70,   0,    31,   70,   0,    1,  0,    0,   31, 0,    0
};

aNPC_Animation_c cKF_ba_r_npc_1_a_r2 = {
    { cKF_ckcb_r_npc_1_a_r2_tbl, cKF_ds_npc_1_a_r2_tbl, cKF_kn_npc_1_a_r2_tbl, cKF_c_npc_1_a_r2_tbl, -1, 31 },
    1.0f,
    31.0f,
    cKF_FRAMECONTROL_REPEAT,
    0.0f,
    NULL,
    aNPC_EYE_TEX0,
    5,
    NULL,
    aNPC_MOUTH_TEX2,
    4,
    -1,
    -1,
    NULL,
    NULL,
};
