#include <constdata.h>
Definition at line 12 of file constdata.h.
Data Fields | |
| filelink | tileoffset |
| Position in the data file of the tiles table. | |
| filelink | itemoffset |
| Item descriptions table. | |
| filelink | generate_item |
| Item generation table. | |
| filelink | generate_currency |
| Pointer to 'gold piece' item description. | |
| filelink | startinginventory |
| Player's starting inventory. | |
| filelink | spelllist |
| List of spells. | |
| filelink | playerclasses |
| Table of player classes. | |
| filelink | stsizes |
| filelink | stdata |
| filelink | shopdescs |
| filelink | titlescreen_light_plane |
| filelink | titlescreen_dark_plane |
| uint | itementries |
| Number of item types. | |
| uint | numspells |
| Number of spells. | |
| uint | numplayerclasses |
| Number of player classes. | |
| uint | tutorialclass |
| Index of the 'tutorial' player class. | |
| uint | numshuffletabs |
| uint | shuffletabsize |
| uint | numshoptypes |
| uint | padding |
| filelink | mainmap |
| filelink | tutorialmap |
| filelink | misc_links |
|
|
Pointer to 'gold piece' item description. For handling shopkeepers, the game needs to know where the 'gold piece' item description is; this points to it.
Definition at line 44 of file constdata.h. Referenced by give_gold(). |
|
|
Item generation table. Whenever an item is to be generated, the game will dereference this pointer. Since pointers in the data file may correspond to probability tables, this allows random item selection.
Definition at line 37 of file constdata.h. Referenced by place_items(). |
|
|
Number of item types.
Definition at line 76 of file constdata.h. Referenced by init_discoveries(), list_discoveries(), restore_game(), and save_game(). |
|
|
Item descriptions table. Each item is kept track of with an integer, which corresponds to its position in the item types array. This points to that array. When the data file is loaded, this pointer is dereferenced and stored in w->itemdescs for easier use. (To get the description of an item, do not use this directly; instead, use the ITEMDESC or ITEMDESCN macro.)
Definition at line 29 of file constdata.h. Referenced by link_data_file(). |
|
|
Definition at line 85 of file constdata.h. Referenced by main_menu(). |
|
|
Definition at line 88 of file constdata.h. |
|
|
Number of player classes.
Definition at line 78 of file constdata.h. Referenced by init_player(). |
|
|
Definition at line 82 of file constdata.h. Referenced by place_shop(). |
|
|
Definition at line 80 of file constdata.h. Referenced by init_shuffle_tab(). |
|
|
Number of spells.
Definition at line 77 of file constdata.h. Referenced by init_spells(), numSpellsKnown(), restore_game(), and save_game(). |
|
|
Definition at line 83 of file constdata.h. |
|
|
Table of player classes. Points to the list of player classes, an array of classdesc. On load, this is dereferenced and cached as w->playerclasses; there is no need to use it directly.
Definition at line 69 of file constdata.h. Referenced by link_data_file(). |
|
|
Definition at line 72 of file constdata.h. Referenced by link_data_file(). |
|
|
Definition at line 81 of file constdata.h. Referenced by init_shuffle_tab(), restore_game(), and save_game(). |
|
|
List of spells. Points to the spells table, an array of spelldesc. This is dereferenced and cached as w->spelldescs.
Definition at line 60 of file constdata.h. Referenced by link_data_file(). |
|
|
Player's starting inventory. Points to an int (number of items) followed by an array of item. See #data/items.m4. Note that this does depend on what class the player is, but that is handled entirely by the dereferencing operation.
Definition at line 53 of file constdata.h. Referenced by init_inventory(). |
|
|
Definition at line 71 of file constdata.h. Referenced by link_data_file(). |
|
|
Definition at line 70 of file constdata.h. Referenced by init_shuffle_tab(). |
|
|
Position in the data file of the tiles table.
Definition at line 17 of file constdata.h. Referenced by link_data_file(). |
|
|
Definition at line 74 of file constdata.h. |
|
|
Definition at line 73 of file constdata.h. |
|
|
Index of the 'tutorial' player class.
Definition at line 79 of file constdata.h. Referenced by init_player(). |
|
|
Definition at line 86 of file constdata.h. Referenced by main_menu(). |
1.3.6