beam.cc File Reference

#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_defdam_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 Documentation

#define BEAM_STOP   1000

#define MAX_EXPLOSION_RADIUS   9

#define ZAPDATASIZE   (sizeof(zap_data)/sizeof(zap_info))


Typedef Documentation

typedef std::vector< std::vector<coord_def> > sweep_type


Function Documentation

void clear_zap_info_on_exit (  ) 

bool enchant_monster_invisible ( monster mon,
const std::string  how 
)

Here is the call graph for this function:

bool enchant_monster_with_flavour ( monster mon,
actor foe,
beam_type  flavour,
int  powc 
)

Here is the call graph for this function:

void fire_tracer ( const monster mons,
bolt pbolt,
bool  explode_only 
)

Here is the call graph for this function:

void init_zap_index (  ) 

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

Here is the call graph for this function:

bool miasma_monster ( monster mons,
kill_category  who 
)

Here is the call graph for this function:

void mimic_alert ( monster mimic  ) 

Here is the call graph for this function:

int mons_adjust_flavoured ( monster mons,
bolt pbolt,
int  hurted,
bool  doFlavouredEffects 
)

Here is the call graph for this function:

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

Here is the call graph for this function:

bool player_tracer ( zap_type  ztype,
int  power,
bolt pbolt,
int  range 
)

Here is the call graph for this function:

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

Here is the call graph for this function:

int zap_power_cap ( zap_type  z_type  ) 

bool zapping ( zap_type  ztype,
int  power,
bolt pbolt,
bool  needs_tracer,
const char *  msg 
)

Here is the call graph for this function:


Variable Documentation

const zap_info zap_data[]


Generated on Thu Jan 13 13:03:16 2011 by  doxygen 1.5.6