summaryrefslogtreecommitdiffstats
path: root/src/char/char.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/char.h')
-rw-r--r--src/char/char.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/char/char.h b/src/char/char.h
index ad0a74d..516974d 100644
--- a/src/char/char.h
+++ b/src/char/char.h
@@ -51,7 +51,8 @@ struct mf_char {
SDL_Color head_color;
SDL_Color smil_color;
SDL_Color eyes_color;
- int (*update)(struct mf_char *, int);
+ int (*update)(struct mf_char *);
+ int (*step)(struct mf_char *);
int (*render)(struct mf_char *, SDL_Renderer *);
void (*destroy)(struct mf_char *);
};
@@ -66,6 +67,7 @@ mf_char_new(size_t size);
return NULL; \
}; \
c->update = &_mf_##name##_update; \
+ c->step = &_mf_##name##_step; \
c->render = &_mf_##name##_render; \
c->destroy = &_mf_##name##_destroy; \
t_c = (struct mf_##name *) c; \