15 #ifndef REPORTS_HPP_INCLUDED
16 #define REPORTS_HPP_INCLUDED
22 #include <boost/optional.hpp>
23 #include <boost/shared_ptr.hpp>
60 boost::optional<events::mouse_handler&>
mhb() {
return mhb_; }
67 boost::optional<events::mouse_handler&>
mhb_;
boost::optional< events::mouse_handler & > mhb_
config(* generator_function)(reports::context &)
rng * generator
This generator is automatically synced during synced context.
const std::set< std::string > & report_list()
virtual const gamemap & map() const =0
Unit and team statistics.
This class stores all the data for a single 'side' (in game nomenclature).
context(const display_context &dc, display &disp, const tod_manager &tod, boost::shared_ptr< wb::manager > wb, boost::optional< events::mouse_handler & > mhb)
void register_generator(const std::string &name, generator *)
std::set< std::string > all_reports_
config generate_report(const std::string &name, context &ct, bool only_static=false)
Encapsulates the map of the game.
const display_context & dc_
virtual const unit_map & units() const =0
const tod_manager & tod()
dynamic_report_generators dynamic_generators_
virtual const std::vector< team > & teams() const =0
const std::vector< team > & teams()
const display_context & dc()
std::map< std::string, boost::shared_ptr< reports::generator > > dynamic_report_generators
Handling of system events.
GLuint const GLchar * name
boost::optional< events::mouse_handler & > mhb()
Container associating units to locations.
A config object defines a single node in a WML file, with access to child nodes.
boost::shared_ptr< wb::manager > wb()
GLsizei const GLcharARB ** string
boost::shared_ptr< wb::manager > wb_
virtual config generate(context &ct)=0