Defines | Functions | Variables

tutorial.c File Reference

#include "hack.h"
#include "quest.h"
#include "qtext.h"
Include dependency graph for tutorial.c:

Defines

#define CHECK_TUTORIAL_COMMAND_BUFSIZE   100
#define SATIATED   0
#define NOT_HUNGRY   1
#define HUNGRY   2
#define WEAK   3
#define FAINTING   4
#define FAINTED   5
#define STARVED   6

Functions

boolean check_tutorial_message (int msgnum)
int check_tutorial_oclass (int oclass)
int check_tutorial_location (int lx, int ly, boolean from_farlook)
void check_tutorial_farlook (int x, int y)
void check_tutorial_command (char c)
void maybe_tutorial ()
int tutorial_redisplay ()

Variables

static int check_tutorial_command_message = 0
static char check_tutorial_command_buffer [CHECK_TUTORIAL_COMMAND_BUFSIZE]
static int check_tutorial_command_pointer = 0
static int check_tutorial_command_count = 0

Define Documentation

#define CHECK_TUTORIAL_COMMAND_BUFSIZE   100

Referenced by check_tutorial_command().

#define FAINTED   5
#define FAINTING   4
#define HUNGRY   2

Referenced by maybe_tutorial().

#define NOT_HUNGRY   1
#define SATIATED   0

Referenced by maybe_tutorial().

#define STARVED   6
#define WEAK   3

Function Documentation

void check_tutorial_command ( char  c )
void check_tutorial_farlook ( int  x,
int  y 
)
int check_tutorial_location ( int  lx,
int  ly,
boolean  from_farlook 
)
boolean check_tutorial_message ( int  msgnum )

References com_pager(), FALSE, flags, flush_screen(), pl_tutorial, QT_T_FIRST, TRUE, and flag::tutorial.

Referenced by check_special_room(), check_tutorial_farlook(), check_tutorial_location(), check_tutorial_oclass(), docall(), done(), doquickwhatis(), getobj(), maybe_tutorial(), and read_engr_at().

Here is the call graph for this function:

Here is the caller graph for this function:

int check_tutorial_oclass ( int  oclass )
void maybe_tutorial (  )

References attribs::a, A_MAX, AMULET_CLASS, ARROW, BAG_OF_HOLDING, Blind, BOOMERANG, BOW, can_advance_something(), can_pray(), cansee, check_tutorial_command_message, check_tutorial_location(), check_tutorial_message(), CHEST, Confusion, CROSSBOW, CROSSBOW_BOLT, DAGGER, DART, DEADMONSTER, d_level::dlevel, d_level::dnum, DWARVISH_SPEAR, ELVEN_ARROW, ELVEN_BOW, ELVEN_DAGGER, ELVEN_SPEAR, FALSE, flags, FLINT, fmon, glyph_at(), glyph_is_invisible, glyph_is_monster, Hallucination, HELM_OF_BRILLIANCE, HUNGRY, ICE_BOX, in_trouble(), inside_shop(), invent, IS_ALTAR, is_metallic, isok(), JAVELIN, LARGE_BOX, level, levl, MAXSPELL, mines_dnum, moves, monst::mtame, monst::mx, monst::my, near_capacity(), monst::nmon, NO_SPELL, obj::nobj, obj::oartifact, dlevel_t::objects, objects, objclass::oc_class, OILSKIN_SACK, ORCISH_ARROW, ORCISH_BOW, ORCISH_DAGGER, ORCISH_SPEAR, otmp, obj::otyp, PM_ARCHEOLOGIST, PM_PRIEST, PM_ROGUE, POT_WATER, POTION_CLASS, QT_T_ABILDOWN, QT_T_ABILUP, QT_T_ACIMPROVED, QT_T_ARTIFACT, QT_T_BURDEN, QT_T_CALLMONSTER, QT_T_CASTER_ARMOR, QT_T_CHECK_ITEMS, QT_T_DAMAGED, QT_T_DGN_OVERVIEW, QT_T_DLEVELCHANGE, QT_T_ELBERETH, QT_T_ENGULFED, QT_T_ENHANCE, QT_T_EQUIPCURSE, QT_T_FIRE, QT_T_GAINEDEXP, QT_T_HUNGER, QT_T_ITEM_CONTAINER, QT_T_LEVELUP, QT_T_LOOK_INVISIBLE, QT_T_MAILSCROLL, QT_T_MAJORTROUBLE, QT_T_MELEE, QT_T_MESSAGERECALL, QT_T_MINES, QT_T_OBJECTIVE, QT_T_POLYSELF, QT_T_PROJECTILES, QT_T_PWEMPTY, QT_T_PWUSED, QT_T_RANDAPPEARANCE, QT_T_RANKUP, QT_T_SATIATION, QT_T_SAVELOAD, QT_T_SHOPBUY, QT_T_SHOPENTRY, QT_T_SOKOBAN, QT_T_SPELLS, QT_T_STATUS, QT_T_THROWNWEAPONS, QT_T_VIEWTUTORIAL, QT_T_WEAPON_SKILL, QT_T_WELCOME, RING_CLASS, ROCK, Role_if, SACK, SATIATED, SCR_BLANK_PAPER, SCR_MAIL, SCROLL_CLASS, SHURIKEN, Sick, SILVER_ARROW, SILVER_DAGGER, Slimed, SLING, sokoban_dnum, SPBOOK_CLASS, SPE_BLANK_PAPER, SPE_BOOK_OF_THE_DEAD, SPE_FORCE_BOLT, SPEAR, spellid, Stunned, flag::tutorial, you::twoweap, u, you::uac, uarm, uarmf, uarmg, uarmh, uarms, you::uen, you::uenmax, you::uexp, you::uhp, you::uhpmax, you::uhs, you::ulevel, you::umonnum, you::umonster, UNENCUMBERED, uwep, you::ux, you::uy, you::uz, WAND_CLASS, weapon_dam_bonus(), YA, YUMI, and zeroobj.

Referenced by moveloop().

Here is the call graph for this function:

Here is the caller graph for this function:

int tutorial_redisplay (  )

References any::a_int, add_menu, ATR_NONE, com_pager(), create_nhwindow, end_menu, FALSE, flush_screen(), mi::item, name, NHW_MENU, NO_GLYPH, PICK_ONE, pl_tutorial, qt_com_firstline(), QT_T_FIRST, QT_T_MAX, select_menu, and start_menu.

Referenced by dohelp().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

char check_tutorial_command_buffer[CHECK_TUTORIAL_COMMAND_BUFSIZE] [static]

Referenced by check_tutorial_command().

int check_tutorial_command_count = 0 [static]

Referenced by check_tutorial_command().

Referenced by check_tutorial_command().