summaryrefslogtreecommitdiff
path: root/src/object/frozenFlower.c
blob: 0b93b1de2eeb5210f71911a9d5754bd03cffa946 (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
/**
 * @file frozenFlower.c
 * @ingroup Objects
 *
 * @brief Frozen Flower object
 */
#include "object.h"

void FrozenFlower_Init(Entity*);
void FrozenFlower_Action1(Entity*);

void FrozenFlower(Entity* this) {
    static void (*const FrozenFlower_Actions[])(Entity*) = {
        FrozenFlower_Init,
        FrozenFlower_Action1,
    };
    FrozenFlower_Actions[this->action](this);
}

void FrozenFlower_Init(Entity* this) {
    this->action = 1;
    this->frameIndex = this->type;
    this->spriteRendering.b3 = 3;
    this->spritePriority.b0 = 7;
}

void FrozenFlower_Action1(Entity* this) {
}