|
Atrinik Client 2.5
|
#include <global.h>Go to the source code of this file.
Defines | |
| #define | DIRECTIONS_NUM 9 |
Functions | |
| void | move_keys (int num) |
| int | dir_from_tile_coords (int tx, int ty) |
Variables | |
| static const char *const | directions_move [DIRECTIONS_NUM] |
| static const char *const | directions_run [DIRECTIONS_NUM] |
| static const int | directions_fire [DIRECTIONS_NUM] |
Handles movement events.
Definition in file move.c.
| int dir_from_tile_coords | ( | int | tx, |
| int | ty | ||
| ) |
Transform tile coordinates into direction, which can be used as a result for functions like move_keys() or directions_move (return value - 1).
| tx | Tile X. |
| ty | Tile Y. |
const int directions_fire[DIRECTIONS_NUM] [static] |
const char* const directions_move[DIRECTIONS_NUM] [static] |
const char* const directions_run[DIRECTIONS_NUM] [static] |
1.7.4