Angband
Functions
ui-spell.h File Reference

Spell UI handing. More...

Go to the source code of this file.

Functions

void textui_book_browse (const object_type *o_ptr)
 Browse a given book.
void textui_spell_browse (void)
 Browse the given book.
int textui_get_spell_from_book (const char *verb, struct object *book, const char *error, bool(*spell_filter)(int spell))
 Get a spell from specified book.
int textui_get_spell (const char *verb, item_tester book_filter, cmd_code cmd, const char *error, bool(*spell_filter)(int spell))
 Get a spell from the player.

Detailed Description

Spell UI handing.

Copyright (c) 2010 Andi Sidwell

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Function Documentation

void textui_book_browse ( const object_type o_ptr)
int textui_get_spell ( const char *  verb,
item_tester  book_filter,
cmd_code  cmd,
const char *  error,
bool(*)(int spell)  spell_filter 
)

Get a spell from the player.

References get_item(), my_strcap(), menu::prompt, strnfmt(), textui_get_spell_from_book(), USE_FLOOR, and USE_INVEN.

Referenced by textui_input_init().

int textui_get_spell_from_book ( const char *  verb,
struct object book,
const char *  error,
bool(*)(int spell)  spell_filter 
)
void textui_spell_browse ( void  )