61 std::shared_ptr<wb::manager>
wb()
const {
return wb_; }
68 std::shared_ptr<wb::manager>
wb_;
A config object defines a single node in a WML file, with access to child nodes.
Abstract class for exposing game data that doesn't depend on the GUI, however which for historical re...
virtual const gamemap & map() const =0
virtual const std::vector< team > & teams() const =0
virtual const unit_map & units() const =0
Sort-of-Singleton that many classes, both GUI and non-GUI, use to access the game data.
Encapsulates the map of the game.
const display_context & dc() const
const display_context & dc_
const std::vector< team > & teams() const
utils::optional_reference< events::mouse_handler > mhb() const
const unit_map & units() const
utils::optional_reference< events::mouse_handler > mhb_
const tod_manager & tod() const
const gamemap & map() const
const display & screen() const
context(const display_context &dc, const display &disp, const tod_manager &tod, std::shared_ptr< wb::manager > wb, utils::optional_reference< events::mouse_handler > mhb)
std::shared_ptr< wb::manager > wb() const
std::shared_ptr< wb::manager > wb_
config generate_report(const std::string &name, const context &ct, bool only_static=false)
void register_generator(const std::string &name, generator *)
std::set< std::string > all_reports_
const std::set< std::string > & report_list()
std::map< std::string, std::shared_ptr< reports::generator > > dynamic_report_generators
std::function< config(const reports::context &)> generator_function
dynamic_report_generators dynamic_generators_
This class stores all the data for a single 'side' (in game nomenclature).
Container associating units to locations.
Definitions for the interface to Wesnoth Markup Language (WML).
Handling of system events.
rng * generator
This generator is automatically synced during synced context.
Unit and team statistics.
virtual config generate(const context &ct)=0