The Battle for Wesnoth  1.15.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, display &disp, const tod_manager &tod, std::shared_ptr< wb::manager > wb, boost::optional< events::mouse_handler &> mhb)
 
const std::vector< team > & teams () const
 
const unit_mapunits () const
 
const gamemapmap () const
 
const display_contextdc () const
 
displayscreen ()
 
const tod_managertod () const
 
std::shared_ptr< wb::managerwb ()
 
boost::optional< events::mouse_handler & > mhb ()
 

Private Attributes

const display_contextdc_
 
displaydisp_
 
const tod_managertod_
 
std::shared_ptr< wb::managerwb_
 
boost::optional< events::mouse_handler & > mhb_
 

Detailed Description

Definition at line 45 of file reports.hpp.

Constructor & Destructor Documentation

◆ context()

reports::context::context ( const display_context dc,
display disp,
const tod_manager tod,
std::shared_ptr< wb::manager wb,
boost::optional< events::mouse_handler &>  mhb 
)
inline

Definition at line 48 of file reports.hpp.

Member Function Documentation

◆ dc()

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

Definition at line 54 of file reports.hpp.

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

◆ map()

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

◆ mhb()

boost::optional<events::mouse_handler&> reports::context::mhb ( )
inline

Definition at line 58 of file reports.hpp.

◆ screen()

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

◆ teams()

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

◆ tod()

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

Definition at line 56 of file reports.hpp.

Referenced by time_of_day_at(), and unit_box_at().

◆ units()

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

Definition at line 51 of file reports.hpp.

Referenced by attack_info(), time_of_day_at(), unit_alignment(), unit_box_at(), and unit_weapons().

◆ wb()

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

Definition at line 57 of file reports.hpp.

Member Data Documentation

◆ dc_

const display_context& reports::context::dc_
private

Definition at line 61 of file reports.hpp.

◆ disp_

display& reports::context::disp_
private

Definition at line 62 of file reports.hpp.

◆ mhb_

boost::optional<events::mouse_handler&> reports::context::mhb_
private

Definition at line 65 of file reports.hpp.

◆ tod_

const tod_manager& reports::context::tod_
private

Definition at line 63 of file reports.hpp.

◆ wb_

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

Definition at line 64 of file reports.hpp.


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