summaryrefslogtreecommitdiff
path: root/src/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/entity.h b/src/entity.h
index 79094ea..6b8d2e7 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -9,6 +9,7 @@ struct Entity {
void (*update)(Entity *this, struct Game *g);
void (*draw)(Entity *this, struct Game *g);
unsigned int type;
+ const char *name;
int pos[2];
double vel[2];
double rem[2];
@@ -29,4 +30,5 @@ bool entity_collide(Entity *this, int ox, int oy);
bool entity_meet(Entity *this, Entity *other);
Entity *entity_place_meeting(Entity *this, struct Game *g, unsigned int type);
void entity_move(Entity *this, struct Game *g);
-Entity *entity_init(Entity *this, unsigned int type, int x, int y, int w, int h);
+Entity *entity_init(Entity *this, unsigned int type, const char *name,
+ int x, int y, int w, int h);