arena Namespace Reference


Classes

struct  faction

Functions

void write_error (const std::string &error)
void adjust_spells (monster *mons, bool no_summons, bool no_animate)
void adjust_monsters ()
void list_eq (int imon)
void center_print (unsigned sz, std::string text, int number=-1)
void setup_level ()
std::string find_monster_spec ()
void parse_faction (faction &fact, std::string spec) throw (std::string)
void parse_monster_spec () throw (std::string)
void setup_monsters () throw (std::string)
void show_fight_banner (bool after_fight=false)
void setup_others ()
void expand_mlist (int exp)
void setup_fight () throw (std::string)
void more ()
void count_foes ()
bool fight_is_on ()
void report_foes ()
void fixup_foes ()
void dump_messages ()
void balance_spawners ()
void do_miscasts ()
void handle_keypress (int ch)
void do_respawn (faction &fac)
void do_fight ()
void global_setup (const std::string &arena_teams)
void global_shutdown ()
void write_results ()
void simulate ()

Variables

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


Function Documentation

void arena::adjust_monsters (  ) 

void arena::adjust_spells ( monster mons,
bool  no_summons,
bool  no_animate 
)

Here is the call graph for this function:

void arena::balance_spawners (  ) 

Here is the call graph for this function:

void arena::center_print ( unsigned  sz,
std::string  text,
int  number = -1 
)

Here is the call graph for this function:

void arena::count_foes (  ) 

Here is the call graph for this function:

void arena::do_fight (  ) 

Here is the call graph for this function:

void arena::do_miscasts (  ) 

Here is the call graph for this function:

void arena::do_respawn ( faction &  fac  ) 

Here is the call graph for this function:

void arena::dump_messages (  ) 

Here is the call graph for this function:

void arena::expand_mlist ( int  exp  ) 

bool arena::fight_is_on (  ) 

Here is the call graph for this function:

std::string arena::find_monster_spec (  ) 

void arena::fixup_foes (  ) 

Here is the call graph for this function:

void arena::global_setup ( const std::string arena_teams  ) 

Here is the call graph for this function:

void arena::global_shutdown (  ) 

void arena::handle_keypress ( int  ch  ) 

Here is the call graph for this function:

void arena::list_eq ( int  imon  ) 

Here is the call graph for this function:

void arena::more (  ) 

Here is the call graph for this function:

void arena::parse_faction ( faction &  fact,
std::string  spec 
) throw (std::string)

Here is the call graph for this function:

void arena::parse_monster_spec (  )  throw (std::string)

Here is the call graph for this function:

void arena::report_foes (  ) 

Here is the call graph for this function:

void arena::setup_fight (  )  throw (std::string)

Here is the call graph for this function:

void arena::setup_level (  ) 

Here is the call graph for this function:

void arena::setup_monsters (  )  throw (std::string)

Here is the call graph for this function:

void arena::setup_others (  ) 

Here is the call graph for this function:

void arena::show_fight_banner ( bool  after_fight = false  ) 

Here is the call graph for this function:

void arena::simulate (  ) 

Here is the call graph for this function:

void arena::write_error ( const std::string error  ) 

void arena::write_results (  ) 


Variable Documentation

std::vector<int> arena::a_spawners

bool arena::allow_animate = true

bool arena::allow_bands = true

bool arena::allow_immobile = true

bool arena::allow_summons = true

bool arena::allow_zero_xp = false

std::vector<int> arena::b_spawners

bool arena::cycle_random = false

FILE* arena::file = NULL

bool arena::is_respawning = false

int arena::item_drop_times[MAX_ITEMS]

bool arena::miscasts = false

bool arena::move_respawns = false

bool arena::move_summons = false

bool arena::name_monsters = false

level_id arena::place(BRANCH_MAIN_DUNGEON, 20)

bool arena::random_uniques = false

bool arena::real_summons = false

bool arena::respawn = false

int arena::summon_throttle = INT_MAX

int arena::ties = 0

int8_t arena::to_respawn[MAX_MONSTERS]

int arena::turns = 0

std::vector<int> arena::uniques_list


Generated on Thu Jan 13 13:43:39 2011 by  doxygen 1.5.6