#ifndef SCENE_H #define SCENE_H struct state; struct scene { char *id; void (*tick)(struct state *); void (*end)(struct state *); }; void switch_to(struct state *state, struct scene *(*scene_func)(struct state *)); #endif