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

Private Attributes

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

Detailed Description

Definition at line 47 of file reports.hpp.

Constructor & Destructor Documentation

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

Definition at line 50 of file reports.hpp.

Member Function Documentation

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

Definition at line 56 of file reports.hpp.

References dc_.

Referenced by get_selected_unit(), and get_visible_unit().

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

Definition at line 60 of file reports.hpp.

References mhb_.

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

Definition at line 58 of file reports.hpp.

References tod_.

Referenced by time_of_day_at(), and unit_box_at().

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

Definition at line 53 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().

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

Definition at line 59 of file reports.hpp.

References wb_.

Member Data Documentation

const display_context& reports::context::dc_
private

Definition at line 63 of file reports.hpp.

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

display& reports::context::disp_
private

Definition at line 64 of file reports.hpp.

Referenced by screen().

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

Definition at line 67 of file reports.hpp.

Referenced by mhb().

const tod_manager& reports::context::tod_
private

Definition at line 65 of file reports.hpp.

Referenced by tod().

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

Definition at line 66 of file reports.hpp.

Referenced by wb().


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