The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
reports::context Class Reference

#include <reports.hpp>

Public Member Functions

 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)
 
const std::vector< team > & teams () const
 
const unit_mapunits () const
 
const gamemapmap () const
 
const display_contextdc () const
 
const displayscreen () const
 
const tod_managertod () const
 
std::shared_ptr< wb::managerwb () const
 
utils::optional_reference< events::mouse_handlermhb () const
 

Private Attributes

const display_contextdc_
 
const displaydisp_
 
const tod_managertod_
 
std::shared_ptr< wb::managerwb_
 
utils::optional_reference< events::mouse_handlermhb_
 

Detailed Description

Definition at line 46 of file reports.hpp.

Constructor & Destructor Documentation

◆ context()

reports::context::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 
)
inline

Definition at line 49 of file reports.hpp.

Member Function Documentation

◆ dc()

const display_context& reports::context::dc ( ) const
inline

Definition at line 55 of file reports.hpp.

References dc_.

Referenced by attack_info(), get_selected_unit(), get_selected_unit_ptr(), get_visible_unit(), and unit_side().

◆ map()

const gamemap& reports::context::map ( ) const
inline

◆ mhb()

utils::optional_reference<events::mouse_handler> reports::context::mhb ( ) const
inline

Definition at line 59 of file reports.hpp.

References mhb_.

◆ screen()

const display& reports::context::screen ( ) const
inline

◆ teams()

const std::vector<team>& reports::context::teams ( ) const
inline

◆ tod()

const tod_manager& reports::context::tod ( ) const
inline

Definition at line 57 of file reports.hpp.

References tod_.

Referenced by get_visible_time_of_day_at(), time_of_day_at(), tod_stats_at(), and unit_box_at().

◆ units()

const unit_map& reports::context::units ( ) const
inline

Definition at line 52 of file reports.hpp.

References dc_, and display_context::units().

Referenced by attack_info(), get_visible_time_of_day_at(), and unit_weapons().

◆ wb()

std::shared_ptr<wb::manager> reports::context::wb ( ) const
inline

Definition at line 58 of file reports.hpp.

References wb_.

Member Data Documentation

◆ dc_

const display_context& reports::context::dc_
private

Definition at line 62 of file reports.hpp.

Referenced by dc(), map(), teams(), and units().

◆ disp_

const display& reports::context::disp_
private

Definition at line 63 of file reports.hpp.

Referenced by screen().

◆ mhb_

utils::optional_reference<events::mouse_handler> reports::context::mhb_
private

Definition at line 66 of file reports.hpp.

Referenced by mhb().

◆ tod_

const tod_manager& reports::context::tod_
private

Definition at line 64 of file reports.hpp.

Referenced by tod().

◆ wb_

std::shared_ptr<wb::manager> reports::context::wb_
private

Definition at line 65 of file reports.hpp.

Referenced by wb().


The documentation for this class was generated from the following file: