mirror of
https://github.com/pret/pmd-sky.git
synced 2026-04-21 09:07:22 -05:00
16 lines
808 B
C
16 lines
808 B
C
#ifndef PMDSKY_DUNGEON_RANGE_H
|
|
#define PMDSKY_DUNGEON_RANGE_H
|
|
|
|
#include "dungeon_mode.h"
|
|
|
|
// Checks if a given target position is in sight from a given origin position.
|
|
// If the origin position is on a hallway or r2 is true, checks if both positions are within <dungeon::display_data::visibility_range> tiles of each other.
|
|
// If the origin position is on a room, checks that the target position is within the boundaries of said room.
|
|
// origin: Origin position
|
|
// target: Target position
|
|
// user_has_dropeye: True to assume the entity standing on the origin position has the dropeye status
|
|
// return: True if the target position is in sight from the origin position
|
|
bool8 IsPositionActuallyInSight(struct position *origin, struct position *target, bool8 user_has_dropeye);
|
|
|
|
#endif //PMDSKY_DUNGEON_RANGE_H
|