summaryrefslogtreecommitdiff
path: root/src/object/objectAF.c
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2022-07-23 12:43:43 +0200
committeroctorock <79596758+octorock@users.noreply.github.com>2022-07-25 22:45:55 +0200
commit852effa474c159398014da736ade6f0fea454de7 (patch)
tree97da22c4758ca4156dc9fb7ac123c7a3b0a9e9f5 /src/object/objectAF.c
parentccba86d292a0e4c8a0e07325ac4fb25e5a58dc89 (diff)
Rename objects
Diffstat (limited to 'src/object/objectAF.c')
-rw-r--r--src/object/objectAF.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/object/objectAF.c b/src/object/objectAF.c
deleted file mode 100644
index d2707ab4..00000000
--- a/src/object/objectAF.c
+++ /dev/null
@@ -1,61 +0,0 @@
-#include "global.h"
-#include "entity.h"
-#include "physics.h"
-
-void sub_080A0640(Entity*);
-void sub_080A05A4(Entity*);
-void sub_080A05F4(Entity*);
-void sub_080A0624(Entity*);
-
-void ObjectAF(Entity* this) {
- static void (*const actionFuncs[])(Entity*) = {
- sub_080A05A4,
- sub_080A05F4,
- sub_080A0624,
- };
- actionFuncs[this->action](this);
-}
-
-void sub_080A05A4(Entity* this) {
- if (this->type != 2) {
- this->action = 1;
- this->spritePriority.b0 = 6;
- sub_080A0640(this);
- InitializeAnimation(this, 1);
- } else {
- this->action = 2;
- this->y.HALF.HI++;
- this->z.HALF.HI = 0;
- this->spriteOffsetY--;
- InitializeAnimation(this, 3);
- }
-}
-
-void sub_080A05F4(Entity* this) {
- if (this->parent == NULL) {
- this->action = 2;
- InitializeAnimation(this, 2);
- } else {
- if (this->parent->next == NULL) {
- DeleteThisEntity();
- }
- sub_080A0640(this);
- GetNextFrame(this);
- }
-}
-
-void sub_080A0624(Entity* this) {
- GetNextFrame(this);
- if (this->frame & ANIM_DONE) {
- DeleteThisEntity();
- }
-}
-
-void sub_080A0640(Entity* this) {
- if (this->type == 0) {
- PositionRelative(*(((Entity**)this->parent->myHeap) + 4), this, 0, Q_16_16(8.0));
- } else {
- CopyPosition(this->parent, this);
- }
- this->z.HALF.HI = 0;
-}