The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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

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

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

Definition at line 54 of file reports.hpp.

References dc_.

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

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

Definition at line 58 of file reports.hpp.

References mhb_.

display& reports::context::screen ( )
inline
const std::vector<team>& reports::context::teams ( ) const
inline
const tod_manager& reports::context::tod ( ) const
inline

Definition at line 56 of file reports.hpp.

References tod_.

Referenced by time_of_day_at(), and unit_box_at().

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

Definition at line 51 of file reports.hpp.

References dc_, and display_context::units().

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

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

Definition at line 57 of file reports.hpp.

References wb_.

Member Data Documentation

const display_context& reports::context::dc_
private

Definition at line 61 of file reports.hpp.

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

display& reports::context::disp_
private

Definition at line 62 of file reports.hpp.

Referenced by screen().

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

Definition at line 65 of file reports.hpp.

Referenced by mhb().

const tod_manager& reports::context::tod_
private

Definition at line 63 of file reports.hpp.

Referenced by tod().

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

Definition at line 64 of file reports.hpp.

Referenced by wb().


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