#include "AppHdr.h"#include "beam.h"#include <cstdlib>#include <cstdio>#include <cstring>#include <cstdarg>#include <iostream>#include <set>#include <algorithm>#include <cmath>#include "externs.h"#include "options.h"#include "areas.h"#include "attitude-change.h"#include "cio.h"#include "cloud.h"#include "colour.h"#include "coord.h"#include "coordit.h"#include "delay.h"#include "dungeon.h"#include "dgnevent.h"#include "effects.h"#include "env.h"#include "enum.h"#include "exercise.h"#include "godabil.h"#include "map_knowledge.h"#include "fprop.h"#include "fight.h"#include "item_use.h"#include "it_use2.h"#include "items.h"#include "itemname.h"#include "itemprop.h"#include "libutil.h"#include "los.h"#include "message.h"#include "mgen_data.h"#include "misc.h"#include "mon-behv.h"#include "mon-death.h"#include "mon-iter.h"#include "mon-place.h"#include "mon-stuff.h"#include "mon-util.h"#include "mutation.h"#include "ouch.h"#include "player.h"#include "religion.h"#include "godconduct.h"#include "skills.h"#include "spl-clouds.h"#include "spl-goditem.h"#include "spl-monench.h"#include "spl-transloc.h"#include "state.h"#include "stuff.h"#include "teleport.h"#include "terrain.h"#include "transform.h"#include "traps.h"#include "view.h"#include "shout.h"#include "viewchar.h"#include "viewgeom.h"#include "xom.h"#include "zap-data.h"Classes | |
| class | power_deducer< T > |
| class | tohit_calculator< adder, mult_num, mult_denom > |
| class | dicedef_calculator< numdice, adder, mult_num, mult_denom > |
| class | calcdice_calculator< numdice, adder, mult_num, mult_denom > |
| struct | zap_info |
Defines | |
| #define | BEAM_STOP 1000 |
| #define | ZAPDATASIZE (sizeof(zap_data)/sizeof(zap_info)) |
| #define | MAX_EXPLOSION_RADIUS 9 |
Typedefs | |
| typedef power_deducer< int > | tohit_deducer |
| typedef power_deducer< dice_def > | dam_deducer |
| typedef std::vector < std::vector< coord_def > > | sweep_type |
Functions | |
| bool | zapping (zap_type ztype, int power, bolt &pbolt, bool needs_tracer, const char *msg) |
| bool | player_tracer (zap_type ztype, int power, bolt &pbolt, int range) |
| void | init_zap_index () |
| int | zap_power_cap (zap_type z_type) |
| int | mons_adjust_flavoured (monster *mons, bolt &pbolt, int hurted, bool doFlavouredEffects) |
| void | mass_enchantment (enchant_type wh_enchant, int pow, int origin, int *m_succumbed, int *m_attempted) |
| bool | poison_monster (monster *mons, kill_category who, int levels, bool force, bool verbose) |
| bool | miasma_monster (monster *mons, kill_category who) |
| bool | napalm_monster (monster *mons, kill_category who, int levels, bool verbose) |
| void | fire_tracer (const monster *mons, bolt &pbolt, bool explode_only) |
| void | mimic_alert (monster *mimic) |
| bool | enchant_monster_with_flavour (monster *mon, actor *foe, beam_type flavour, int powc) |
| bool | enchant_monster_invisible (monster *mon, const std::string how) |
| void | clear_zap_info_on_exit () |
Variables | |
| const zap_info | zap_data [] |
| #define BEAM_STOP 1000 |
| #define MAX_EXPLOSION_RADIUS 9 |
| typedef power_deducer<dice_def> dam_deducer |
| typedef std::vector< std::vector<coord_def> > sweep_type |
| typedef power_deducer<int> tohit_deducer |
| void clear_zap_info_on_exit | ( | ) |
| bool enchant_monster_invisible | ( | monster * | mon, | |
| const std::string | how | |||
| ) |



| void init_zap_index | ( | ) |
| void mass_enchantment | ( | enchant_type | wh_enchant, | |
| int | pow, | |||
| int | origin, | |||
| int * | m_succumbed, | |||
| int * | m_attempted | |||
| ) |

| bool miasma_monster | ( | monster * | mons, | |
| kill_category | who | |||
| ) |

| void mimic_alert | ( | monster * | mimic | ) |


| bool napalm_monster | ( | monster * | mons, | |
| kill_category | who, | |||
| int | levels, | |||
| bool | verbose | |||
| ) |


| bool poison_monster | ( | monster * | mons, | |
| kill_category | who, | |||
| int | levels, | |||
| bool | force, | |||
| bool | verbose | |||
| ) |

| int zap_power_cap | ( | zap_type | z_type | ) |

1.5.6