arena.cc File Reference

#include "AppHdr.h"
#include "arena.h"
#include "cio.h"
#include "colour.h"
#include "command.h"
#include "coord.h"
#include "dungeon.h"
#include "env.h"
#include "externs.h"
#include "initfile.h"
#include "items.h"
#include "itemname.h"
#include "l_defs.h"
#include "libutil.h"
#include "los.h"
#include "macro.h"
#include "maps.h"
#include "message.h"
#include "mon-behv.h"
#include "mon-iter.h"
#include "mon-pick.h"
#include "mon-util.h"
#include "mon-place.h"
#include "mgen_data.h"
#include "mon-stuff.h"
#include "ng-init.h"
#include "options.h"
#include "spl-miscast.h"
#include "spl-util.h"
#include "state.h"
#include "view.h"
#include "viewgeom.h"

Include dependency graph for arena.cc:


Namespaces

namespace  arena

Classes

struct  arena::faction

Defines

#define DEBUG_DIAGNOSTICS
#define DESTROY_ITEM(i)

Functions

void world_reacts ()
void arena::write_error (const std::string &error)
void arena::adjust_spells (monster *mons, bool no_summons, bool no_animate)
void arena::adjust_monsters ()
void arena::list_eq (int imon)
void arena::center_print (unsigned sz, std::string text, int number=-1)
void arena::setup_level ()
std::string arena::find_monster_spec ()
void arena::parse_faction (faction &fact, std::string spec) throw (std::string)
void arena::parse_monster_spec () throw (std::string)
void arena::setup_monsters () throw (std::string)
void arena::show_fight_banner (bool after_fight=false)
void arena::setup_others ()
void arena::expand_mlist (int exp)
void arena::setup_fight () throw (std::string)
void arena::more ()
void arena::count_foes ()
bool arena::fight_is_on ()
void arena::report_foes ()
void arena::fixup_foes ()
void arena::dump_messages ()
void arena::balance_spawners ()
void arena::do_miscasts ()
void arena::handle_keypress (int ch)
void arena::do_respawn (faction &fac)
void arena::do_fight ()
void arena::global_setup (const std::string &arena_teams)
void arena::global_shutdown ()
void arena::write_results ()
void arena::simulate ()
monster_type arena_pick_random_monster (const level_id &place, int power, int &lev_mons)
bool arena_veto_random_monster (monster_type type)
bool arena_veto_place_monster (const mgen_data &mg, bool first_band_member, const coord_def &pos)
void arena_placed_monster (monster *mons)
void arena_split_monster (monster *split_from, monster *split_to)
void arena_monster_died (monster *mons, killer_type killer, int killer_index, bool silent, int corpse)
int arena_cull_items ()
NORETURN void run_arena (const std::string &teams)

Variables

std::string arena::teams
int arena::total_trials = 0
bool arena::contest_canceled = false
bool arena::is_respawning = false
int arena::trials_done = 0
int arena::team_a_wins = 0
int arena::ties = 0
int arena::turns = 0
bool arena::allow_summons = true
bool arena::allow_animate = true
bool arena::allow_chain_summons = true
bool arena::allow_zero_xp = false
bool arena::allow_immobile = true
bool arena::allow_bands = true
bool arena::name_monsters = false
bool arena::random_uniques = false
bool arena::real_summons = false
bool arena::move_summons = false
bool arena::respawn = false
bool arena::move_respawns = false
bool arena::miscasts = false
int arena::summon_throttle = INT_MAX
std::vector< int > arena::uniques_list
std::vector< int > arena::a_spawners
std::vector< int > arena::b_spawners
int8_t arena::to_respawn [MAX_MONSTERS]
int arena::item_drop_times [MAX_ITEMS]
bool arena::banned_glyphs [128]
std::string arena::arena_type = ""
faction arena::faction_a (true)
faction arena::faction_b (false)
coord_def arena::place_a
coord_def arena::place_b
bool arena::cycle_random = false
int arena::cycle_random_pos = -1
FILE * arena::file = NULL
int arena::message_pos = 0
level_id arena::place (BRANCH_MAIN_DUNGEON, 20)

Define Documentation

#define DEBUG_DIAGNOSTICS

#define DESTROY_ITEM (  ) 

Value:

{ \
    destroy_item(i, true); \
    arena::item_drop_times[i] = 0; \
    cull_count++; \
    if (first_avail == NON_ITEM) \
        first_avail = i; \
}


Function Documentation

int arena_cull_items (  ) 

Here is the call graph for this function:

void arena_monster_died ( monster mons,
killer_type  killer,
int  killer_index,
bool  silent,
int  corpse 
)

Here is the call graph for this function:

monster_type arena_pick_random_monster ( const level_id place,
int  power,
int &  lev_mons 
)

Here is the call graph for this function:

void arena_placed_monster ( monster mons  ) 

Here is the call graph for this function:

void arena_split_monster ( monster split_from,
monster split_to 
)

Here is the call graph for this function:

bool arena_veto_place_monster ( const mgen_data mg,
bool  first_band_member,
const coord_def pos 
)

Here is the call graph for this function:

bool arena_veto_random_monster ( monster_type  type  ) 

Here is the call graph for this function:

NORETURN void run_arena ( const std::string teams  ) 

Here is the call graph for this function:

void world_reacts (  ) 

Here is the call graph for this function:


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