summaryrefslogtreecommitdiff
path: root/include/shot.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/shot.h')
-rw-r--r--include/shot.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/shot.h b/include/shot.h
index c248538..749767f 100644
--- a/include/shot.h
+++ b/include/shot.h
@@ -19,8 +19,7 @@ typedef struct shot_struct
int px;
int py;
- int course;
- int speed;
+ int position;
int gun;
tux_t *author;
@@ -36,6 +35,10 @@ extern void drawShot(shot_t *p);
extern void drawListShot(list_t *listShot);
extern int isConflictWithListShot(list_t *listShot, int x, int y, int w, int h);
extern void eventMoveListShot(list_t *listShot);
+
+extern void moveShot(shot_t *shot, int position, int src_x, int src_y,
+ int dist_x, int dist_y, int dist_w, int dist_h);
+
extern void destroyShot(shot_t *p);
extern void quitShot();