Go to the source code of this file.
Functions |
bool | valid_pos (int x, int y, bool walkable=true) |
| Check if selected position is valid.
|
bool | save_exists () |
| Check if file of saved game exists.
|
void | find_near_land (int *x, int *y, int radius, int type) |
| Find nearest land of selected type.
|
Function Documentation
void find_near_land |
( |
int * |
x, |
|
|
int * |
y, |
|
|
int |
radius, |
|
|
int |
type |
|
) |
| |
Find nearest land of selected type.
- Parameters:
-
x | X-axis position to start. Return X-axis position of land or -1. |
y | Y-axis position to start. Return Y-axis position of land or -1. |
radius | Size of radius to search. |
type | Type of land to search. |
Check if file of saved game exists.
- Returns:
- True if exists, otherwise false.
bool valid_pos |
( |
int |
x, |
|
|
int |
y, |
|
|
bool |
walkable = true |
|
) |
| |
Check if selected position is valid.
- Parameters:
-
x | X-axis position |
y | Y-axis position |
walkable | Did position is walkable? Default true. |
- Returns:
- true if position is valid, otherwise false.