diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-03-30 08:28:47 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-03-30 08:28:47 +0200 |
| commit | 1950fe7b0679c6b6486cc7b25bef813db2b1bb4e (patch) | |
| tree | c2098c9ec65f9a9e5fada68c0b51b0217f14b00c /src/building/inc | |
| parent | 06056a9b5e900f67702c509ce1ba2e2351357fb7 (diff) | |
| download | jancity-1950fe7b0679c6b6486cc7b25bef813db2b1bb4e.tar.gz | |
Implement sub-tile collboxes
These will be later used by the pathfinding algorithm.
Diffstat (limited to 'src/building/inc')
| -rw-r--r-- | src/building/inc/building.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/building/inc/building.h b/src/building/inc/building.h index 7763b7d..a0ab539 100644 --- a/src/building/inc/building.h +++ b/src/building/inc/building.h @@ -5,6 +5,7 @@ #include <camera.h> #include <gfx.h> #include <instance.h> +#include <util.h> #include <stdbool.h> #include <stddef.h> @@ -28,6 +29,7 @@ struct building_cfg }; void building_create(const struct building_cfg *cfg, struct building *b); +void building_set_alive_cb(void (*f)(const struct util_rect *dim, bool alive, void *p), void *p); int building_render(const struct building *b, const struct camera *cam, bool sel); instance_hp building_maxhp(const struct building *b); const char *building_str(const struct building *b); |
