summaryrefslogtreecommitdiff
path: root/src/object/palaceArchway.c
blob: 4d48b1db2acd41228827495b1b52ba491a8ecab6 (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
/**
 * @file palaceArchway.c
 * @ingroup Objects
 *
 * @brief Palace Archway object
 */
#include "object.h"
#include "asm.h"
#include "room.h"
#include "tiles.h"

void PalaceArchway_Init(Entity*);
void PalaceArchway_Action1(Entity*);

void PalaceArchway(Entity* this) {
    static void (*const PalaceArchway_Actions[])(Entity*) = {
        PalaceArchway_Init,
        PalaceArchway_Action1,
    };
    PalaceArchway_Actions[this->action](this);
}

void PalaceArchway_Init(Entity* this) {
    this->action = 1;
    this->frameIndex = this->type2;
    this->spriteRendering.b3 = 3;
    this->spritePriority.b0 = 7;
    SetTile(SPECIAL_TILE_105, COORD_TO_TILE(this), this->collisionLayer);
}

void PalaceArchway_Action1(Entity* this) {
}