summary refs log tree commit diff
path: root/src/entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entity.h')
-rw-r--r--src/entity.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/entity.h b/src/entity.h
index 33aca68..038b62a 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -28,9 +28,13 @@ enum factions {
 	FACTION_ENEMY,
 };
 
+struct damage {
+	int damage, iframes;
+};
+
 struct entity {
 	int (*update)(struct entity *self);
-	int (*hurt)(struct entity *self, int damage);
+	int (*hurt)(struct entity *self, struct damage damage);
 	int (*draw)(struct entity *self, int camx, int camy);
 	void (*free)(struct entity *self);
 	int x, y; // unsigned results in a bunch of weird edge cases