various: sub-tile lighting; nicer visibility calculations
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I0f0a0c12db76cc8e0f4c8ccc72ca4b826a6a6964
This commit is contained in:
parent
5b640dcefd
commit
00b3798ae0
8 changed files with 206 additions and 47 deletions
|
|
@ -21,7 +21,9 @@ void get_random_floor_tile(Map *map, int *x, int *y, int attempts);
|
|||
// Visibility / Fog of War
|
||||
int is_in_view_range(int x, int y, int view_x, int view_y, int range);
|
||||
int has_line_of_sight(const Map *map, int x1, int y1, int x2, int y2);
|
||||
void calculate_visibility(Map *map, int x, int y);
|
||||
void compute_lighting(Map *map, const LightSource *sources, int num_sources);
|
||||
int tile_brightness(const Map *map, int tx, int ty);
|
||||
int is_tile_revealed(const Map *map, int tx, int ty);
|
||||
int can_see_entity(const Map *map, int from_x, int from_y, int to_x, int to_y, int range);
|
||||
|
||||
#endif // MAP_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue