blob: 5898b204b7e111ccccfb2492b8d7797a00afe5da (
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
|
/**
* @file bell.c
* @ingroup Objects
*
* @brief Bell object
*/
#include "object.h"
void Bell_Init(Entity* this);
void Bell_Action1(Entity* this);
void Bell(Entity* this) {
static void (*const Bell_Actions[])(Entity*) = {
Bell_Init,
Bell_Action1,
};
Bell_Actions[this->action](this);
}
void Bell_Init(Entity* this) {
this->action = 1;
this->spriteSettings.draw = 1;
this->collisionLayer = 1;
this->spritePriority.b0 = 0;
UpdateSpriteForCollisionLayer(this);
InitAnimationForceUpdate(this, 0);
}
void Bell_Action1(Entity* this) {
UpdateAnimationSingleFrame(this);
}
|