Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

dll/help.c File Reference


Detailed Description

In-game documentation.

Definition in file help.c.

#include "crogue.h"
#include "dll.h"

Go to the source code of this file.

Defines

#define NUM_HELP_PAGES   5
#define num_help_menu_tab_stops   2

Functions

void helptitlebynum (int N, char *buf)
void show_help_page (int page)
void help (void)

Variables

const char * help_titles []
const char * help_how_to_play
const char * help_classes
const char * help_options
const char * help_hints
const char * help_about


Define Documentation

#define num_help_menu_tab_stops   2
 

Definition at line 168 of file help.c.

#define NUM_HELP_PAGES   5
 

Definition at line 26 of file help.c.

Referenced by help().


Function Documentation

void help void   ) 
 

Definition at line 171 of file help.c.

References help_menu_rect, help_menu_tabs, helptitlebynum(), NUM_HELP_PAGES, setTabStops(), show_help_page(), sint, and UI_Menu_Pick().

Referenced by main_menu(), and plr_move().

void helptitlebynum int  N,
char *  buf
[static]
 

Definition at line 36 of file help.c.

References help_titles.

Referenced by help().

void show_help_page int  page  )  [static]
 

Definition at line 184 of file help.c.

References debug_malloc, default_dialog_rect, get_keyname(), help_about, help_classes, help_hints, help_how_to_play, help_options, KEY_ACT_MENU, KEY_CAST, KEY_INVENTORY, KEY_PICKUP, KEY_STAIR, KEY_USE, KEY_WEAR, and UI_Dialog_Display().

Referenced by help().


Variable Documentation

const char* help_about
 

Initial value:

gettext("CalcRogue (" CROGUE_VERSION ")\n"
"by Jim Babcock\n"
"jimmy_b@earthlink.net\n"
"\n"
"This game is postcardware. If you enjoy it, please send the author a"
" postcard at the address below from wherever you live. Feel free to"
" include feature requests and your e-mail address.\n"
"\n"
"  Jim Babcock\n"
"  16 Sweeney Ridge Rd\n"
"  Bedford, Massachusetts\n"
"  01730\n"
"\n"
"This program is released under the GNU General Public License (GPL)."
" Source is available at <http://calcrogue.jimrandomh.org>.\n"
"\n")

Definition at line 144 of file help.c.

Referenced by show_help_page().

const char* help_classes
 

Initial value:

gettext("Classes\n"
"\n"
"Fighter: A simple warrior, skilled with any weapon but not at magic. Fighers"
" are the strongest class.\n"
"\n"
"Wizard: A sorceror, weak with weapons but casting powerful spells. A wizard"
" can't fight well toe-to-toe, but he doesn't need to.\n"
"\n"
"Archer: A marksman, weak in melee but strong at range. An archer moves quickly"
" and shoots accurately.\n"
"\n"
"Priest: A holy warrior, not as well trained in arms as a fighter but with"
" divine powers at his side.\n"
"\n"
"Necromancer: A dark wizard. A necromancer does not often fight, but instead"
" he commands his undead minions to fight for him."
"")

Definition at line 74 of file help.c.

Referenced by show_help_page().

const char* help_hints
 

Initial value:

gettext("Hints\n"
"\n"
"Some items are useful, some items are harmful, some items are useful if used"
" at the right moment but harmful otherwise. Don't use an item until you have"
" some idea what it is. Try dropping it in a shop, and see how much the"
" shopkeeper offers; that's a big clue to whether the item is good or bad.\n"
"\n"
"When you get into trouble, stop, take a look at your inventory, and think"
" your situation. Most deaths are avoidable, but a scroll of teleportation"
" won't do you any good if you forget you have it!\n"
"\n"
"Never fight a big group all at once. Instead, face them one at a time in a"
" corridor.\n"
"\n"
"Some monsters shouldn't be fought up close, but from a distance with spells or"
" with arrows. In particular, watch out for mimics.\n"
"\n"
"Some monsters can open doors, but some can't. Use this to your advantage.")

Definition at line 123 of file help.c.

Referenced by show_help_page().

const char* help_how_to_play
 

Initial value:

gettext("How to Play\n"
"\n"
"At any time, you can press [%s] to get a list of commands and the"
" corresponding keys. This section does not list nearly every possibility. If"
" it occurs to you to do something, check the menu - it's probably there!\n"
"\n"
"Your character moves in each of the cardinal directions, plus diagonals."
" Because of the importance of diagonal movement, the arrow keys are not used;"
" instead, use the number pad. You start the game in a simple dungeon, so start"
" exploring."
"\n"
"Odds are pretty soon, you'll run into a monster, which is represented on the"
" map by a letter which tells you what it is. To attack, simply move onto the"
" monster's square. Your hit points are shown on the status line, at the bottom"
" of the screen. If they get low, run away!\n"
"\n"
"You will see plenty of items lying around, and you start with some useful"
" things as well. Press [%s] to see your current inventory. If you see an item"
" on the map, move onto its square and you"
" will be asked if you want to pick it up. (If you have turned this off, press"
" [%s] to pick up items.) Press [%s] to equip armor and weapons you find, and"
" [%s] to use potions, scrolls, and other items. Be warned that while some "
" items are beneficial, others are enchanted with harmful magic.\n"
"\n"
"If you are playing a magic user, the first thing you should do is use your"
" spellbook. Later, you can cast spells you have studied with [%s].\n"
"\n"
"Your quest is to find and bring back the Amulet of Yendor. Good luck!")

Definition at line 43 of file help.c.

Referenced by show_help_page().

const char* help_options
 

Initial value:

gettext("Options\n"
"\n"
"Auto-pickup: Controls whether, when moving onto an item, you will"
" automatically pick it up. (default: prompt).\n"
"\n"
"Auto-follow-stairs: If set to yes, when moving onto stairs you will"
" automatically follow them. If set to prompt, you will be asked whether"
" to follow them; if off, you must follow stairs manually (press [%s]"
" (default: prompt).\n"
"\n"
"Tile size (calculator only): Toggles between small (5x5) and large"
" (7x7) tilesets. (default: small).\n"
"\n"
"Font size (calculator only): Toggles between small (4x6) and large"
" (6x8) font. (default: small).\n"
"\n"
"Archive saves (calculator only): If set, saved games and levels will"
" be moved into archive memory. Turn this off if archive memory is full."
" (default: yes).\n"
"\n"
"Archive scores (calculator only): If set, high scores will be moved"
" into archive memory. If this is off, you may lose your high scores"
" when your calculator is reset. (default: yes).\n"
"\n"
"Use grayscale (calculator only): Enables grayscale graphics, which"
" look better but will drain your batteries faster. (default: yes).")

Definition at line 94 of file help.c.

Referenced by show_help_page().

const char* help_titles[] [static]
 

Initial value:

 {
    gettext("How to play"),
    gettext("Game Options"),
    gettext("Classes"),
    gettext("Hints"),
    gettext("About")
    }

Definition at line 27 of file help.c.

Referenced by helptitlebynum().


Generated on Thu May 20 13:12:12 2004 for CalcRogue by doxygen 1.3.6