X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=share%2Fstate.h;h=36dc42b451f9104bfe54f4cbc262cb8f2e4ee0ad;hb=4483dfdacd29073b37a6429ca8e123c80deac75a;hp=7a9dcd8be1838a58a4079c725ee8cbf02ee9d7cc;hpb=c0cac7ac30216fbcd6e18d3e5e864a95e9f6687d;p=neverball diff --git a/share/state.h b/share/state.h index 7a9dcd8..36dc42b 100644 --- a/share/state.h +++ b/share/state.h @@ -8,8 +8,8 @@ struct state { - int (*enter)(void); - void (*leave)(int dt); + int (*enter)(struct state *, struct state *prev); + void (*leave)(struct state *, struct state *next, int id); void (*paint)(int id, float t); void (*timer)(int id, float dt); void (*point)(int id, int x, int y, int dx, int dy);