spl-book.h File Reference

#include "externs.h"

Include dependency graph for spl-book.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SPELLBOOK_SIZE   8

Enumerations

enum  read_book_action_type { RBOOK_USE_STAFF, RBOOK_READ_SPELL }

Functions

int book_rarity (uint8_t which_book)
int spell_rarity (spell_type which_spell)
void init_spell_rarities ()
bool is_valid_spell_in_book (const item_def &book, int spell)
bool is_valid_spell_in_book (int splbook, int spell)
void mark_had_book (const item_def &book)
void mark_had_book (int booktype)
void inscribe_book_highlevel (item_def &book)
int read_book (item_def &item, read_book_action_type action)
bool player_can_memorise (const item_def &book)
bool can_learn_spell (bool silent=false)
int player_spell_skills ()
bool learn_spell ()
bool learn_spell (spell_type spell, int book=NUM_BOOKS, bool is_safest_book=true)
bool forget_spell_from_book (spell_type spell, const item_def *book)
std::string desc_cannot_memorise_reason (bool undead)
bool player_can_memorise_from_spellbook (const item_def &book)
spell_type which_spell_in_book (const item_def &book, int spl)
spell_type which_spell_in_book (int sbook_type, int spl)
int staff_spell (int zap_device_2)
bool is_memorised (spell_type spell)
bool you_cannot_memorise (spell_type spell)
bool you_cannot_memorise (spell_type spell, bool &undead)
bool has_spells_to_memorise (bool silent=true, int current_spell=SPELL_NO_SPELL)
std::vector< spell_typeget_mem_spell_list (std::vector< int > &books)
int spellbook_contents (item_def &book, read_book_action_type action, formatted_string *fs=NULL)
int count_staff_spells (const item_def &item, bool need_id)
bool make_book_level_randart (item_def &book, int level=-1, int num_spells=-1, std::string owner="")
bool make_book_theme_randart (item_def &book, int disc1=0, int disc2=0, int num_spells=-1, int max_levels=-1, spell_type incl_spell=SPELL_NO_SPELL, std::string owner="")
void make_book_Roxanne_special (item_def *book)
bool book_has_title (const item_def &book)
bool is_dangerous_spellbook (const item_def &book)
bool is_dangerous_spellbook (const int book_type)
void destroy_spellbook (const item_def &book)


Define Documentation

#define SPELLBOOK_SIZE   8


Enumeration Type Documentation

Enumerator:
RBOOK_USE_STAFF 
RBOOK_READ_SPELL 


Function Documentation

bool book_has_title ( const item_def book  ) 

Here is the call graph for this function:

int book_rarity ( uint8_t  which_book  ) 

bool can_learn_spell ( bool  silent = false  ) 

Here is the call graph for this function:

int count_staff_spells ( const item_def item,
bool  need_id 
)

Here is the call graph for this function:

std::string desc_cannot_memorise_reason ( bool  undead  ) 

Here is the call graph for this function:

void destroy_spellbook ( const item_def book  ) 

Here is the call graph for this function:

bool forget_spell_from_book ( spell_type  spell,
const item_def book 
)

Here is the call graph for this function:

std::vector<spell_type> get_mem_spell_list ( std::vector< int > &  books  ) 

bool has_spells_to_memorise ( bool  silent = true,
int  current_spell = SPELL_NO_SPELL 
)

void init_spell_rarities (  ) 

Here is the call graph for this function:

void inscribe_book_highlevel ( item_def book  ) 

Here is the call graph for this function:

bool is_dangerous_spellbook ( const int  book_type  ) 

bool is_dangerous_spellbook ( const item_def book  ) 

Here is the call graph for this function:

bool is_memorised ( spell_type  spell  ) 

bool is_valid_spell_in_book ( int  splbook,
int  spell 
)

Here is the call graph for this function:

bool is_valid_spell_in_book ( const item_def book,
int  spell 
)

Here is the call graph for this function:

bool learn_spell ( spell_type  spell,
int  book = NUM_BOOKS,
bool  is_safest_book = true 
)

Here is the call graph for this function:

bool learn_spell (  ) 

Here is the call graph for this function:

bool make_book_level_randart ( item_def book,
int  level = -1,
int  num_spells = -1,
std::string  owner = "" 
)

Here is the call graph for this function:

void make_book_Roxanne_special ( item_def book  ) 

Here is the call graph for this function:

bool make_book_theme_randart ( item_def book,
int  disc1 = 0,
int  disc2 = 0,
int  num_spells = -1,
int  max_levels = -1,
spell_type  incl_spell = SPELL_NO_SPELL,
std::string  owner = "" 
)

Here is the call graph for this function:

void mark_had_book ( int  booktype  ) 

void mark_had_book ( const item_def book  ) 

Here is the call graph for this function:

bool player_can_memorise ( const item_def book  ) 

Here is the call graph for this function:

bool player_can_memorise_from_spellbook ( const item_def book  ) 

Here is the call graph for this function:

int player_spell_skills (  ) 

int read_book ( item_def item,
read_book_action_type  action 
)

Here is the call graph for this function:

int spell_rarity ( spell_type  which_spell  ) 

int spellbook_contents ( item_def book,
read_book_action_type  action,
formatted_string fs = NULL 
)

Here is the call graph for this function:

int staff_spell ( int  zap_device_2  ) 

Here is the call graph for this function:

spell_type which_spell_in_book ( int  sbook_type,
int  spl 
)

spell_type which_spell_in_book ( const item_def book,
int  spl 
)

Here is the call graph for this function:

bool you_cannot_memorise ( spell_type  spell,
bool &  undead 
)

bool you_cannot_memorise ( spell_type  spell  ) 

Here is the call graph for this function:


Generated on Thu Jan 13 13:22:57 2011 by  doxygen 1.5.6