projects
/
neverball
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix accidental switch/teleporter behavior changes
[neverball]
/
share
/
state.h
diff --git
a/share/state.h
b/share/state.h
index
0d7ebf0
..
36dc42b
100644
(file)
--- a/
share/state.h
+++ b/
share/state.h
@@
-8,9
+8,9
@@
struct state
{
struct state
{
- int (*enter)(void);
- void (*leave)(int dt);
- void (*paint)(int id, float st);
+ 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);
void (*stick)(int id, int a, int v);
void (*timer)(int id, float dt);
void (*point)(int id, int x, int y, int dx, int dy);
void (*stick)(int id, int a, int v);
@@
-28,7
+28,7
@@
float time_state(void);
void init_state(struct state *);
int goto_state(struct state *);
void init_state(struct state *);
int goto_state(struct state *);
-void st_paint(void);
+void st_paint(float);
void st_timer(float);
void st_point(int, int, int, int);
void st_stick(int, int);
void st_timer(float);
void st_point(int, int, int, int);
void st_stick(int, int);