summaryrefslogtreecommitdiff
path: root/src/body.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/body.h')
-rw-r--r--src/body.h26
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