diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-02-28 23:29:25 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-02-28 23:29:25 +0300 |
commit | a365de1b0ab91f9c057196a601d96d2aed6e48fb (patch) | |
tree | 4c3262c1745337dbd4e6c87525edc0532b517963 /src/body.h | |
parent | 4cfd9c6b96035ca7ccf6444e911b2a908d8500eb (diff) | |
download | takethis-a365de1b0ab91f9c057196a601d96d2aed6e48fb.tar takethis-a365de1b0ab91f9c057196a601d96d2aed6e48fb.tar.xz takethis-a365de1b0ab91f9c057196a601d96d2aed6e48fb.zip |
o_O
Diffstat (limited to 'src/body.h')
-rw-r--r-- | src/body.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/body.h b/src/body.h new file mode 100644 index 0000000..fcb15bc --- /dev/null +++ b/src/body.h @@ -0,0 +1,26 @@ +#ifndef TT_INCLUDED_BODY +#define TT_INCLUDED_BODY + + +typedef struct tt_body { + int x; + int y; + int xrem; + int yrem; + int xvel; + int yvel; + int txrrow; + int txrcol; + int rem; + int anim; + int rate; + void (*collision_act)(struct tt_body *b); + char *msg; + int msglen; +} tt_body; + + +void tt_body_move(int d); + + +#endif |