#include "hack.h"
#include "quest.h"
#include "qtext.h"
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 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 |
void check_tutorial_command | ( | char | c ) |
References check_tutorial_command_buffer, CHECK_TUTORIAL_COMMAND_BUFSIZE, check_tutorial_command_count, check_tutorial_command_message, check_tutorial_command_pointer, you::dx, you::dy, FALSE, iflags, moves, instance_flags::num_pad, QT_T_DIAGONALS_NUM, QT_T_DIAGONALS_VI, QT_T_FARMOVE_NUMPAD, QT_T_FARMOVE_VIKEYS, QT_T_FIRE, QT_T_LOOK_REMINDER, QT_T_MASSINVENTORY, QT_T_MASSUNEQUIP, QT_T_MULTIDROP, QT_T_REPEAT_NUMPAD, QT_T_REPEAT_VIKEYS, QT_T_SECONDWIELD, QT_T_TRAVEL, TRUE, and u.
Referenced by rhack().
void check_tutorial_farlook | ( | int | x, |
int | y | ||
) |
References check_tutorial_location(), check_tutorial_message(), check_tutorial_oclass(), flags, rm::glyph, glyph_at(), glyph_is_cmap, glyph_is_invisible, glyph_is_monster, glyph_is_object, glyph_is_pet, glyph_is_ridden_monster, glyph_is_trap, glyph_to_obj, m_at, MON_AT, objects, QT_T_LOOK_HOSTILE, QT_T_LOOK_INVISIBLE, QT_T_LOOK_PEACEFUL, QT_T_LOOK_TAME, TRUE, flag::tutorial, u, you::ux, and you::uy.
Referenced by do_look().
int check_tutorial_location | ( | int | lx, |
int | ly, | ||
boolean | from_farlook | ||
) |
References ALTAR, check_tutorial_message(), CORR, D_ISOPEN, d_level::dlevel, FALSE, flags, FOUNTAIN, rm::glyph, glyph_is_trap, GRAVE, IS_DOOR, IS_DRAWBRIDGE, LAVAPOOL, levl, MOAT, POOL, QT_T_ALTAR, QT_T_CORRIDOR, QT_T_DOORS, QT_T_DRAWBRIDGE, QT_T_FOUNTAIN, QT_T_GRAVE, QT_T_L1UPSTAIRS, QT_T_LAVA, QT_T_POOLORMOAT, QT_T_SECRETDOOR, QT_T_SINK, QT_T_STAIRS, QT_T_THRONE, QT_T_TRAP, SCORR, SDOOR, SINK, sstairs, STAIRS, stairway::sx, stairway::sy, THRONE, TRUE, flag::tutorial, rm::typ, u, stairway::up, you::uz, xdnladder, xdnstair, xupladder, xupstair, ydnladder, ydnstair, yupladder, and yupstair.
Referenced by check_tutorial_farlook(), and maybe_tutorial().
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().
int check_tutorial_oclass | ( | int | oclass ) |
References AMULET_CLASS, ARMOR_CLASS, check_tutorial_message(), COIN_CLASS, FOOD_CLASS, GEM_CLASS, POTION_CLASS, QT_T_ITEM_AMULET, QT_T_ITEM_ARMOR, QT_T_ITEM_BOOK, QT_T_ITEM_FOOD, QT_T_ITEM_GEM, QT_T_ITEM_GOLD, QT_T_ITEM_POTION, QT_T_ITEM_RING, QT_T_ITEM_SCROLL, QT_T_ITEM_STATUE, QT_T_ITEM_TOOL, QT_T_ITEM_WAND, QT_T_ITEM_WEAPON, RING_CLASS, ROCK_CLASS, SCROLL_CLASS, SPBOOK_CLASS, TOOL_CLASS, WAND_CLASS, and WEAPON_CLASS.
Referenced by check_tutorial_farlook(), and dotypeinv().
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().
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().
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().
int check_tutorial_command_message = 0 [static] |
Referenced by check_tutorial_command(), and maybe_tutorial().
int check_tutorial_command_pointer = 0 [static] |
Referenced by check_tutorial_command().