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
editor::dummy_editor_display_context Class Reference
Inheritance diagram for editor::dummy_editor_display_context:
Inheritance graph

Public Member Functions

 dummy_editor_display_context ()
 
virtual ~dummy_editor_display_context ()
 
virtual const gamemapmap () const
 
virtual const unit_mapunits () const
 
virtual const std::vector< team > & teams () const
 
virtual const std::vector
< std::string > & 
hidden_label_categories () const
 
- Public Member Functions inherited from display_context
std::vector< std::string > & hidden_label_categories_ref ()
 
bool would_be_discovered (const map_location &loc, int side_num, bool see_all=true)
 Given a location and a side number, indicates whether an invisible unit of that side at that location would be revealed (perhaps ambushed), based on what team side_num can see. More...
 
const unitget_visible_unit (const map_location &loc, const team &current_team, bool see_all=false) const
 
bool unit_can_move (const unit &u) const
 Will return true iff the unit u has any possible moves it can do (including attacking etc). More...
 
int village_owner (const map_location &loc) const
 Given the location of a village, will return the 0-based index of the team that currently owns it, and -1 if it is unowned. More...
 
int side_units (int side_num) const
 Returns the number of units of the side side_num. More...
 
int side_units_cost (int side_num) const
 Returns the total cost of units of side side_num. More...
 
int side_upkeep (int side_num) const
 
team_data calculate_team_data (const class team &tm, int side) const
 
bool is_observer () const
 Check if we are an observer in this game. More...
 
virtual ~display_context ()
 

Private Attributes

config dummy_cfg1
 
editor_map em
 
unit_map u
 
std::vector< teamt
 
std::vector< std::stringlbls
 

Detailed Description

Definition at line 31 of file editor_display.cpp.

Constructor & Destructor Documentation

editor::dummy_editor_display_context::dummy_editor_display_context ( )
inline

Definition at line 41 of file editor_display.cpp.

virtual editor::dummy_editor_display_context::~dummy_editor_display_context ( )
inlinevirtual

Definition at line 42 of file editor_display.cpp.

Member Function Documentation

virtual const std::vector<std::string>& editor::dummy_editor_display_context::hidden_label_categories ( ) const
inlinevirtual

Implements display_context.

Definition at line 47 of file editor_display.cpp.

References lbls.

virtual const gamemap& editor::dummy_editor_display_context::map ( ) const
inlinevirtual

Implements display_context.

Definition at line 44 of file editor_display.cpp.

References em.

virtual const std::vector<team>& editor::dummy_editor_display_context::teams ( ) const
inlinevirtual

Implements display_context.

Definition at line 46 of file editor_display.cpp.

References t.

virtual const unit_map& editor::dummy_editor_display_context::units ( ) const
inlinevirtual

Implements display_context.

Definition at line 45 of file editor_display.cpp.

References u.

Member Data Documentation

config editor::dummy_editor_display_context::dummy_cfg1
private

Definition at line 33 of file editor_display.cpp.

editor_map editor::dummy_editor_display_context::em
private

Definition at line 35 of file editor_display.cpp.

Referenced by map().

std::vector<std::string> editor::dummy_editor_display_context::lbls
private

Definition at line 38 of file editor_display.cpp.

Referenced by hidden_label_categories().

std::vector<team> editor::dummy_editor_display_context::t
private

Definition at line 37 of file editor_display.cpp.

Referenced by teams().

unit_map editor::dummy_editor_display_context::u
private

Definition at line 36 of file editor_display.cpp.

Referenced by units().


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