Module view
View the world.
All functions in this module that take coordinates use a player centered coordinate system.
Functions
can_reach (x, y) | Can we get to this square? |
cell_see_cell (x1, y1, x2, y2) | Can one cell see the other? |
cloud_at (x, y) | What kind of cloud (if any) is here? |
feature_at (x, y) | What is the feature here? |
invisible_monster (x, y) | Did we detect an invisible monster on this square? |
is_safe_square (x, y) | Is it safe here? |
withheld (x, y) | Is this square excluded from movement by mesmerise-like effects? |
Functions
- can_reach (x, y)
-
Can we get to this square?
Parameters:
- x int
- y int
Returns:
-
boolean
- cell_see_cell (x1, y1, x2, y2)
-
Can one cell see the other?
Parameters:
- x1 int
- y1 int
- x2 int
- y2 int
Returns:
-
boolean
- cloud_at (x, y)
-
What kind of cloud (if any) is here?
Parameters:
- x int
- y int
Returns:
-
string or nil
cloud name or nil
- feature_at (x, y)
-
What is the feature here?
Parameters:
- x int
- y int
Returns:
-
string
feature name
- invisible_monster (x, y)
-
Did we detect an invisible monster on this square?
Parameters:
- x int
- y int
Returns:
-
boolean
- is_safe_square (x, y)
-
Is it safe here?
Parameters:
- x int
- y int
Returns:
-
boolean
- withheld (x, y)
-
Is this square excluded from movement by mesmerise-like effects?
Parameters:
- x int
- y int
Returns:
-
boolean