Import from neverball-1.2.6-9.tar.gz
[neverball-archive.git] / share / state.h
blob3fa152b392e8eb2a4ad22556af0e149363087daf
1 #ifndef STATE_H
2 #define STATE_H
4 #include <stdlib.h>
5 #include <stdio.h>
7 /*---------------------------------------------------------------------------*/
9 struct state
11 int (*enter)(void);
12 void (*leave)(int dt);
13 void (*paint)(int id, float st);
14 void (*timer)(int id, float dt);
15 void (*point)(int id, int x, int y, int dx, int dy);
16 void (*stick)(int id, int a, int v);
17 int (*click)(int b, int d);
18 int (*keybd)(int c, int d);
19 int (*buttn)(int b, int d);
21 int pointer;
22 int gui_id;
25 float time_state(void);
26 void init_state(struct state *);
27 int goto_state(struct state *);
29 void st_paint(void);
30 void st_timer(float);
31 void st_point(int, int, int, int);
32 void st_stick(int, int);
33 int st_click(int, int);
34 int st_keybd(int, int);
35 int st_buttn(int, int);
37 /*---------------------------------------------------------------------------*/
39 #endif