summaryrefslogtreecommitdiff
path: root/src/enemy/mazaalHand.c
blob: ab6326fb576249105096ee22c140e77b7c341572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
 * @file mazaalHand.c
 * @ingroup Enemies
 *
 * @brief Mazaal Hand enemy
 */
#include "entity.h"
#include "hitbox.h"

void sub_08035194(Entity*);

const Hitbox* const gUnk_080CEF34[] = {
    &gUnk_080FD394, &gUnk_080FD394, &gUnk_080FD394, &gUnk_080FD39C, &gUnk_080FD3A4,
    &gUnk_080FD3AC, &gUnk_080FD3AC, &gUnk_080FD3AC, &gUnk_080FD3AC,
};
const Hitbox* const gUnk_080CEF58[] = {
    &gUnk_080FD3B4, &gUnk_080FD3B4, &gUnk_080FD3B4, &gUnk_080FD3BC, &gUnk_080FD3A4,
    &gUnk_080FD3C4, &gUnk_080FD3C4, &gUnk_080FD3C4, &gUnk_080FD3C4,
};

void MazaalHand(Entity* this) {
    if (this->action == 0) {
        this->action = 1;
        this->spriteSettings.flipX = this->type;
        InitAnimationForceUpdate(this, 0);
    }
    sub_08035194(this);
}

void sub_08035194(Entity* this) {
    if (this->type == 0) {
        this->hitbox = (Hitbox*)gUnk_080CEF34[this->frameIndex];
    } else {
        this->hitbox = (Hitbox*)gUnk_080CEF58[this->frameIndex];
    }
}