diff options
Diffstat (limited to 'src/room.h')
-rw-r--r-- | src/room.h | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -1,23 +1,20 @@ #ifndef TAKETHIS_INCLUDED_ROOM #define TAKETHIS_INCLUDED_ROOM - -#include <SDL2/SDL.h> #include "body.h" - +#include <SDL2/SDL.h> #define TT_ROOM_W 20 #define TT_ROOM_H 16 typedef struct tt_room { - SDL_Rect *floor[TT_ROOM_H][TT_ROOM_W]; - tt_body *walls[TT_ROOM_H][TT_ROOM_W]; - tt_body *bodies; - int bodies_count; + SDL_Rect * floor[TT_ROOM_H][TT_ROOM_W]; + tt_body * walls[TT_ROOM_H][TT_ROOM_W]; + tt_body * bodies; + int bodies_count; struct tt_room *neighbours[4]; } tt_room; - void tt_room_draw_background(tt_room *room); void tt_room_draw_foreground(tt_room *room); @@ -25,5 +22,4 @@ int tt_room_collide(tt_room *room, SDL_Rect *box); int tt_room_out(tt_room *room, SDL_Rect *box); - #endif |