step.c File Reference

#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"
Include dependency graph for step.c:
This graph shows which files directly or indirectly include this file:

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.

Function Documentation

void addhp_action ( struct player pl  ) 
struct exit_code docommand ( struct leveldata  ld,
char  c 
) [read]

Keyboard events handler.

Call this function form main loop

Parameters:
ld - Current level
c - Command from keyboard
Returns:
Exit code to main loop
void greetings (  ) 

Shows greeting message.

int move_monsters ( struct cell level,
int  columns,
int  rows 
)

Moves near monsters.

Returns:
OK if player is alive after possible monsters attack, EXIT_ON_DEATH otherwise

Here is the call graph for this function:

void shop_respawn_action ( struct player pl  ) 

Here is the call graph for this function:

void showbattleres ( struct exit_code  ec  ) 

Shows result of battle.

Parameters:
ec - exit code of dodmg_tomon (), m_interact () (and so on) functions

Here is the call graph for this function:

void showstatus ( struct player  pl,
struct leveldata  ld 
)

Prints status message.

Parameters:
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

Parameters:
ld - Level
Returns:
Index of cell in struct leveldata::level array

Here is the call graph for this function:

Generated on Mon Nov 15 10:27:19 2010 for Tales of Paraverse by  doxygen 1.6.3