summaryrefslogtreecommitdiff
path: root/src/entity.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.c')
-rw-r--r--src/entity.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/entity.c b/src/entity.c
index 65af918..8fdaa9e 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -96,3 +96,9 @@ entity_move(Entity *this, Game *g)
}
}
}
+
+Entity *
+entity_init(Entity *this, unsigned int type, int x, int y)
+{
+ return entityinits[type - 1](this, x, y);
+}