00001 #ifndef GODITEM_H
00002 #define GODITEM_H
00003
00004 #include "enum.h"
00005 #include "externs.h"
00006
00007 #include "player.h"
00008
00009 bool is_holy_item(const item_def& item);
00010 bool is_potentially_unholy_item(const item_def& item);
00011 bool is_unholy_item(const item_def& item);
00012 bool is_potentially_evil_item(const item_def& item);
00013 bool is_corpse_violating_item(const item_def& item);
00014 bool is_evil_item(const item_def& item);
00015 bool is_unclean_item(const item_def& item);
00016 bool is_chaotic_item(const item_def& item);
00017 bool is_potentially_hasty_item(const item_def& item);
00018 bool is_hasty_item(const item_def& item);
00019 bool is_poisoned_item(const item_def& item);
00020 bool is_holy_discipline(int discipline);
00021 bool is_evil_discipline(int discipline);
00022 bool is_holy_spell(spell_type spell, god_type god = GOD_NO_GOD);
00023 bool is_unholy_spell(spell_type spell, god_type god = GOD_NO_GOD);
00024 bool is_corpse_violating_spell(spell_type spell, god_type = GOD_NO_GOD);
00025 bool is_evil_spell(spell_type spell, god_type god = GOD_NO_GOD);
00026 bool is_unclean_spell(spell_type spell, god_type god = GOD_NO_GOD);
00027 bool is_chaotic_spell(spell_type spell, god_type god = GOD_NO_GOD);
00028 bool is_hasty_spell(spell_type spell, god_type god = GOD_NO_GOD);
00029 bool is_any_spell(spell_type spell, god_type god = GOD_NO_GOD);
00030 bool is_spellbook_type(const item_def& item, bool book_or_rod,
00031 bool (*suitable)(spell_type spell, god_type god) =
00032 is_any_spell,
00033 god_type god = you.religion);
00034 bool is_holy_spellbook(const item_def& item);
00035 bool is_unholy_spellbook(const item_def& item);
00036 bool is_evil_spellbook(const item_def& item);
00037 bool is_unclean_spellbook(const item_def& item);
00038 bool is_chaotic_spellbook(const item_def& item);
00039 bool is_hasty_spellbook(const item_def& item);
00040 bool is_corpse_violating_spellbook(const item_def & item);
00041 bool god_hates_spellbook(const item_def& item);
00042 bool is_holy_rod(const item_def& item);
00043 bool is_unholy_rod(const item_def& item);
00044 bool is_evil_rod(const item_def& item);
00045 bool is_unclean_rod(const item_def& item);
00046 bool is_chaotic_rod(const item_def& item);
00047 bool is_hasty_rod(const item_def& item);
00048 bool is_corpse_violating_rod(const item_def & item);
00049 bool god_hates_rod(const item_def& item);
00050 conduct_type good_god_hates_item_handling(const item_def &item);
00051 conduct_type god_hates_item_handling(const item_def &item);
00052
00053
00054
00055 bool god_dislikes_spell_type(spell_type spell, god_type god = you.religion);
00056 bool god_dislikes_spell_discipline(int discipline, god_type god = you.religion);
00057 #endif