SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
progress_bar_t Struct Reference

Public Member Functions

 progress_bar_t (sim_t &s)
 
void init ()
 
bool update (bool finished=false, int index=-1)
 
void output (bool finished=false)
 
void restart ()
 
void progress ()
 
void set_base (const std::string &base)
 
void set_phase (const std::string &phase)
 
void add_simulation_time (double t)
 
size_t current_progress () const
 
size_t total_work () const
 
double average_simulation_time () const
 

Static Public Member Functions

static std::string format_time (double t)
 

Public Attributes

sim_tsim
 
int steps
 
int updates
 
int interval
 
int update_number
 
chrono::wall_clock::time_point start_time
 
chrono::wall_clock::time_point last_update
 
chrono::wall_clock::duration max_interval_time
 
std::string status
 
std::string base_str
 
std::string phase_str
 
size_t work_index
 
size_t total_work_
 
double elapsed_time
 
size_t time_count