/* This file was generated by scramble.py. */
#line 1 "src/map.py"
#ifndef _MAP_
#define _MAP_
typedef struct Map Map;
#line 1
#include "main.h"
#include "camera.h"
#line 4
#include "tile.h"
#line 6
struct Map {
    int w, h;
    int tw, th;
    int * tiles;
    int * crowded;
    int start_x, start_y;
    bool uptodate;
    int update_time;
};
#line 20
Map * map_create(int w, int h, int tw, int th);
#line 30
int map_tx(float x);
#line 34
int map_ty(float y);
#line 38
int map_get(Map * self, int x, int y);
#line 41
void map_put(Map * self, int x, int y, int t);
#line 45
#define CROWDED self->crowded [imod(map_tx(x), self->w) + self->w * imod(map_ty(y), self->h)]
#line 47
void map_crowd(Map * self, float x, float y);
#line 50
void map_uncrowd(Map * self, float x, float y);
#line 53
int map_crowded(Map * self, float x, float y);
#line 62
void map_generate(Map * self);
#line 98
void map_render(Map * self, Camera * cam);
#line 143
void map_update_overview_tile(Map * map, Tile * tile);
#line 169
Tile * map_create_overview_tile(Map * map);
#endif
/* This file was generated by scramble.py. */
