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