diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-03-27 17:20:27 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-03-27 17:20:58 (EDT) |
commit | 38f7c9f909815df9886b532e2e631c91ca6db1a6 (patch) | |
tree | 0275b8b838af2e897cd8e3227220e3a789fe0cfa /src/ball.c | |
parent | f5afccb93da63988655817cf49741f9c0955f1a5 (diff) | |
download | dodge-balls-38f7c9f909815df9886b532e2e631c91ca6db1a6.zip dodge-balls-38f7c9f909815df9886b532e2e631c91ca6db1a6.tar.gz dodge-balls-38f7c9f909815df9886b532e2e631c91ca6db1a6.tar.bz2 |
ball: Add map member
Diffstat (limited to 'src/ball.c')
-rw-r--r-- | src/ball.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -21,6 +21,7 @@ #include <stdlib.h> #include "ball.h" #include "collision.h" +#include "map.h" #include "tileset.h" #include "output.h" @@ -36,12 +37,14 @@ struct db_ball { double s; struct db_tileset *tilesets; int gid; + struct db_map *map; struct db_ball *next; }; struct db_ball * db_ball_new(int x, int y, int r, int a, int d, int sr, double s, - struct db_tileset *tilesets, int gid, struct db_ball *prev) + struct db_tileset *tilesets, int gid, struct db_map *map, + struct db_ball *prev) { struct db_ball *ball; @@ -68,6 +71,7 @@ db_ball_new(int x, int y, int r, int a, int d, int sr, double s, ball->s = s; ball->tilesets = tilesets; ball->gid = gid; + ball->map = map; if (prev != NULL) { prev->next = ball; |