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 | 82c61e3d1d97c6e829bfbe0e35539abfe75d1380 (patch) | |
| tree | 9354b82ba202229e39e8fa04f4d1cd900ce39d3a /src/building/inc | |
| parent | 638dbd0af112aa730c04af776fbd15dffee43337 (diff) | |
| download | rts-82c61e3d1d97c6e829bfbe0e35539abfe75d1380.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); |
