abl-show.cc File Reference

#include "AppHdr.h"
#include "abl-show.h"
#include <sstream>
#include <iomanip>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "externs.h"
#include "abyss.h"
#include "acquire.h"
#include "artefact.h"
#include "beam.h"
#include "coordit.h"
#include "database.h"
#include "decks.h"
#include "delay.h"
#include "describe.h"
#include "directn.h"
#include "dungeon.h"
#include "effects.h"
#include "env.h"
#include "exercise.h"
#include "food.h"
#include "godabil.h"
#include "items.h"
#include "item_use.h"
#include "it_use2.h"
#include "it_use3.h"
#include "macro.h"
#include "maps.h"
#include "message.h"
#include "menu.h"
#include "misc.h"
#include "mon-place.h"
#include "mon-stuff.h"
#include "mon-util.h"
#include "mgen_data.h"
#include "mutation.h"
#include "notes.h"
#include "ouch.h"
#include "player.h"
#include "player-stats.h"
#include "religion.h"
#include "skills.h"
#include "species.h"
#include "spl-cast.h"
#include "spl-damage.h"
#include "spl-goditem.h"
#include "spl-other.h"
#include "spl-transloc.h"
#include "spl-selfench.h"
#include "spl-summoning.h"
#include "spl-miscast.h"
#include "spl-util.h"
#include "state.h"
#include "stuff.h"
#include "areas.h"
#include "transform.h"
#include "hints.h"
#include "traps.h"
#include "zotdef.h"
#include "libunix.h"

Enumerations

enum  ability_flag_type {
  ABFLAG_NONE = 0x00000000, ABFLAG_BREATH = 0x00000001, ABFLAG_DELAY = 0x00000002, ABFLAG_PAIN = 0x00000004,
  ABFLAG_PIETY = 0x00000008, ABFLAG_EXHAUSTION = 0x00000010, ABFLAG_INSTANT = 0x00000020, ABFLAG_PERMANENT_HP = 0x00000040,
  ABFLAG_PERMANENT_MP = 0x00000080, ABFLAG_CONF_OK = 0x00000100, ABFLAG_FRUIT = 0x00000200, ABFLAG_VARIABLE_FRUIT = 0x00000400,
  ABFLAG_HEX_MISCAST = 0X00000800, ABFLAG_TLOC_MISCAST = 0X00001000, ABFLAG_NECRO_MISCAST_MINOR = 0X00002000, ABFLAG_NECRO_MISCAST = 0X00004000,
  ABFLAG_TMIG_MISCAST = 0X00008000, ABFLAG_LEVEL_DRAIN = 0X00010000, ABFLAG_STAT_DRAIN = 0x00020000
}

Functions

bool string_matches_ability_name (const std::string &key)
std::string print_abilities ()
int count_relevant_monsters (const ability_def &abil)
trap_type trap_for_ability (const ability_def &abil)
int xp_cost (const ability_def &abil)
const std::string make_cost_description (ability_type ability)
const std::string make_detailed_cost_description (ability_type ability)
const char * ability_name (ability_type ability)
std::vector< const char * > get_ability_names ()
bool activate_ability ()
int choose_ability_menu (const std::vector< talent > &talents)
std::vector< talentyour_talents (bool check_confused)
void set_god_ability_slots ()

Variables

ability_type god_abilities [MAX_NUM_GODS][MAX_GOD_ABILITIES]

Enumeration Type Documentation

Enumerator:
ABFLAG_NONE 
ABFLAG_BREATH 
ABFLAG_DELAY 
ABFLAG_PAIN 
ABFLAG_PIETY 
ABFLAG_EXHAUSTION 
ABFLAG_INSTANT 
ABFLAG_PERMANENT_HP 
ABFLAG_PERMANENT_MP 
ABFLAG_CONF_OK 
ABFLAG_FRUIT 
ABFLAG_VARIABLE_FRUIT 
ABFLAG_HEX_MISCAST 
ABFLAG_TLOC_MISCAST 
ABFLAG_NECRO_MISCAST_MINOR 
ABFLAG_NECRO_MISCAST 
ABFLAG_TMIG_MISCAST 
ABFLAG_LEVEL_DRAIN 
ABFLAG_STAT_DRAIN 


Function Documentation

const char* ability_name ( ability_type  ability  ) 

bool activate_ability (  ) 

Here is the call graph for this function:

int choose_ability_menu ( const std::vector< talent > &  talents  ) 

Here is the call graph for this function:

int count_relevant_monsters ( const ability_def abil  ) 

Here is the call graph for this function:

std::vector<const char*> get_ability_names (  ) 

Here is the call graph for this function:

const std::string make_cost_description ( ability_type  ability  ) 

Here is the call graph for this function:

const std::string make_detailed_cost_description ( ability_type  ability  ) 

Here is the call graph for this function:

std::string print_abilities ( void   ) 

Here is the call graph for this function:

void set_god_ability_slots ( void   ) 

bool string_matches_ability_name ( const std::string key  ) 

Here is the call graph for this function:

trap_type trap_for_ability ( const ability_def abil  ) 

int xp_cost ( const ability_def abil  ) 

Here is the call graph for this function:

std::vector<talent> your_talents ( bool  check_confused  ) 

Here is the call graph for this function:


Variable Documentation

ability_type god_abilities[MAX_NUM_GODS][MAX_GOD_ABILITIES]


Generated on Thu Jan 13 13:02:47 2011 by  doxygen 1.5.6