]> git.lizzy.rs Git - cclosure.git/blob - player.h
Fix obi-wan problem
[cclosure.git] / player.h
1 #ifndef _PLAYER_H_
2 #define _PLAYER_H_
3
4 #include <stdbool.h>
5
6 typedef struct Player {
7         int age;
8         char *name;
9         
10         void *closure;
11         bool (*adult)();
12         void (*print)();
13         void (*birthday)();
14         int (*compare)(struct Player *other);
15         void (*delete)();
16 } Player;
17
18 Player *player(char *name);
19
20 #endif