Hengband
2.2.1
|
#include "angband.h"
#include "core.h"
#include "term.h"
#include "util.h"
#include "files.h"
#include "monsterrace-hook.h"
#include "view-mainwindow.h"
#include "quest.h"
#include "floor.h"
#include "world.h"
#include "cmd-dump.h"
#include "japanese.h"
#include "player-class.h"
データ構造 | |
struct | menu_naiyou |
struct | special_menu_naiyou |
マクロ定義 | |
#define | O_BINARY 0 |
#define | MENU_CLASS 1 |
#define | MENU_WILD 2 |
#define | REPEAT_MAX 20 |
#define | CUTOFF 4 |
関数 | |
struct passwd * | getpwuid (uid_t uid) |
struct passwd * | getpwnam (concptr name) |
void | user_name (char *buf, int id) |
errr | path_parse (char *buf, int max, concptr file) |
static errr | path_temp (char *buf, int max) |
errr | path_build (char *buf, int max, concptr path, concptr file) |
ファイル入出力のためのパス生成する。/ Create a new path by appending a file (or directory) to a path. [詳解] | |
FILE * | my_fopen (concptr file, concptr mode) |
errr | my_fclose (FILE *fff) |
FILE * | my_fopen_temp (char *buf, int max) |
errr | my_fgets (FILE *fff, char *buf, huge n) |
errr | my_fputs (FILE *fff, concptr buf, huge n) |
errr | fd_kill (concptr file) |
errr | fd_move (concptr file, concptr what) |
errr | fd_copy (concptr file, concptr what) |
int | fd_make (concptr file, BIT_FLAGS mode) |
int | fd_open (concptr file, int flags) |
errr | fd_lock (int fd, int what) |
errr | fd_seek (int fd, huge n) |
errr | fd_chop (int fd, huge n) |
errr | fd_read (int fd, char *buf, huge n) |
errr | fd_write (int fd, concptr buf, huge n) |
errr | fd_close (int fd) |
void | move_cursor (int row, int col) |
static char | octify (uint i) |
static char | hexify (uint i) |
static int | deoct (char c) |
static int | dehex (char c) |
static int | my_stricmp (concptr a, concptr b) |
static int | my_strnicmp (concptr a, concptr b, int n) |
static void | trigger_text_to_ascii (char **bufptr, concptr *strptr) |
void | text_to_ascii (char *buf, concptr str) |
static bool | trigger_ascii_to_text (char **bufptr, concptr *strptr) |
void | ascii_to_text (char *buf, concptr str) |
sint | macro_find_exact (concptr pat) |
static sint | macro_find_check (concptr pat) |
static sint | macro_find_maybe (concptr pat) |
static sint | macro_find_ready (concptr pat) |
errr | macro_add (concptr pat, concptr act) |
void | flush (void) |
void | bell (void) |
void | sound (int val) |
errr | play_music (int type, int val) |
void | select_floor_music (player_type *player_ptr) |
static char | inkey_aux (void) |
static void | forget_macro_action (void) |
char | inkey (void) |
void | quark_init (void) |
u16b | quark_add (concptr str) |
concptr | quark_str (STR_OFFSET i) |
s32b | message_num (void) |
保存中の過去ゲームメッセージの数を返す。 / How many messages are "available"? [詳解] | |
concptr | message_str (int age) |
過去のゲームメッセージを返す。 / Recall the "text" of a saved message @params age メッセージの世代 [詳解] | |
void | message_add (concptr str) |
ゲームメッセージをログに追加する。 / Add a new message, with great efficiency @params str 保存したいメッセージ [詳解] | |
static void | msg_flush (int x) |
void | msg_erase (void) |
void | msg_print (concptr msg) |
void | msg_print_wizard (int cheat_type, concptr msg) |
void | screen_save (void) |
void | screen_load (void) |
void | msg_format (concptr fmt,...) |
void | msg_format_wizard (int cheat_type, concptr fmt,...) |
void | c_put_str (TERM_COLOR attr, concptr str, TERM_LEN row, TERM_LEN col) |
void | put_str (concptr str, TERM_LEN row, TERM_LEN col) |
void | c_prt (TERM_COLOR attr, concptr str, TERM_LEN row, TERM_LEN col) |
void | prt (concptr str, TERM_LEN row, TERM_LEN col) |
void | c_roff (byte a, concptr str) |
void | roff (concptr str) |
void | clear_from (int row) |
bool | askfor_aux (char *buf, int len, bool numpad_cursor) |
bool | askfor (char *buf, int len) |
bool | get_string (concptr prompt, char *buf, int len) |
bool | get_check (concptr prompt) |
bool | get_check_strict (concptr prompt, BIT_FLAGS mode) |
bool | get_com (concptr prompt, char *command, bool z_escape) |
QUANTITY | get_quantity (concptr prompt, QUANTITY max) |
void | pause_line (int row) |
static char | inkey_from_menu (void) |
void | request_command (int shopping) |
bool | is_a_vowel (int ch) |
int | get_keymap_dir (char ch) |
void | repeat_push (COMMAND_CODE what) |
bool | repeat_pull (COMMAND_CODE *what) |
void | repeat_check (void) |
static void | swap (tag_type *a, tag_type *b) |
static void | InsertionSort (tag_type elements[], int number) |
static tag_type | median3 (tag_type elements[], int left, int right) |
static void | quicksort (tag_type elements[], int left, int right) |
void | tag_sort (tag_type elements[], int number) |
void | build_gamma_table (int gamma) |
errr | type_string (concptr str, uint len) |
void | roff_to_buf (concptr str, int maxlen, char *tbuf, size_t bufsize) |
size_t | my_strcpy (char *buf, concptr src, size_t bufsize) |
size_t | my_strcat (char *buf, concptr src, size_t bufsize) |
char * | my_strstr (concptr haystack, concptr needle) |
char * | my_strchr (concptr ptr, char ch) |
void | str_tolower (char *str) |
int | inkey_special (bool numpad_cursor) |
#define CUTOFF 4 |
#define MENU_CLASS 1 |
#define MENU_WILD 2 |
#define O_BINARY 0 |
#define REPEAT_MAX 20 |
void ascii_to_text | ( | char * | buf, |
concptr | str | ||
) |
bool askfor | ( | char * | buf, |
int | len | ||
) |
void bell | ( | void | ) |
void build_gamma_table | ( | int | gamma | ) |
void c_prt | ( | TERM_COLOR | attr, |
concptr | str, | ||
TERM_LEN | row, | ||
TERM_LEN | col | ||
) |
void c_put_str | ( | TERM_COLOR | attr, |
concptr | str, | ||
TERM_LEN | row, | ||
TERM_LEN | col | ||
) |
void clear_from | ( | int | row | ) |
|
static |
|
static |
errr fd_close | ( | int | fd | ) |
errr fd_lock | ( | int | fd, |
int | what | ||
) |
int fd_open | ( | concptr | file, |
int | flags | ||
) |
void flush | ( | void | ) |
|
static |
int get_keymap_dir | ( | char | ch | ) |
struct passwd* getpwnam | ( | concptr | name | ) |
struct passwd* getpwuid | ( | uid_t | uid | ) |
|
static |
char inkey | ( | void | ) |
|
static |
|
static |
int inkey_special | ( | bool | numpad_cursor | ) |
|
static |
bool is_a_vowel | ( | int | ch | ) |
void message_add | ( | concptr | str | ) |
ゲームメッセージをログに追加する。 / Add a new message, with great efficiency @params str 保存したいメッセージ
s32b message_num | ( | void | ) |
保存中の過去ゲームメッセージの数を返す。 / How many messages are "available"?
concptr message_str | ( | int | age | ) |
過去のゲームメッセージを返す。 / Recall the "text" of a saved message @params age メッセージの世代
void move_cursor | ( | int | row, |
int | col | ||
) |
void msg_erase | ( | void | ) |
|
static |
void msg_format | ( | concptr | fmt, |
... | |||
) |
void msg_format_wizard | ( | int | cheat_type, |
concptr | fmt, | ||
... | |||
) |
void msg_print | ( | concptr | msg | ) |
void msg_print_wizard | ( | int | cheat_type, |
concptr | msg | ||
) |
errr my_fclose | ( | FILE * | fff | ) |
FILE* my_fopen_temp | ( | char * | buf, |
int | max | ||
) |
size_t my_strcat | ( | char * | buf, |
concptr | src, | ||
size_t | bufsize | ||
) |
char* my_strchr | ( | concptr | ptr, |
char | ch | ||
) |
size_t my_strcpy | ( | char * | buf, |
concptr | src, | ||
size_t | bufsize | ||
) |
|
static |
ファイル入出力のためのパス生成する。/ Create a new path by appending a file (or directory) to a path.
buf | ファイルのフルを返すバッファ |
max | bufのサイズ |
path | ファイルパス |
file | ファイル名 |
This requires no special processing on simple machines, except for verifying the size of the filename, but note the ability to bypass the given "path" with certain special file-names.
Note that the "file" may actually be a "sub-path", including a path and a file.
Note that this function yields a path which must be "parsed" using the "parse" function above.
|
static |
void pause_line | ( | int | row | ) |
errr play_music | ( | int | type, |
int | val | ||
) |
void quark_init | ( | void | ) |
concptr quark_str | ( | STR_OFFSET | i | ) |
|
static |
void repeat_check | ( | void | ) |
bool repeat_pull | ( | COMMAND_CODE * | what | ) |
void repeat_push | ( | COMMAND_CODE | what | ) |
void request_command | ( | int | shopping | ) |
void roff | ( | concptr | str | ) |
void roff_to_buf | ( | concptr | str, |
int | maxlen, | ||
char * | tbuf, | ||
size_t | bufsize | ||
) |
void screen_load | ( | void | ) |
void screen_save | ( | void | ) |
void select_floor_music | ( | player_type * | player_ptr | ) |
void sound | ( | int | val | ) |
void str_tolower | ( | char * | str | ) |
void tag_sort | ( | tag_type | elements[], |
int | number | ||
) |
void text_to_ascii | ( | char * | buf, |
concptr | str | ||
) |
|
static |
void user_name | ( | char * | buf, |
int | id | ||
) |
COMMAND_ARG command_arg |
各種コマンドの汎用的な引数として扱う / Gives argument of current command
s16b command_cmd |
DIRECTION command_dir |
各種コマンドの汎用的な方向値処理として扱う/ Gives direction of current command
TERM_LEN command_gap = 999 |
s16b command_new |
COMMAND_NUM command_rep |
各種コマンドの汎用的なリピート数として扱う / Gives repetition of current command
s16b command_see |
s16b command_wrk |
|
static |
byte gamma_table[256] |
const char hexsym[16] |
10進数から16進数への変換テーブル / Global array for converting numbers to uppercase hecidecimal digit This array can also be used to convert a number to an octal digit
bool inkey_base |
bool inkey_flag |
|
static |
bool inkey_scan |
bool inkey_xtra |
concptr keymap_act[KEYMAP_MODES][256] |
concptr* macro__act |
char* macro__buf |
bool* macro__cmd |
s16b macro__num |
concptr* macro__pat |
|
static |
concptr macro_modifier_chr |
&x# で指定されるマクロトリガーに関する情報を記録する文字列ポインタ
concptr macro_modifier_name[MAX_MACRO_MOD] |
マクロ上で取り扱う特殊キーを文字列上で表現するためのフォーマットを記録した文字列ポインタ配列
concptr macro_trigger_keycode[2][MAX_MACRO_TRIG] |
マクロの内容
concptr macro_trigger_name[MAX_MACRO_TRIG] |
マクロのトリガーコード
int max_macrotrigger = 0 |
現在登録中のマクロ(トリガー)の数
menu_naiyou menu_info[10][10] |
char* message__buf |
u32b message__head |
u32b message__last |
u32b message__next |
u32b* message__ptr |
u32b message__tail |
bool msg_flag |
|
static |
STR_OFFSET quark__num |
concptr* quark__str |
|
static |
|
static |
|
static |
|
static |
|
static |
special_menu_naiyou special_menu_info[] |
pos_list tmp_pos |
bool use_menu |