religion.cc File Reference

#include "AppHdr.h"
#include "religion.h"
#include <algorithm>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include "externs.h"
#include "abl-show.h"
#include "acquire.h"
#include "areas.h"
#include "artefact.h"
#include "attitude-change.h"
#include "beam.h"
#include "chardump.h"
#include "coordit.h"
#include "database.h"
#include "debug.h"
#include "decks.h"
#include "delay.h"
#include "describe.h"
#include "dgn-actions.h"
#include "dgnevent.h"
#include "dlua.h"
#include "effects.h"
#include "env.h"
#include "enum.h"
#include "files.h"
#include "food.h"
#include "godabil.h"
#include "goditem.h"
#include "godpassive.h"
#include "godprayer.h"
#include "godwrath.h"
#include "hiscores.h"
#include "invent.h"
#include "itemprop.h"
#include "item_use.h"
#include "items.h"
#include "libutil.h"
#include "macro.h"
#include "makeitem.h"
#include "message.h"
#include "misc.h"
#include "mon-behv.h"
#include "mon-iter.h"
#include "mon-util.h"
#include "mon-place.h"
#include "mgen_data.h"
#include "mon-stuff.h"
#include "mutation.h"
#include "notes.h"
#include "options.h"
#include "ouch.h"
#include "output.h"
#include "player.h"
#include "shopping.h"
#include "skills2.h"
#include "spl-book.h"
#include "spl-miscast.h"
#include "spl-selfench.h"
#include "sprint.h"
#include "stash.h"
#include "state.h"
#include "stuff.h"
#include "terrain.h"
#include "transform.h"
#include "hints.h"
#include "view.h"
#include "xom.h"

Defines

#define PIETY_HYSTERESIS_LIMIT   1
#define MIN_YRED_SERVANT_THRESHOLD   3
#define MAX_YRED_SERVANT_THRESHOLD   ARRAYSZ(_yred_servants)

Typedefs

typedef void(* delayed_callback )(const mgen_data &mg, int &midx, int placed)

Functions

bool is_evil_god (god_type god)
bool is_good_god (god_type god)
bool is_chaotic_god (god_type god)
bool is_unavailable_god (god_type god)
std::string get_god_powers (god_type which_god)
std::string get_god_likes (god_type which_god, bool verbose)
std::string get_god_dislikes (god_type which_god, bool)
void dec_penance (god_type god, int val)
void dec_penance (int val)
bool jiyva_is_dead ()
int yred_random_servants (unsigned int threshold, bool force_hostile)
void get_pure_deck_weights (int weights[])
void mons_make_god_gift (monster *mon, god_type god)
bool mons_is_god_gift (const monster *mon, god_type god)
bool is_undead_slave (const monster *mon)
bool is_yred_undead_slave (const monster *mon)
bool is_orcish_follower (const monster *mon)
bool is_fellow_slime (const monster *mon)
bool is_neutral_plant (const monster *mon)
bool is_follower (const monster *mon)
bool bless_follower (monster *follower, god_type god, bool(*suitable)(const monster *mon), bool force)
bool do_god_gift (bool prayed_for, bool forced)
std::string god_name (god_type which_god, bool long_name)
std::string god_name_jiyva (bool second_name)
god_type str_to_god (const std::string _name, bool exact)
void god_speaks (god_type god, const char *mesg)
void religion_turn_start ()
void religion_turn_end ()
std::string adjust_abil_message (const char *pmsg, bool allow_upgrades)
void dock_piety (int piety_loss, int penance)
int piety_scale (int piety)
void gain_piety (int original_gain, int denominator, bool force, bool should_scale_piety)
void lose_piety (int pgn)
bool fedhas_protects_species (int mc)
bool fedhas_protects (const monster *target)
bool fedhas_neutralises (const monster *target)
void excommunication (god_type new_god)
void print_sacrifice_message (god_type god, const item_def &item, piety_gain_t piety_gain, bool your)
void nemelex_death_message ()
bool god_hates_attacking_friend (god_type god, const actor *fr)
bool god_hates_attacking_friend (god_type god, int species)
bool god_likes_items (god_type god)
bool god_likes_item (god_type god, const item_def &item)
bool player_can_join_god (god_type which_god)
bool transformed_player_can_join_god (god_type which_god)
void god_welcome_identify_gear ()
void god_pitch (god_type which_god)
bool god_hates_your_god (god_type god, god_type your_god)
std::string god_hates_your_god_reaction (god_type god, god_type your_god)
bool god_hates_cannibalism (god_type god)
bool god_hates_killing (god_type god, const monster *mon)
bool god_likes_fresh_corpses (god_type god)
bool god_likes_spell (spell_type spell, god_type god)
bool god_hates_spell (spell_type spell, god_type god)
harm_protection_type god_protects_from_harm (god_type god, bool actual)
void handle_god_time ()
void simple_god_message (const char *event, god_type which_deity)
int god_colour (god_type god)
uint8_t god_message_altar_colour (god_type god)
int piety_rank (int piety)
int piety_breakpoint (int i)
bool tso_unchivalric_attack_safe_monster (const monster *mon)
int get_monster_tension (const monster *mons, god_type god)
int get_tension (god_type god)
std::vector< god_typetemple_god_list ()
std::vector< god_typenontemple_god_list ()

Variables

const char * god_gain_power_messages [NUM_GODS][MAX_GOD_ABILITIES]
const char * god_lose_power_messages [NUM_GODS][MAX_GOD_ABILITIES]

Define Documentation

#define MAX_YRED_SERVANT_THRESHOLD   ARRAYSZ(_yred_servants)

#define MIN_YRED_SERVANT_THRESHOLD   3

#define PIETY_HYSTERESIS_LIMIT   1


Typedef Documentation

typedef void(* delayed_callback)(const mgen_data &mg, int &midx, int placed)


Function Documentation

std::string adjust_abil_message ( const char *  pmsg,
bool  allow_upgrades 
)

Here is the call graph for this function:

bool bless_follower ( monster follower,
god_type  god,
bool(*)(const monster *mon)  suitable,
bool  force 
)

Here is the call graph for this function:

void dec_penance ( int  val  ) 

Here is the call graph for this function:

void dec_penance ( god_type  god,
int  val 
)

Here is the call graph for this function:

bool do_god_gift ( bool  prayed_for,
bool  forced 
)

Here is the call graph for this function:

void dock_piety ( int  piety_loss,
int  penance 
)

Here is the call graph for this function:

void excommunication ( god_type  new_god  ) 

Here is the call graph for this function:

bool fedhas_neutralises ( const monster target  ) 

Here is the call graph for this function:

bool fedhas_protects ( const monster target  ) 

Here is the call graph for this function:

bool fedhas_protects_species ( int  mc  ) 

Here is the call graph for this function:

void gain_piety ( int  original_gain,
int  denominator,
bool  force,
bool  should_scale_piety 
)

Here is the call graph for this function:

std::string get_god_dislikes ( god_type  which_god,
bool   
)

Here is the call graph for this function:

std::string get_god_likes ( god_type  which_god,
bool  verbose 
)

Here is the call graph for this function:

std::string get_god_powers ( god_type  which_god  ) 

Here is the call graph for this function:

int get_monster_tension ( const monster mons,
god_type  god 
)

Here is the call graph for this function:

void get_pure_deck_weights ( int  weights[]  ) 

int get_tension ( god_type  god  ) 

Here is the call graph for this function:

int god_colour ( god_type  god  ) 

bool god_hates_attacking_friend ( god_type  god,
int  species 
)

Here is the call graph for this function:

bool god_hates_attacking_friend ( god_type  god,
const actor fr 
)

Here is the call graph for this function:

bool god_hates_cannibalism ( god_type  god  ) 

Here is the call graph for this function:

bool god_hates_killing ( god_type  god,
const monster mon 
)

Here is the call graph for this function:

bool god_hates_spell ( spell_type  spell,
god_type  god 
)

Here is the call graph for this function:

bool god_hates_your_god ( god_type  god,
god_type  your_god 
)

Here is the call graph for this function:

std::string god_hates_your_god_reaction ( god_type  god,
god_type  your_god 
)

Here is the call graph for this function:

bool god_likes_fresh_corpses ( god_type  god  ) 

Here is the call graph for this function:

bool god_likes_item ( god_type  god,
const item_def item 
)

Here is the call graph for this function:

bool god_likes_items ( god_type  god  ) 

Here is the call graph for this function:

bool god_likes_spell ( spell_type  spell,
god_type  god 
)

Here is the call graph for this function:

uint8_t god_message_altar_colour ( god_type  god  ) 

Here is the call graph for this function:

std::string god_name ( god_type  which_god,
bool  long_name 
)

Here is the call graph for this function:

std::string god_name_jiyva ( bool  second_name  ) 

void god_pitch ( god_type  which_god  ) 

Here is the call graph for this function:

harm_protection_type god_protects_from_harm ( god_type  god,
bool  actual 
)

Here is the call graph for this function:

void god_speaks ( god_type  god,
const char *  mesg 
)

Here is the call graph for this function:

void god_welcome_identify_gear (  ) 

Here is the call graph for this function:

void handle_god_time ( void   ) 

Here is the call graph for this function:

bool is_chaotic_god ( god_type  god  ) 

bool is_evil_god ( god_type  god  ) 

bool is_fellow_slime ( const monster mon  ) 

Here is the call graph for this function:

bool is_follower ( const monster mon  ) 

Here is the call graph for this function:

bool is_good_god ( god_type  god  ) 

bool is_neutral_plant ( const monster mon  ) 

Here is the call graph for this function:

bool is_orcish_follower ( const monster mon  ) 

Here is the call graph for this function:

bool is_unavailable_god ( god_type  god  ) 

Here is the call graph for this function:

bool is_undead_slave ( const monster mon  ) 

Here is the call graph for this function:

bool is_yred_undead_slave ( const monster mon  ) 

Here is the call graph for this function:

bool jiyva_is_dead (  ) 

void lose_piety ( int  pgn  ) 

Here is the call graph for this function:

bool mons_is_god_gift ( const monster mon,
god_type  god 
)

void mons_make_god_gift ( monster mon,
god_type  god 
)

Here is the call graph for this function:

void nemelex_death_message (  ) 

Here is the call graph for this function:

std::vector<god_type> nontemple_god_list (  ) 

int piety_breakpoint ( int  i  ) 

int piety_rank ( int  piety  ) 

int piety_scale ( int  piety  ) 

Here is the call graph for this function:

bool player_can_join_god ( god_type  which_god  ) 

Here is the call graph for this function:

void print_sacrifice_message ( god_type  god,
const item_def item,
piety_gain_t  piety_gain,
bool  your 
)

Here is the call graph for this function:

void religion_turn_end (  ) 

void religion_turn_start (  ) 

Here is the call graph for this function:

void simple_god_message ( const char *  event,
god_type  which_deity 
)

Here is the call graph for this function:

god_type str_to_god ( const std::string  _name,
bool  exact 
)

Here is the call graph for this function:

std::vector<god_type> temple_god_list (  ) 

bool transformed_player_can_join_god ( god_type  which_god  ) 

Here is the call graph for this function:

bool tso_unchivalric_attack_safe_monster ( const monster mon  ) 

Here is the call graph for this function:

int yred_random_servants ( unsigned int  threshold,
bool  force_hostile 
)

Here is the call graph for this function:


Variable Documentation

const char* god_gain_power_messages[NUM_GODS][MAX_GOD_ABILITIES]

const char* god_lose_power_messages[NUM_GODS][MAX_GOD_ABILITIES]


Generated on Thu Jan 13 13:21:09 2011 by  doxygen 1.5.6