#include <libintl.h>#include <locale.h>#include "step.h"#include "item.h"#include "tool.h"#include "cell.h"#include "player.h"#include "monster.h"#include "food.h"#include "functions.h"#include "generalfunc.h"#include "gc.h"#include "level.h"#include "save.h"#include "load.h"#include "backpack.h"#include "config.h"#include "armor.h"#include "npc.h"#include "skillpr.h"#include "quest.h"#include "shop.h"#include "quaff.h"#include "combine.h"#include <stdlib.h>#include <string.h>#include "io.h"#include "conf.h"

Functions | |
| void | greetings () |
| Shows greeting message. | |
| void | showstatus (struct player pl, struct leveldata ld) |
| Prints status message. | |
| void | showbattleres (struct exit_code ec) |
| Shows result of battle. | |
| int | the_closest_cell (struct leveldata ld) |
| Returns closest cell in specified direction. | |
| void | addhp_action (struct player *pl) |
| void | shop_respawn_action (struct player *pl) |
| struct exit_code | docommand (struct leveldata ld, char c) |
| Keyboard events handler. | |
| int | move_monsters (struct cell *level, int columns, int rows) |
| Moves near monsters. | |
| void addhp_action | ( | struct player * | pl | ) |
Keyboard events handler.
Call this function form main loop
| ld | - Current level | |
| c | - Command from keyboard |
| void greetings | ( | ) |
Shows greeting message.
| int move_monsters | ( | struct cell * | level, | |
| int | columns, | |||
| int | rows | |||
| ) |
Moves near monsters.

| void shop_respawn_action | ( | struct player * | pl | ) |

| void showbattleres | ( | struct exit_code | ec | ) |
Shows result of battle.
| ec | - exit code of dodmg_tomon (), m_interact () (and so on) functions |

Prints status message.
| pl | - player | |
| ld | - current level |
| int the_closest_cell | ( | struct leveldata | ld | ) |
Returns closest cell in specified direction.
Asks user for direction and returns closest cell in this direction
| ld | - Level |

1.6.3